@clickhouse/click-ui 0.0.177 → 0.0.178

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.
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
8
- import styled$1, { keyframes, styled, useTheme, createGlobalStyle, ThemeProvider as ThemeProvider$1 } from "styled-components";
8
+ import { keyframes, styled, useTheme, css as css$1, createGlobalStyle, ThemeProvider as ThemeProvider$1 } from "styled-components";
9
9
  import * as React from "react";
10
10
  import React__default, { forwardRef, useCallback, createContext, useMemo, createElement as createElement$1, useContext, useRef, useEffect, useState, Children, isValidElement, cloneElement, Fragment, useLayoutEffect, useReducer, useId, PureComponent, Component, memo } from "react";
11
11
  import * as ReactDOM from "react-dom";
@@ -13547,6 +13547,634 @@ function requireSql() {
13547
13547
  sql_1 = sql2;
13548
13548
  return sql_1;
13549
13549
  }
13550
+ var typescript_1;
13551
+ var hasRequiredTypescript;
13552
+ function requireTypescript() {
13553
+ if (hasRequiredTypescript)
13554
+ return typescript_1;
13555
+ hasRequiredTypescript = 1;
13556
+ const IDENT_RE2 = "[A-Za-z$_][0-9A-Za-z$_]*";
13557
+ const KEYWORDS = [
13558
+ "as",
13559
+ // for exports
13560
+ "in",
13561
+ "of",
13562
+ "if",
13563
+ "for",
13564
+ "while",
13565
+ "finally",
13566
+ "var",
13567
+ "new",
13568
+ "function",
13569
+ "do",
13570
+ "return",
13571
+ "void",
13572
+ "else",
13573
+ "break",
13574
+ "catch",
13575
+ "instanceof",
13576
+ "with",
13577
+ "throw",
13578
+ "case",
13579
+ "default",
13580
+ "try",
13581
+ "switch",
13582
+ "continue",
13583
+ "typeof",
13584
+ "delete",
13585
+ "let",
13586
+ "yield",
13587
+ "const",
13588
+ "class",
13589
+ // JS handles these with a special rule
13590
+ // "get",
13591
+ // "set",
13592
+ "debugger",
13593
+ "async",
13594
+ "await",
13595
+ "static",
13596
+ "import",
13597
+ "from",
13598
+ "export",
13599
+ "extends"
13600
+ ];
13601
+ const LITERALS = [
13602
+ "true",
13603
+ "false",
13604
+ "null",
13605
+ "undefined",
13606
+ "NaN",
13607
+ "Infinity"
13608
+ ];
13609
+ const TYPES = [
13610
+ "Intl",
13611
+ "DataView",
13612
+ "Number",
13613
+ "Math",
13614
+ "Date",
13615
+ "String",
13616
+ "RegExp",
13617
+ "Object",
13618
+ "Function",
13619
+ "Boolean",
13620
+ "Error",
13621
+ "Symbol",
13622
+ "Set",
13623
+ "Map",
13624
+ "WeakSet",
13625
+ "WeakMap",
13626
+ "Proxy",
13627
+ "Reflect",
13628
+ "JSON",
13629
+ "Promise",
13630
+ "Float64Array",
13631
+ "Int16Array",
13632
+ "Int32Array",
13633
+ "Int8Array",
13634
+ "Uint16Array",
13635
+ "Uint32Array",
13636
+ "Float32Array",
13637
+ "Array",
13638
+ "Uint8Array",
13639
+ "Uint8ClampedArray",
13640
+ "ArrayBuffer",
13641
+ "BigInt64Array",
13642
+ "BigUint64Array",
13643
+ "BigInt"
13644
+ ];
13645
+ const ERROR_TYPES = [
13646
+ "EvalError",
13647
+ "InternalError",
13648
+ "RangeError",
13649
+ "ReferenceError",
13650
+ "SyntaxError",
13651
+ "TypeError",
13652
+ "URIError"
13653
+ ];
13654
+ const BUILT_IN_GLOBALS = [
13655
+ "setInterval",
13656
+ "setTimeout",
13657
+ "clearInterval",
13658
+ "clearTimeout",
13659
+ "require",
13660
+ "exports",
13661
+ "eval",
13662
+ "isFinite",
13663
+ "isNaN",
13664
+ "parseFloat",
13665
+ "parseInt",
13666
+ "decodeURI",
13667
+ "decodeURIComponent",
13668
+ "encodeURI",
13669
+ "encodeURIComponent",
13670
+ "escape",
13671
+ "unescape"
13672
+ ];
13673
+ const BUILT_IN_VARIABLES = [
13674
+ "arguments",
13675
+ "this",
13676
+ "super",
13677
+ "console",
13678
+ "window",
13679
+ "document",
13680
+ "localStorage",
13681
+ "module",
13682
+ "global"
13683
+ // Node.js
13684
+ ];
13685
+ const BUILT_INS = [].concat(
13686
+ BUILT_IN_GLOBALS,
13687
+ BUILT_IN_VARIABLES,
13688
+ TYPES,
13689
+ ERROR_TYPES
13690
+ );
13691
+ function source2(re) {
13692
+ if (!re)
13693
+ return null;
13694
+ if (typeof re === "string")
13695
+ return re;
13696
+ return re.source;
13697
+ }
13698
+ function lookahead(re) {
13699
+ return concat2("(?=", re, ")");
13700
+ }
13701
+ function concat2(...args) {
13702
+ const joined = args.map((x) => source2(x)).join("");
13703
+ return joined;
13704
+ }
13705
+ function javascript(hljs) {
13706
+ const hasClosingTag = (match, { after }) => {
13707
+ const tag2 = "</" + match[0].slice(1);
13708
+ const pos = match.input.indexOf(tag2, after);
13709
+ return pos !== -1;
13710
+ };
13711
+ const IDENT_RE$1 = IDENT_RE2;
13712
+ const FRAGMENT = {
13713
+ begin: "<>",
13714
+ end: "</>"
13715
+ };
13716
+ const XML_TAG = {
13717
+ begin: /<[A-Za-z0-9\\._:-]+/,
13718
+ end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
13719
+ /**
13720
+ * @param {RegExpMatchArray} match
13721
+ * @param {CallbackResponse} response
13722
+ */
13723
+ isTrulyOpeningTag: (match, response) => {
13724
+ const afterMatchIndex = match[0].length + match.index;
13725
+ const nextChar = match.input[afterMatchIndex];
13726
+ if (nextChar === "<") {
13727
+ response.ignoreMatch();
13728
+ return;
13729
+ }
13730
+ if (nextChar === ">") {
13731
+ if (!hasClosingTag(match, { after: afterMatchIndex })) {
13732
+ response.ignoreMatch();
13733
+ }
13734
+ }
13735
+ }
13736
+ };
13737
+ const KEYWORDS$1 = {
13738
+ $pattern: IDENT_RE2,
13739
+ keyword: KEYWORDS,
13740
+ literal: LITERALS,
13741
+ built_in: BUILT_INS
13742
+ };
13743
+ const decimalDigits = "[0-9](_?[0-9])*";
13744
+ const frac = `\\.(${decimalDigits})`;
13745
+ const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`;
13746
+ const NUMBER = {
13747
+ className: "number",
13748
+ variants: [
13749
+ // DecimalLiteral
13750
+ { begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})\\b` },
13751
+ { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` },
13752
+ // DecimalBigIntegerLiteral
13753
+ { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` },
13754
+ // NonDecimalIntegerLiteral
13755
+ { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
13756
+ { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
13757
+ { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" },
13758
+ // LegacyOctalIntegerLiteral (does not include underscore separators)
13759
+ // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
13760
+ { begin: "\\b0[0-7]+n?\\b" }
13761
+ ],
13762
+ relevance: 0
13763
+ };
13764
+ const SUBST = {
13765
+ className: "subst",
13766
+ begin: "\\$\\{",
13767
+ end: "\\}",
13768
+ keywords: KEYWORDS$1,
13769
+ contains: []
13770
+ // defined later
13771
+ };
13772
+ const HTML_TEMPLATE = {
13773
+ begin: "html`",
13774
+ end: "",
13775
+ starts: {
13776
+ end: "`",
13777
+ returnEnd: false,
13778
+ contains: [
13779
+ hljs.BACKSLASH_ESCAPE,
13780
+ SUBST
13781
+ ],
13782
+ subLanguage: "xml"
13783
+ }
13784
+ };
13785
+ const CSS_TEMPLATE = {
13786
+ begin: "css`",
13787
+ end: "",
13788
+ starts: {
13789
+ end: "`",
13790
+ returnEnd: false,
13791
+ contains: [
13792
+ hljs.BACKSLASH_ESCAPE,
13793
+ SUBST
13794
+ ],
13795
+ subLanguage: "css"
13796
+ }
13797
+ };
13798
+ const TEMPLATE_STRING = {
13799
+ className: "string",
13800
+ begin: "`",
13801
+ end: "`",
13802
+ contains: [
13803
+ hljs.BACKSLASH_ESCAPE,
13804
+ SUBST
13805
+ ]
13806
+ };
13807
+ const JSDOC_COMMENT = hljs.COMMENT(
13808
+ /\/\*\*(?!\/)/,
13809
+ "\\*/",
13810
+ {
13811
+ relevance: 0,
13812
+ contains: [
13813
+ {
13814
+ className: "doctag",
13815
+ begin: "@[A-Za-z]+",
13816
+ contains: [
13817
+ {
13818
+ className: "type",
13819
+ begin: "\\{",
13820
+ end: "\\}",
13821
+ relevance: 0
13822
+ },
13823
+ {
13824
+ className: "variable",
13825
+ begin: IDENT_RE$1 + "(?=\\s*(-)|$)",
13826
+ endsParent: true,
13827
+ relevance: 0
13828
+ },
13829
+ // eat spaces (not newlines) so we can find
13830
+ // types or variables
13831
+ {
13832
+ begin: /(?=[^\n])\s/,
13833
+ relevance: 0
13834
+ }
13835
+ ]
13836
+ }
13837
+ ]
13838
+ }
13839
+ );
13840
+ const COMMENT2 = {
13841
+ className: "comment",
13842
+ variants: [
13843
+ JSDOC_COMMENT,
13844
+ hljs.C_BLOCK_COMMENT_MODE,
13845
+ hljs.C_LINE_COMMENT_MODE
13846
+ ]
13847
+ };
13848
+ const SUBST_INTERNALS = [
13849
+ hljs.APOS_STRING_MODE,
13850
+ hljs.QUOTE_STRING_MODE,
13851
+ HTML_TEMPLATE,
13852
+ CSS_TEMPLATE,
13853
+ TEMPLATE_STRING,
13854
+ NUMBER,
13855
+ hljs.REGEXP_MODE
13856
+ ];
13857
+ SUBST.contains = SUBST_INTERNALS.concat({
13858
+ // we need to pair up {} inside our subst to prevent
13859
+ // it from ending too early by matching another }
13860
+ begin: /\{/,
13861
+ end: /\}/,
13862
+ keywords: KEYWORDS$1,
13863
+ contains: [
13864
+ "self"
13865
+ ].concat(SUBST_INTERNALS)
13866
+ });
13867
+ const SUBST_AND_COMMENTS = [].concat(COMMENT2, SUBST.contains);
13868
+ const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([
13869
+ // eat recursive parens in sub expressions
13870
+ {
13871
+ begin: /\(/,
13872
+ end: /\)/,
13873
+ keywords: KEYWORDS$1,
13874
+ contains: ["self"].concat(SUBST_AND_COMMENTS)
13875
+ }
13876
+ ]);
13877
+ const PARAMS = {
13878
+ className: "params",
13879
+ begin: /\(/,
13880
+ end: /\)/,
13881
+ excludeBegin: true,
13882
+ excludeEnd: true,
13883
+ keywords: KEYWORDS$1,
13884
+ contains: PARAMS_CONTAINS
13885
+ };
13886
+ return {
13887
+ name: "Javascript",
13888
+ aliases: ["js", "jsx", "mjs", "cjs"],
13889
+ keywords: KEYWORDS$1,
13890
+ // this will be extended by TypeScript
13891
+ exports: { PARAMS_CONTAINS },
13892
+ illegal: /#(?![$_A-z])/,
13893
+ contains: [
13894
+ hljs.SHEBANG({
13895
+ label: "shebang",
13896
+ binary: "node",
13897
+ relevance: 5
13898
+ }),
13899
+ {
13900
+ label: "use_strict",
13901
+ className: "meta",
13902
+ relevance: 10,
13903
+ begin: /^\s*['"]use (strict|asm)['"]/
13904
+ },
13905
+ hljs.APOS_STRING_MODE,
13906
+ hljs.QUOTE_STRING_MODE,
13907
+ HTML_TEMPLATE,
13908
+ CSS_TEMPLATE,
13909
+ TEMPLATE_STRING,
13910
+ COMMENT2,
13911
+ NUMBER,
13912
+ {
13913
+ // object attr container
13914
+ begin: concat2(
13915
+ /[{,\n]\s*/,
13916
+ // we need to look ahead to make sure that we actually have an
13917
+ // attribute coming up so we don't steal a comma from a potential
13918
+ // "value" container
13919
+ //
13920
+ // NOTE: this might not work how you think. We don't actually always
13921
+ // enter this mode and stay. Instead it might merely match `,
13922
+ // <comments up next>` and then immediately end after the , because it
13923
+ // fails to find any actual attrs. But this still does the job because
13924
+ // it prevents the value contain rule from grabbing this instead and
13925
+ // prevening this rule from firing when we actually DO have keys.
13926
+ lookahead(concat2(
13927
+ // we also need to allow for multiple possible comments inbetween
13928
+ // the first key:value pairing
13929
+ /(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,
13930
+ IDENT_RE$1 + "\\s*:"
13931
+ ))
13932
+ ),
13933
+ relevance: 0,
13934
+ contains: [
13935
+ {
13936
+ className: "attr",
13937
+ begin: IDENT_RE$1 + lookahead("\\s*:"),
13938
+ relevance: 0
13939
+ }
13940
+ ]
13941
+ },
13942
+ {
13943
+ // "value" container
13944
+ begin: "(" + hljs.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
13945
+ keywords: "return throw case",
13946
+ contains: [
13947
+ COMMENT2,
13948
+ hljs.REGEXP_MODE,
13949
+ {
13950
+ className: "function",
13951
+ // we have to count the parens to make sure we actually have the
13952
+ // correct bounding ( ) before the =>. There could be any number of
13953
+ // sub-expressions inside also surrounded by parens.
13954
+ begin: "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + hljs.UNDERSCORE_IDENT_RE + ")\\s*=>",
13955
+ returnBegin: true,
13956
+ end: "\\s*=>",
13957
+ contains: [
13958
+ {
13959
+ className: "params",
13960
+ variants: [
13961
+ {
13962
+ begin: hljs.UNDERSCORE_IDENT_RE,
13963
+ relevance: 0
13964
+ },
13965
+ {
13966
+ className: null,
13967
+ begin: /\(\s*\)/,
13968
+ skip: true
13969
+ },
13970
+ {
13971
+ begin: /\(/,
13972
+ end: /\)/,
13973
+ excludeBegin: true,
13974
+ excludeEnd: true,
13975
+ keywords: KEYWORDS$1,
13976
+ contains: PARAMS_CONTAINS
13977
+ }
13978
+ ]
13979
+ }
13980
+ ]
13981
+ },
13982
+ {
13983
+ // could be a comma delimited list of params to a function call
13984
+ begin: /,/,
13985
+ relevance: 0
13986
+ },
13987
+ {
13988
+ className: "",
13989
+ begin: /\s/,
13990
+ end: /\s*/,
13991
+ skip: true
13992
+ },
13993
+ {
13994
+ // JSX
13995
+ variants: [
13996
+ { begin: FRAGMENT.begin, end: FRAGMENT.end },
13997
+ {
13998
+ begin: XML_TAG.begin,
13999
+ // we carefully check the opening tag to see if it truly
14000
+ // is a tag and not a false positive
14001
+ "on:begin": XML_TAG.isTrulyOpeningTag,
14002
+ end: XML_TAG.end
14003
+ }
14004
+ ],
14005
+ subLanguage: "xml",
14006
+ contains: [
14007
+ {
14008
+ begin: XML_TAG.begin,
14009
+ end: XML_TAG.end,
14010
+ skip: true,
14011
+ contains: ["self"]
14012
+ }
14013
+ ]
14014
+ }
14015
+ ],
14016
+ relevance: 0
14017
+ },
14018
+ {
14019
+ className: "function",
14020
+ beginKeywords: "function",
14021
+ end: /[{;]/,
14022
+ excludeEnd: true,
14023
+ keywords: KEYWORDS$1,
14024
+ contains: [
14025
+ "self",
14026
+ hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }),
14027
+ PARAMS
14028
+ ],
14029
+ illegal: /%/
14030
+ },
14031
+ {
14032
+ // prevent this from getting swallowed up by function
14033
+ // since they appear "function like"
14034
+ beginKeywords: "while if switch catch for"
14035
+ },
14036
+ {
14037
+ className: "function",
14038
+ // we have to count the parens to make sure we actually have the correct
14039
+ // bounding ( ). There could be any number of sub-expressions inside
14040
+ // also surrounded by parens.
14041
+ begin: hljs.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
14042
+ // end parens
14043
+ returnBegin: true,
14044
+ contains: [
14045
+ PARAMS,
14046
+ hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 })
14047
+ ]
14048
+ },
14049
+ // hack: prevents detection of keywords in some circumstances
14050
+ // .keyword()
14051
+ // $keyword = x
14052
+ {
14053
+ variants: [
14054
+ { begin: "\\." + IDENT_RE$1 },
14055
+ { begin: "\\$" + IDENT_RE$1 }
14056
+ ],
14057
+ relevance: 0
14058
+ },
14059
+ {
14060
+ // ES6 class
14061
+ className: "class",
14062
+ beginKeywords: "class",
14063
+ end: /[{;=]/,
14064
+ excludeEnd: true,
14065
+ illegal: /[:"[\]]/,
14066
+ contains: [
14067
+ { beginKeywords: "extends" },
14068
+ hljs.UNDERSCORE_TITLE_MODE
14069
+ ]
14070
+ },
14071
+ {
14072
+ begin: /\b(?=constructor)/,
14073
+ end: /[{;]/,
14074
+ excludeEnd: true,
14075
+ contains: [
14076
+ hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }),
14077
+ "self",
14078
+ PARAMS
14079
+ ]
14080
+ },
14081
+ {
14082
+ begin: "(get|set)\\s+(?=" + IDENT_RE$1 + "\\()",
14083
+ end: /\{/,
14084
+ keywords: "get set",
14085
+ contains: [
14086
+ hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1 }),
14087
+ { begin: /\(\)/ },
14088
+ // eat to avoid empty params
14089
+ PARAMS
14090
+ ]
14091
+ },
14092
+ {
14093
+ begin: /\$[(.]/
14094
+ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
14095
+ }
14096
+ ]
14097
+ };
14098
+ }
14099
+ function typescript2(hljs) {
14100
+ const IDENT_RE$1 = IDENT_RE2;
14101
+ const NAMESPACE = {
14102
+ beginKeywords: "namespace",
14103
+ end: /\{/,
14104
+ excludeEnd: true
14105
+ };
14106
+ const INTERFACE = {
14107
+ beginKeywords: "interface",
14108
+ end: /\{/,
14109
+ excludeEnd: true,
14110
+ keywords: "interface extends"
14111
+ };
14112
+ const USE_STRICT = {
14113
+ className: "meta",
14114
+ relevance: 10,
14115
+ begin: /^\s*['"]use strict['"]/
14116
+ };
14117
+ const TYPES2 = [
14118
+ "any",
14119
+ "void",
14120
+ "number",
14121
+ "boolean",
14122
+ "string",
14123
+ "object",
14124
+ "never",
14125
+ "enum"
14126
+ ];
14127
+ const TS_SPECIFIC_KEYWORDS = [
14128
+ "type",
14129
+ "namespace",
14130
+ "typedef",
14131
+ "interface",
14132
+ "public",
14133
+ "private",
14134
+ "protected",
14135
+ "implements",
14136
+ "declare",
14137
+ "abstract",
14138
+ "readonly"
14139
+ ];
14140
+ const KEYWORDS$1 = {
14141
+ $pattern: IDENT_RE2,
14142
+ keyword: KEYWORDS.concat(TS_SPECIFIC_KEYWORDS),
14143
+ literal: LITERALS,
14144
+ built_in: BUILT_INS.concat(TYPES2)
14145
+ };
14146
+ const DECORATOR = {
14147
+ className: "meta",
14148
+ begin: "@" + IDENT_RE$1
14149
+ };
14150
+ const swapMode = (mode, label, replacement) => {
14151
+ const indx = mode.contains.findIndex((m) => m.label === label);
14152
+ if (indx === -1) {
14153
+ throw new Error("can not find mode to replace");
14154
+ }
14155
+ mode.contains.splice(indx, 1, replacement);
14156
+ };
14157
+ const tsLanguage = javascript(hljs);
14158
+ Object.assign(tsLanguage.keywords, KEYWORDS$1);
14159
+ tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR);
14160
+ tsLanguage.contains = tsLanguage.contains.concat([
14161
+ DECORATOR,
14162
+ NAMESPACE,
14163
+ INTERFACE
14164
+ ]);
14165
+ swapMode(tsLanguage, "shebang", hljs.SHEBANG());
14166
+ swapMode(tsLanguage, "use_strict", USE_STRICT);
14167
+ const functionDeclaration = tsLanguage.contains.find((m) => m.className === "function");
14168
+ functionDeclaration.relevance = 0;
14169
+ Object.assign(tsLanguage, {
14170
+ name: "TypeScript",
14171
+ aliases: ["ts", "tsx"]
14172
+ });
14173
+ return tsLanguage;
14174
+ }
14175
+ typescript_1 = typescript2;
14176
+ return typescript_1;
14177
+ }
13550
14178
  function _setPrototypeOf(o, p) {
13551
14179
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
13552
14180
  o2.__proto__ = p2;
@@ -13562,70 +14190,6 @@ function _assertThisInitialized(self2) {
13562
14190
  }
13563
14191
  var SyntaxHighlighter = highlight$2(core$1, {});
13564
14192
  SyntaxHighlighter.registerLanguage = core$1.registerLanguage;
13565
- var typescript_1;
13566
- var hasRequiredTypescript;
13567
- function requireTypescript() {
13568
- if (hasRequiredTypescript)
13569
- return typescript_1;
13570
- hasRequiredTypescript = 1;
13571
- typescript_1 = typescript2;
13572
- typescript2.displayName = "typescript";
13573
- typescript2.aliases = ["ts"];
13574
- function typescript2(Prism) {
13575
- (function(Prism2) {
13576
- Prism2.languages.typescript = Prism2.languages.extend("javascript", {
13577
- "class-name": {
13578
- pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
13579
- lookbehind: true,
13580
- greedy: true,
13581
- inside: null
13582
- // see below
13583
- },
13584
- builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
13585
- });
13586
- Prism2.languages.typescript.keyword.push(
13587
- /\b(?:abstract|declare|is|keyof|readonly|require)\b/,
13588
- // keywords that have to be followed by an identifier
13589
- /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
13590
- // This is for `import type *, {}`
13591
- /\btype\b(?=\s*(?:[\{*]|$))/
13592
- );
13593
- delete Prism2.languages.typescript["parameter"];
13594
- delete Prism2.languages.typescript["literal-property"];
13595
- var typeInside = Prism2.languages.extend("typescript", {});
13596
- delete typeInside["class-name"];
13597
- Prism2.languages.typescript["class-name"].inside = typeInside;
13598
- Prism2.languages.insertBefore("typescript", "function", {
13599
- decorator: {
13600
- pattern: /@[$\w\xA0-\uFFFF]+/,
13601
- inside: {
13602
- at: {
13603
- pattern: /^@/,
13604
- alias: "operator"
13605
- },
13606
- function: /^[\s\S]+/
13607
- }
13608
- },
13609
- "generic-function": {
13610
- // e.g. foo<T extends "bar" | "baz">( ...
13611
- pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
13612
- greedy: true,
13613
- inside: {
13614
- function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
13615
- generic: {
13616
- pattern: /<[\s\S]+/,
13617
- // everything after the first <
13618
- alias: "class-name",
13619
- inside: typeInside
13620
- }
13621
- }
13622
- }
13623
- });
13624
- Prism2.languages.ts = Prism2.languages.typescript;
13625
- })(Prism);
13626
- }
13627
- return typescript_1;
13628
- }
13629
14193
  const useColorStyle = (defaultTheme) => {
13630
14194
  const theme2 = useTheme();
13631
14195
  const inheritedThemeName = theme2.name !== "classic" ? theme2.name : "light";
@@ -13806,7 +14370,7 @@ const tsx = /* @__PURE__ */ getDefaultExportFromCjs(typescript);
13806
14370
  SyntaxHighlighter.registerLanguage("sql", sql);
13807
14371
  SyntaxHighlighter.registerLanguage("bash", bash);
13808
14372
  SyntaxHighlighter.registerLanguage("json", json);
13809
- SyntaxHighlighter.registerLanguage("text", tsx);
14373
+ SyntaxHighlighter.registerLanguage("tsx", tsx);
13810
14374
  const CodeBlockContainer = styled.div.withConfig({
13811
14375
  componentId: "sc-18gnqgi-0"
13812
14376
  })(["width:100%;width:-webkit-fill-available;width:fill-available;width:stretch;position:relative;cursor:pointer;", ""], ({
@@ -14519,7 +15083,7 @@ const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
14519
15083
  year: "numeric"
14520
15084
  });
14521
15085
  const explicitWidth = "250px";
14522
- const HighlightedInputWrapper = styled$1(InputWrapper).withConfig({
15086
+ const HighlightedInputWrapper = styled(InputWrapper).withConfig({
14523
15087
  componentId: "sc-1kfphgn-0"
14524
15088
  })(["", " width:", ";}"], ({
14525
15089
  $isActive,
@@ -14527,12 +15091,12 @@ const HighlightedInputWrapper = styled$1(InputWrapper).withConfig({
14527
15091
  }) => {
14528
15092
  return `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isActive ? theme2.click.datePicker.dateOption.color.stroke.active : theme2.click.field.color.stroke.default};`;
14529
15093
  }, explicitWidth);
14530
- const DatePickerContainer = styled$1(Container).withConfig({
15094
+ const DatePickerContainer = styled(Container).withConfig({
14531
15095
  componentId: "sc-1kfphgn-1"
14532
15096
  })(["background:", ";"], ({
14533
15097
  theme: theme2
14534
15098
  }) => theme2.click.datePicker.dateOption.color.background.default);
14535
- const UnselectableTitle = styled$1.h2.withConfig({
15099
+ const UnselectableTitle = styled.h2.withConfig({
14536
15100
  componentId: "sc-1kfphgn-2"
14537
15101
  })(["", " user-select:none;"], ({
14538
15102
  theme: theme2
@@ -14540,7 +15104,7 @@ const UnselectableTitle = styled$1.h2.withConfig({
14540
15104
  color: ${theme2.click.datePicker.color.title.default};
14541
15105
  font: ${theme2.click.datePicker.typography.title.default};
14542
15106
  `);
14543
- const DateTable = styled$1.table.withConfig({
15107
+ const DateTable = styled.table.withConfig({
14544
15108
  componentId: "sc-1kfphgn-3"
14545
15109
  })(["border-collapse:separate;border-spacing:0;font:", " table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{", ";padding:4px;}"], ({
14546
15110
  theme: theme2
@@ -14549,7 +15113,7 @@ const DateTable = styled$1.table.withConfig({
14549
15113
  }) => theme2.click.datePicker.dateOption.size.height, ({
14550
15114
  theme: theme2
14551
15115
  }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default}`);
14552
- const DateTableHeader = styled$1.th.withConfig({
15116
+ const DateTableHeader = styled.th.withConfig({
14553
15117
  componentId: "sc-1kfphgn-4"
14554
15118
  })(["", " width:14%;"], ({
14555
15119
  theme: theme2
@@ -14557,7 +15121,7 @@ const DateTableHeader = styled$1.th.withConfig({
14557
15121
  color: ${theme2.click.datePicker.color.daytitle.default};
14558
15122
  font: ${theme2.click.datePicker.typography.daytitle.default};
14559
15123
  `);
14560
- const DateTableCell = styled$1.td.withConfig({
15124
+ const DateTableCell = styled.td.withConfig({
14561
15125
  componentId: "sc-1kfphgn-5"
14562
15126
  })(["", " ", " ", " text-align:center;", " &:hover{", ";}"], ({
14563
15127
  theme: theme2
@@ -32716,9 +33280,7 @@ const HoverCardContent = ({
32716
33280
  };
32717
33281
  HoverCardContent.displayName = "HoverCardContent";
32718
33282
  HoverCard.Content = HoverCardContent;
32719
- const CuiLink = styled.a.withConfig({
32720
- componentId: "sc-1bwz77u-0"
32721
- })(["font:", ";color:", ";margin:0;text-decoration:none;display:inline-flex;gap:", ";margin-right:", ";align-items:center;&:hover,&:focus{color:", ";transition:", ";text-decoration:underline;cursor:pointer;}&:visited{color:", ";}"], ({
33283
+ const linkStyles = css$1(["font:", ";color:", ";margin:0;text-decoration:none;display:inline-flex;gap:", ";margin-right:", ";align-items:center;&:hover,&:focus{color:", ";transition:", ";text-decoration:underline;cursor:pointer;}&:visited{color:", ";}"], ({
32722
33284
  $size,
32723
33285
  $weight = "normal",
32724
33286
  theme: theme2
@@ -32737,6 +33299,9 @@ const CuiLink = styled.a.withConfig({
32737
33299
  }) => theme2.transition.default, ({
32738
33300
  theme: theme2
32739
33301
  }) => theme2.click.global.color.text.link.default);
33302
+ const CuiLink = styled.a.withConfig({
33303
+ componentId: "sc-1bwz77u-0"
33304
+ })(["", ""], linkStyles);
32740
33305
  const IconWrapper$1 = styled.span.withConfig({
32741
33306
  componentId: "sc-1bwz77u-1"
32742
33307
  })([".external-icon{height:", ";width:", ";}"], ({
@@ -32968,24 +33533,25 @@ const Pagination = ({
32968
33533
  ] });
32969
33534
  };
32970
33535
  const Panel = ({
32971
- hasBorder,
32972
- hasShadow,
33536
+ alignItems = "center",
33537
+ children,
32973
33538
  color,
32974
- padding,
33539
+ cursor,
33540
+ fillHeight,
33541
+ fillWidth,
32975
33542
  gap,
32976
- children,
33543
+ hasBorder,
33544
+ hasShadow,
33545
+ height,
32977
33546
  orientation = "horizontal",
32978
- width,
33547
+ padding,
32979
33548
  radii = "sm",
32980
- fillWidth,
32981
- height,
32982
- fillHeight,
32983
- alignItems = "center",
33549
+ width,
32984
33550
  ...props
32985
- }) => /* @__PURE__ */ jsx(Wrapper$2, { $hasBorder: hasBorder, $hasShadow: hasShadow, $color: color, $padding: padding, $gap: gap, $width: width, $radii: radii, $orientation: orientation, $fillWidth: fillWidth, $height: height, $fillHeight: fillHeight, $alignItems: alignItems, ...props, children });
33551
+ }) => /* @__PURE__ */ jsx(Wrapper$2, { $alignItems: alignItems, $color: color, $cursor: cursor, $fillHeight: fillHeight, $fillWidth: fillWidth, $gap: gap, $hasBorder: hasBorder, $hasShadow: hasShadow, $height: height, $orientation: orientation, $padding: padding, $radii: radii, $width: width, ...props, children });
32986
33552
  const Wrapper$2 = styled.div.withConfig({
32987
33553
  componentId: "sc-1q78udp-0"
32988
- })(["display:flex;flex-flow:", ";align-items:", ";width:", ";height:", ";background-color:", ";border-radius:", ";padding:", ";border:", ";box-shadow:", ";gap:", ";"], ({
33554
+ })(["display:flex;flex-flow:", ";align-items:", ";width:", ";height:", ";background-color:", ";border-radius:", ";padding:", ";border:", ";box-shadow:", ";gap:", ";", ";"], ({
32989
33555
  $orientation = "horizontal"
32990
33556
  }) => $orientation === "horizontal" ? "row wrap" : "column", ({
32991
33557
  $alignItems = "center"
@@ -33013,7 +33579,9 @@ const Wrapper$2 = styled.div.withConfig({
33013
33579
  }) => $hasShadow ? theme2.shadow[1] : "none", ({
33014
33580
  $gap = "sm",
33015
33581
  theme: theme2
33016
- }) => theme2.click.panel.space.gap[$gap]);
33582
+ }) => theme2.click.panel.space.gap[$gap], ({
33583
+ $cursor
33584
+ }) => $cursor && `cursor: ${$cursor}`);
33017
33585
  const ProgressContainer = styled.div.withConfig({
33018
33586
  componentId: "sc-16gr3cg-0"
33019
33587
  })(["display:flex;justify-content:space-between;align-items:center;overflow:hidden;transition:all 100ms ease-in-out;width:100%;width:-webkit-fill-available;width:fill-available;width:stretch;min-height:2px;", ";"], ({
@@ -49536,6 +50104,7 @@ export {
49536
50104
  VerticalStepper,
49537
50105
  WarningAlert,
49538
50106
  createToast,
50107
+ linkStyles,
49539
50108
  themes,
49540
50109
  useCUITheme,
49541
50110
  useToast