@clickhouse/click-ui 0.0.176 → 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";
@@ -294,6 +294,17 @@ const LightBulb = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3
294
294
  /* @__PURE__ */ jsx("rect", { width: 18.008, height: 18.008, x: 2.996, y: 2.997, stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, rx: 5 }),
295
295
  /* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M15.386 13.316a4.251 4.251 0 1 0-6.772 0" })
296
296
  ] });
297
+ const LightBulbOn = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
298
+ /* @__PURE__ */ jsx("path", { d: "M15 15.1899H9", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
299
+ /* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.54094 14.8962C6.76494 13.6412 5.69994 11.4502 6.07494 9.03819C6.48094 6.43119 8.65394 4.35019 11.2749 4.04319C14.9129 3.61619 17.9999 6.44819 17.9999 10.0002C17.9999 12.0252 16.9939 13.8122 15.4569 14.8982C15.1809 15.0932 14.9999 15.3952 14.9999 15.7332V18.5002C14.9999 19.8812 13.8809 21.0002 12.4999 21.0002H11.4999C10.1189 21.0002 8.99994 19.8812 8.99994 18.5002V15.7372C8.99994 15.3962 8.81794 15.0922 8.54094 14.8962Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
300
+ /* @__PURE__ */ jsx("path", { d: "M20 5.00006L21.19 3.81006", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
301
+ /* @__PURE__ */ jsx("path", { d: "M3.99957 15L2.80957 16.19", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
302
+ /* @__PURE__ */ jsx("path", { d: "M4.99957 4.00006L3.80957 2.81006", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
303
+ /* @__PURE__ */ jsx("path", { d: "M20 15L21.19 16.19", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
304
+ /* @__PURE__ */ jsx("path", { d: "M21 10H22.69", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
305
+ /* @__PURE__ */ jsx("path", { d: "M1.30957 10H2.99957", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
306
+ /* @__PURE__ */ jsx("path", { d: "M9 18H14.87", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
307
+ ] });
297
308
  const Lightening = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
298
309
  /* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m13 8-3 3 4 2-3 3" }),
299
310
  /* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2Z", clipRule: "evenodd" })
@@ -332,6 +343,7 @@ const MetricsAlt = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w
332
343
  /* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M17 21H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4Z", clipRule: "evenodd" }),
333
344
  /* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m3 15 7-5 4 4 7-5" })
334
345
  ] });
346
+ const Moon = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.3945 13.0269C18.7245 12.8719 19.0765 13.1969 18.9845 13.5499C18.6705 14.7519 18.0535 15.8959 17.1035 16.8459C14.2825 19.6669 9.76953 19.7259 7.02153 16.9779C4.27353 14.2299 4.33353 9.71589 7.15453 6.89489C8.10453 5.94489 9.24753 5.32789 10.4505 5.01389C10.8035 4.92189 11.1275 5.27389 10.9735 5.60389C9.97153 7.74289 10.3005 10.3049 11.9975 12.0019C13.6935 13.6999 16.2555 14.0289 18.3945 13.0269V13.0269Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
335
347
  const Pause = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...props, children: [
336
348
  /* @__PURE__ */ jsx("rect", { x: "5.75", y: "3.75", width: "3.5", height: "16.5", rx: "1.25", stroke: "white", strokeWidth: "1.5" }),
337
349
  /* @__PURE__ */ jsx("rect", { x: "14.75", y: "3.75", width: "3.5", height: "16.5", rx: "1.25", stroke: "white", strokeWidth: "1.5" })
@@ -761,6 +773,7 @@ const ICONS_MAP = {
761
773
  keys: Keys,
762
774
  lifebuoy: Lifebuoy,
763
775
  "light-bulb": LightBulb,
776
+ "light-bulb-on": LightBulbOn,
764
777
  lightening: Lightening,
765
778
  "line-in-circle": LineInCircle,
766
779
  loading: LoadingFlipped,
@@ -769,6 +782,7 @@ const ICONS_MAP = {
769
782
  metrics: Metrics,
770
783
  "metrics-alt": MetricsAlt,
771
784
  minus: Minus,
785
+ moon: Moon,
772
786
  "no-cloud": NoCloud,
773
787
  pause: Pause,
774
788
  payment: Payment,
@@ -13533,6 +13547,634 @@ function requireSql() {
13533
13547
  sql_1 = sql2;
13534
13548
  return sql_1;
13535
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
+ }
13536
14178
  function _setPrototypeOf(o, p) {
13537
14179
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
13538
14180
  o2.__proto__ = p2;
@@ -13713,9 +14355,22 @@ var json$1 = {};
13713
14355
  exports["default"] = _default2;
13714
14356
  })(json$1);
13715
14357
  const json = /* @__PURE__ */ getDefaultExportFromCjs(json$1);
14358
+ var typescript = {};
14359
+ (function(exports) {
14360
+ var _interopRequireDefault = interopRequireDefaultExports;
14361
+ Object.defineProperty(exports, "__esModule", {
14362
+ value: true
14363
+ });
14364
+ exports["default"] = void 0;
14365
+ var _typescript = _interopRequireDefault(requireTypescript());
14366
+ var _default2 = _typescript["default"];
14367
+ exports["default"] = _default2;
14368
+ })(typescript);
14369
+ const tsx = /* @__PURE__ */ getDefaultExportFromCjs(typescript);
13716
14370
  SyntaxHighlighter.registerLanguage("sql", sql);
13717
14371
  SyntaxHighlighter.registerLanguage("bash", bash);
13718
14372
  SyntaxHighlighter.registerLanguage("json", json);
14373
+ SyntaxHighlighter.registerLanguage("tsx", tsx);
13719
14374
  const CodeBlockContainer = styled.div.withConfig({
13720
14375
  componentId: "sc-18gnqgi-0"
13721
14376
  })(["width:100%;width:-webkit-fill-available;width:fill-available;width:stretch;position:relative;cursor:pointer;", ""], ({
@@ -14428,7 +15083,7 @@ const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
14428
15083
  year: "numeric"
14429
15084
  });
14430
15085
  const explicitWidth = "250px";
14431
- const HighlightedInputWrapper = styled$1(InputWrapper).withConfig({
15086
+ const HighlightedInputWrapper = styled(InputWrapper).withConfig({
14432
15087
  componentId: "sc-1kfphgn-0"
14433
15088
  })(["", " width:", ";}"], ({
14434
15089
  $isActive,
@@ -14436,12 +15091,12 @@ const HighlightedInputWrapper = styled$1(InputWrapper).withConfig({
14436
15091
  }) => {
14437
15092
  return `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isActive ? theme2.click.datePicker.dateOption.color.stroke.active : theme2.click.field.color.stroke.default};`;
14438
15093
  }, explicitWidth);
14439
- const DatePickerContainer = styled$1(Container).withConfig({
15094
+ const DatePickerContainer = styled(Container).withConfig({
14440
15095
  componentId: "sc-1kfphgn-1"
14441
15096
  })(["background:", ";"], ({
14442
15097
  theme: theme2
14443
15098
  }) => theme2.click.datePicker.dateOption.color.background.default);
14444
- const UnselectableTitle = styled$1.h2.withConfig({
15099
+ const UnselectableTitle = styled.h2.withConfig({
14445
15100
  componentId: "sc-1kfphgn-2"
14446
15101
  })(["", " user-select:none;"], ({
14447
15102
  theme: theme2
@@ -14449,7 +15104,7 @@ const UnselectableTitle = styled$1.h2.withConfig({
14449
15104
  color: ${theme2.click.datePicker.color.title.default};
14450
15105
  font: ${theme2.click.datePicker.typography.title.default};
14451
15106
  `);
14452
- const DateTable = styled$1.table.withConfig({
15107
+ const DateTable = styled.table.withConfig({
14453
15108
  componentId: "sc-1kfphgn-3"
14454
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;}"], ({
14455
15110
  theme: theme2
@@ -14458,7 +15113,7 @@ const DateTable = styled$1.table.withConfig({
14458
15113
  }) => theme2.click.datePicker.dateOption.size.height, ({
14459
15114
  theme: theme2
14460
15115
  }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default}`);
14461
- const DateTableHeader = styled$1.th.withConfig({
15116
+ const DateTableHeader = styled.th.withConfig({
14462
15117
  componentId: "sc-1kfphgn-4"
14463
15118
  })(["", " width:14%;"], ({
14464
15119
  theme: theme2
@@ -14466,7 +15121,7 @@ const DateTableHeader = styled$1.th.withConfig({
14466
15121
  color: ${theme2.click.datePicker.color.daytitle.default};
14467
15122
  font: ${theme2.click.datePicker.typography.daytitle.default};
14468
15123
  `);
14469
- const DateTableCell = styled$1.td.withConfig({
15124
+ const DateTableCell = styled.td.withConfig({
14470
15125
  componentId: "sc-1kfphgn-5"
14471
15126
  })(["", " ", " ", " text-align:center;", " &:hover{", ";}"], ({
14472
15127
  theme: theme2
@@ -32625,9 +33280,7 @@ const HoverCardContent = ({
32625
33280
  };
32626
33281
  HoverCardContent.displayName = "HoverCardContent";
32627
33282
  HoverCard.Content = HoverCardContent;
32628
- const CuiLink = styled.a.withConfig({
32629
- componentId: "sc-1bwz77u-0"
32630
- })(["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:", ";}"], ({
32631
33284
  $size,
32632
33285
  $weight = "normal",
32633
33286
  theme: theme2
@@ -32646,6 +33299,9 @@ const CuiLink = styled.a.withConfig({
32646
33299
  }) => theme2.transition.default, ({
32647
33300
  theme: theme2
32648
33301
  }) => theme2.click.global.color.text.link.default);
33302
+ const CuiLink = styled.a.withConfig({
33303
+ componentId: "sc-1bwz77u-0"
33304
+ })(["", ""], linkStyles);
32649
33305
  const IconWrapper$1 = styled.span.withConfig({
32650
33306
  componentId: "sc-1bwz77u-1"
32651
33307
  })([".external-icon{height:", ";width:", ";}"], ({
@@ -32877,24 +33533,25 @@ const Pagination = ({
32877
33533
  ] });
32878
33534
  };
32879
33535
  const Panel = ({
32880
- hasBorder,
32881
- hasShadow,
33536
+ alignItems = "center",
33537
+ children,
32882
33538
  color,
32883
- padding,
33539
+ cursor,
33540
+ fillHeight,
33541
+ fillWidth,
32884
33542
  gap,
32885
- children,
33543
+ hasBorder,
33544
+ hasShadow,
33545
+ height,
32886
33546
  orientation = "horizontal",
32887
- width,
33547
+ padding,
32888
33548
  radii = "sm",
32889
- fillWidth,
32890
- height,
32891
- fillHeight,
32892
- alignItems = "center",
33549
+ width,
32893
33550
  ...props
32894
- }) => /* @__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 });
32895
33552
  const Wrapper$2 = styled.div.withConfig({
32896
33553
  componentId: "sc-1q78udp-0"
32897
- })(["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:", ";", ";"], ({
32898
33555
  $orientation = "horizontal"
32899
33556
  }) => $orientation === "horizontal" ? "row wrap" : "column", ({
32900
33557
  $alignItems = "center"
@@ -32922,7 +33579,9 @@ const Wrapper$2 = styled.div.withConfig({
32922
33579
  }) => $hasShadow ? theme2.shadow[1] : "none", ({
32923
33580
  $gap = "sm",
32924
33581
  theme: theme2
32925
- }) => theme2.click.panel.space.gap[$gap]);
33582
+ }) => theme2.click.panel.space.gap[$gap], ({
33583
+ $cursor
33584
+ }) => $cursor && `cursor: ${$cursor}`);
32926
33585
  const ProgressContainer = styled.div.withConfig({
32927
33586
  componentId: "sc-16gr3cg-0"
32928
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;", ";"], ({
@@ -49445,6 +50104,7 @@ export {
49445
50104
  VerticalStepper,
49446
50105
  WarningAlert,
49447
50106
  createToast,
50107
+ linkStyles,
49448
50108
  themes,
49449
50109
  useCUITheme,
49450
50110
  useToast