@harnessio/ui 1.3.22 → 1.3.23
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/components.d.ts +12 -0
- package/dist/components.js +2 -2
- package/dist/context.js +2 -2
- package/dist/{index-CyZ2_ztL.js → index--Fmbjmmn.js} +5531 -5525
- package/dist/{index-CyZ2_ztL.js.map → index--Fmbjmmn.js.map} +1 -1
- package/dist/index-BDJi_LAk.js +1724 -0
- package/dist/index-BDJi_LAk.js.map +1 -0
- package/dist/{index-mqyyt6h1.js → index-CrRWU2DY.js} +2 -2
- package/dist/{index-mqyyt6h1.js.map → index-CrRWU2DY.js.map} +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/dist/index-DVdsT8Ub.js +0 -1718
- package/dist/index-DVdsT8Ub.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as c, H as v, u as g, a as P } from "./button-C279ILnq.js";
|
|
2
2
|
import { R as T, u as w } from "./use-resize-observer-DNQ1lBLF.js";
|
|
3
|
-
import { E, f as b, v as h, w as y, g as D, x as S, q as _, e as j, u as M } from "./index-
|
|
3
|
+
import { E, f as b, v as h, w as y, g as D, x as S, q as _, e as j, u as M } from "./index-BDJi_LAk.js";
|
|
4
4
|
import { jsx as i, jsxs as O } from "react/jsx-runtime";
|
|
5
5
|
import { createContext as u, useContext as C, useState as a, useCallback as R, useMemo as k } from "react";
|
|
6
6
|
import { a as q, C as z, M as B, l as G, k as H } from "./types-DuzuERyI.js";
|
|
@@ -78,4 +78,4 @@ export {
|
|
|
78
78
|
L as m,
|
|
79
79
|
W as u
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=index-
|
|
81
|
+
//# sourceMappingURL=index-CrRWU2DY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CrRWU2DY.js","sources":["../src/context/theme/migrate-persisted-theme.ts","../src/context/component-context.tsx","../src/context/exit-confirm-context.tsx"],"sourcesContent":["import { FullTheme } from './types'\n\n/** Rewrite deprecated dimmer/low contrast themes to standard contrast. */\nexport function migrateLowContrastTheme(theme?: FullTheme): FullTheme | undefined {\n if (theme?.endsWith('-low')) {\n return theme.replace(/-low$/, '-std') as FullTheme\n }\n\n return theme\n}\n","// ComponentContext.tsx\n\nimport React, { createContext, ReactNode, RefAttributes, useContext } from 'react'\n\nimport { RbacButtonProps, RbacMoreActionsTooltipProps, RbacSplitButtonProps } from '@components/rbac'\n\ninterface ComponentContextValue {\n RbacButton: React.ComponentType<RbacButtonProps & RefAttributes<HTMLButtonElement>>\n RbacSplitButton: <T extends string>(props: RbacSplitButtonProps<T>) => JSX.Element\n RbacMoreActionsTooltip: React.ForwardRefExoticComponent<\n RbacMoreActionsTooltipProps & RefAttributes<HTMLButtonElement>\n >\n}\n\nconst ComponentContext = createContext<ComponentContextValue | undefined>(undefined)\n\nexport const ComponentProvider = ({\n components,\n children\n}: {\n components: ComponentContextValue\n children: ReactNode\n}) => {\n return <ComponentContext.Provider value={components}>{children}</ComponentContext.Provider>\n}\n\nexport const useComponents = () => {\n const ctx = useContext(ComponentContext)\n if (!ctx) throw new Error('useComponents must be used within ComponentProvider')\n return ctx\n}\n","import { createContext, useCallback, useContext, useMemo, useState } from 'react'\n\nimport { ExitConfirmDialog, ExitConfirmOptions } from '../components/dialogs/exit-confirm-dialog'\n\nexport interface ExitConfirmContextType {\n show: (options: ExitConfirmOptions) => void\n}\n\nexport const ExitConfirmContext = createContext<ExitConfirmContextType>({\n show: (_options: ExitConfirmOptions) => undefined\n})\n\nexport function ExitConfirmProvider({ children }: { children: React.ReactNode }) {\n const [confirm, setConfirm] = useState<ExitConfirmOptions>()\n const [open, setOpen] = useState(false)\n\n const show = useCallback(\n (confirmOptions?: ExitConfirmOptions) => {\n setConfirm(confirmOptions)\n setOpen(true)\n },\n [setOpen]\n )\n\n const onConfirm = () => {\n confirm?.onConfirm?.()\n setOpen(false)\n }\n\n const onCancel = () => {\n confirm?.onCancel?.()\n setOpen(false)\n }\n\n const value = useMemo(() => ({ show }), [show])\n\n return (\n <ExitConfirmContext.Provider value={value}>\n {children}\n <ExitConfirmDialog {...confirm} onCancel={onCancel} onConfirm={onConfirm} open={open} />\n </ExitConfirmContext.Provider>\n )\n}\n\nexport const useExitConfirm = () => {\n const context = useContext(ExitConfirmContext)\n if (!context) {\n throw new Error('useExitConfirm must be used within a ExitConfirmProvider')\n }\n return context\n}\n"],"names":["migrateLowContrastTheme","theme","ComponentContext","createContext","ComponentProvider","components","children","useComponents","ctx","useContext","ExitConfirmContext","_options","ExitConfirmProvider","confirm","setConfirm","useState","open","setOpen","show","useCallback","confirmOptions","onConfirm","_a","onCancel","value","useMemo","jsxs","ExitConfirmDialog","useExitConfirm","context"],"mappings":";;;;;;AAGO,SAASA,EAAwBC,GAA0C;AAC5E,SAAAA,KAAA,QAAAA,EAAO,SAAS,UACXA,EAAM,QAAQ,SAAS,MAAM,IAG/BA;AACT;ACKA,MAAMC,IAAmBC,EAAiD,MAAS,GAEtEC,IAAoB,CAAC;AAAA,EAChC,YAAAC;AAAA,EACA,UAAAC;AACF,wBAIUJ,EAAiB,UAAjB,EAA0B,OAAOG,GAAa,UAAAC,GAAS,GAGpDC,IAAgB,MAAM;AAC3B,QAAAC,IAAMC,EAAWP,CAAgB;AACvC,MAAI,CAACM,EAAW,OAAA,IAAI,MAAM,qDAAqD;AACxE,SAAAA;AACT,GCtBaE,IAAqBP,EAAsC;AAAA,EACtE,MAAM,CAACQ,MAAiC;AAAA;AAC1C,CAAC;AAEe,SAAAC,EAAoB,EAAE,UAAAN,KAA2C;AAC/E,QAAM,CAACO,GAASC,CAAU,IAAIC,EAA6B,GACrD,CAACC,GAAMC,CAAO,IAAIF,EAAS,EAAK,GAEhCG,IAAOC;AAAA,IACX,CAACC,MAAwC;AACvC,MAAAN,EAAWM,CAAc,GACzBH,EAAQ,EAAI;AAAA,IACd;AAAA,IACA,CAACA,CAAO;AAAA,EACV,GAEMI,IAAY,MAAM;;AACtB,KAAAC,IAAAT,KAAA,gBAAAA,EAAS,cAAT,QAAAS,EAAA,KAAAT,IACAI,EAAQ,EAAK;AAAA,EACf,GAEMM,IAAW,MAAM;;AACrB,KAAAD,IAAAT,KAAA,gBAAAA,EAAS,aAAT,QAAAS,EAAA,KAAAT,IACAI,EAAQ,EAAK;AAAA,EACf,GAEMO,IAAQC,EAAQ,OAAO,EAAE,MAAAP,MAAS,CAACA,CAAI,CAAC;AAE9C,SACG,gBAAAQ,EAAAhB,EAAmB,UAAnB,EAA4B,OAAAc,GAC1B,UAAA;AAAA,IAAAlB;AAAA,sBACAqB,GAAmB,EAAA,GAAGd,GAAS,UAAAU,GAAoB,WAAAF,GAAsB,MAAAL,EAAY,CAAA;AAAA,EAAA,GACxF;AAEJ;AAEO,MAAMY,IAAiB,MAAM;AAC5B,QAAAC,IAAUpB,EAAWC,CAAkB;AAC7C,MAAI,CAACmB;AACG,UAAA,IAAI,MAAM,0DAA0D;AAErE,SAAAA;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4604,6 +4604,7 @@ declare const LogoNameMapV2: {
|
|
|
4604
4604
|
'chat-gpt': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4605
4605
|
checkmarx: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4606
4606
|
checkov: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4607
|
+
'circle-ci': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4607
4608
|
claude: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4608
4609
|
codecov: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4609
4610
|
composer: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -4644,6 +4645,7 @@ declare const LogoNameMapV2: {
|
|
|
4644
4645
|
gitlab: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4645
4646
|
gitleaks: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4646
4647
|
go: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4648
|
+
gocd: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4647
4649
|
google: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4648
4650
|
grafana: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4649
4651
|
group: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -4700,6 +4702,8 @@ declare const LogoNameMapV2: {
|
|
|
4700
4702
|
qwiet: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4701
4703
|
rancher: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4702
4704
|
redhat: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4705
|
+
'registry-generic': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4706
|
+
'registry-raw': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4703
4707
|
ruby: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4704
4708
|
'run-test': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4705
4709
|
run: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -4726,10 +4730,12 @@ declare const LogoNameMapV2: {
|
|
|
4726
4730
|
tanzu: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4727
4731
|
'tas-vars': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4728
4732
|
tas: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4733
|
+
teamcity: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4729
4734
|
tenable: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4730
4735
|
terraform: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4731
4736
|
terragrunt: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4732
4737
|
traceable: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4738
|
+
'travis-ci': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4733
4739
|
veracode: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4734
4740
|
'vue-js': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4735
4741
|
windows: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -7544,6 +7550,7 @@ declare const SymbolNameMap: {
|
|
|
7544
7550
|
'chat-gpt': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7545
7551
|
checkmarx: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7546
7552
|
checkov: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7553
|
+
'circle-ci': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7547
7554
|
claude: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7548
7555
|
codecov: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7549
7556
|
composer: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -7584,6 +7591,7 @@ declare const SymbolNameMap: {
|
|
|
7584
7591
|
gitlab: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7585
7592
|
gitleaks: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7586
7593
|
go: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7594
|
+
gocd: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7587
7595
|
google: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7588
7596
|
grafana: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7589
7597
|
group: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -7640,6 +7648,8 @@ declare const SymbolNameMap: {
|
|
|
7640
7648
|
qwiet: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7641
7649
|
rancher: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7642
7650
|
redhat: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7651
|
+
'registry-generic': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7652
|
+
'registry-raw': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7643
7653
|
ruby: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7644
7654
|
'run-test': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7645
7655
|
run: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -7666,10 +7676,12 @@ declare const SymbolNameMap: {
|
|
|
7666
7676
|
tanzu: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7667
7677
|
'tas-vars': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7668
7678
|
tas: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7679
|
+
teamcity: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7669
7680
|
tenable: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7670
7681
|
terraform: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7671
7682
|
terragrunt: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7672
7683
|
traceable: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7684
|
+
'travis-ci': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7673
7685
|
veracode: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7674
7686
|
'vue-js': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7675
7687
|
windows: FunctionComponent<SVGProps<SVGSVGElement>>;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as s } from "./index-CdF49wK7.js";
|
|
2
|
-
import { i as e } from "./index
|
|
3
|
-
import { i as a } from "./index-
|
|
2
|
+
import { i as e } from "./index--Fmbjmmn.js";
|
|
3
|
+
import { i as a } from "./index-CrRWU2DY.js";
|
|
4
4
|
import { i as m } from "./index-C4bDY5-3.js";
|
|
5
5
|
import { i as f } from "./index-DchZrYRY.js";
|
|
6
6
|
import { i as l } from "./index-oHUgJ_rr.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/ui",
|
|
3
3
|
"description": "Harness Canary UI component library",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.23",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
"vaul": "^1.1.2",
|
|
123
123
|
"yaml": "^2.7.0",
|
|
124
124
|
"zod": "^4.0.0",
|
|
125
|
-
"@harnessio/pipeline-graph": "1.9.7",
|
|
126
125
|
"@harnessio/core-design-system": "0.0.1",
|
|
126
|
+
"@harnessio/pipeline-graph": "1.9.7",
|
|
127
127
|
"@harnessio/yaml-editor": "0.26.1"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|