@neo4j-ndl/react 5.0.0 → 5.1.0
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/lib/cjs/index.js +3 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/operational-tag/OperationalTag.js +58 -0
- package/lib/cjs/operational-tag/OperationalTag.js.map +1 -0
- package/lib/cjs/operational-tag/index.js +26 -0
- package/lib/cjs/operational-tag/index.js.map +1 -0
- package/lib/cjs/operational-tag/stories/index.js +56 -0
- package/lib/cjs/operational-tag/stories/index.js.map +1 -0
- package/lib/cjs/operational-tag/stories/operational-tag-active.story.js +30 -0
- package/lib/cjs/operational-tag/stories/operational-tag-active.story.js.map +1 -0
- package/lib/cjs/operational-tag/stories/operational-tag-default.story.js +30 -0
- package/lib/cjs/operational-tag/stories/operational-tag-default.story.js.map +1 -0
- package/lib/cjs/operational-tag/stories/operational-tag-disabled.story.js +30 -0
- package/lib/cjs/operational-tag/stories/operational-tag-disabled.story.js.map +1 -0
- package/lib/cjs/operational-tag/stories/operational-tag-sizes.story.js +30 -0
- package/lib/cjs/operational-tag/stories/operational-tag-sizes.story.js.map +1 -0
- package/lib/cjs/operational-tag/stories/operational-tag-truncation.story.js +31 -0
- package/lib/cjs/operational-tag/stories/operational-tag-truncation.story.js.map +1 -0
- package/lib/cjs/operational-tag/stories/operational-tag-with-leading-color.story.js +30 -0
- package/lib/cjs/operational-tag/stories/operational-tag-with-leading-color.story.js.map +1 -0
- package/lib/cjs/operational-tag/stories/operational-tag-with-leading-icon.story.js +31 -0
- package/lib/cjs/operational-tag/stories/operational-tag-with-leading-icon.story.js.map +1 -0
- package/lib/cjs/tag-base/stories/tag-variants.story.js +1 -1
- package/lib/cjs/tag-base/stories/tag-variants.story.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/operational-tag/OperationalTag.js +51 -0
- package/lib/esm/operational-tag/OperationalTag.js.map +1 -0
- package/lib/esm/operational-tag/index.js +22 -0
- package/lib/esm/operational-tag/index.js.map +1 -0
- package/lib/esm/operational-tag/stories/index.js +43 -0
- package/lib/esm/operational-tag/stories/index.js.map +1 -0
- package/lib/esm/operational-tag/stories/operational-tag-active.story.js +28 -0
- package/lib/esm/operational-tag/stories/operational-tag-active.story.js.map +1 -0
- package/lib/esm/operational-tag/stories/operational-tag-default.story.js +28 -0
- package/lib/esm/operational-tag/stories/operational-tag-default.story.js.map +1 -0
- package/lib/esm/operational-tag/stories/operational-tag-disabled.story.js +28 -0
- package/lib/esm/operational-tag/stories/operational-tag-disabled.story.js.map +1 -0
- package/lib/esm/operational-tag/stories/operational-tag-sizes.story.js +28 -0
- package/lib/esm/operational-tag/stories/operational-tag-sizes.story.js.map +1 -0
- package/lib/esm/operational-tag/stories/operational-tag-truncation.story.js +29 -0
- package/lib/esm/operational-tag/stories/operational-tag-truncation.story.js.map +1 -0
- package/lib/esm/operational-tag/stories/operational-tag-with-leading-color.story.js +28 -0
- package/lib/esm/operational-tag/stories/operational-tag-with-leading-color.story.js.map +1 -0
- package/lib/esm/operational-tag/stories/operational-tag-with-leading-icon.story.js +29 -0
- package/lib/esm/operational-tag/stories/operational-tag-with-leading-icon.story.js.map +1 -0
- package/lib/esm/tag-base/stories/tag-variants.story.js +2 -2
- package/lib/esm/tag-base/stories/tag-variants.story.js.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/operational-tag/OperationalTag.d.ts +47 -0
- package/lib/types/operational-tag/OperationalTag.d.ts.map +1 -0
- package/lib/types/operational-tag/index.d.ts +22 -0
- package/lib/types/operational-tag/index.d.ts.map +1 -0
- package/lib/types/operational-tag/stories/index.d.ts +35 -0
- package/lib/types/operational-tag/stories/index.d.ts.map +1 -0
- package/lib/types/operational-tag/stories/operational-tag-active.story.d.ts +24 -0
- package/lib/types/operational-tag/stories/operational-tag-active.story.d.ts.map +1 -0
- package/lib/types/operational-tag/stories/operational-tag-default.story.d.ts +24 -0
- package/lib/types/operational-tag/stories/operational-tag-default.story.d.ts.map +1 -0
- package/lib/types/operational-tag/stories/operational-tag-disabled.story.d.ts +24 -0
- package/lib/types/operational-tag/stories/operational-tag-disabled.story.d.ts.map +1 -0
- package/lib/types/operational-tag/stories/operational-tag-sizes.story.d.ts +24 -0
- package/lib/types/operational-tag/stories/operational-tag-sizes.story.d.ts.map +1 -0
- package/lib/types/operational-tag/stories/operational-tag-truncation.story.d.ts +24 -0
- package/lib/types/operational-tag/stories/operational-tag-truncation.story.d.ts.map +1 -0
- package/lib/types/operational-tag/stories/operational-tag-with-leading-color.story.d.ts +24 -0
- package/lib/types/operational-tag/stories/operational-tag-with-leading-color.story.d.ts.map +1 -0
- package/lib/types/operational-tag/stories/operational-tag-with-leading-icon.story.d.ts +24 -0
- package/lib/types/operational-tag/stories/operational-tag-with-leading-icon.story.d.ts.map +1 -0
- package/lib/types/tag-base/stories/tag-variants.story.d.ts.map +1 -1
- package/package.json +7 -2
- package/skills/ndl-react/SKILL.md +4 -3
- package/skills/ndl-react/components/operational-tag.md +187 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
/*!
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) "Neo4j"
|
|
16
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
17
|
+
*
|
|
18
|
+
* This file is part of Neo4j.
|
|
19
|
+
*
|
|
20
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
21
|
+
* it under the terms of the GNU General Public License as published by
|
|
22
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
23
|
+
* (at your option) any later version.
|
|
24
|
+
*
|
|
25
|
+
* This program is distributed in the hope that it will be useful,
|
|
26
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
27
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
28
|
+
* GNU General Public License for more details.
|
|
29
|
+
*
|
|
30
|
+
* You should have received a copy of the GNU General Public License
|
|
31
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
32
|
+
*/
|
|
33
|
+
import classNames from 'classnames';
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* Clickable tag for actions and for identifying an item with a color or icon.
|
|
37
|
+
* For choosing from a set of options, use `SelectableTag`.
|
|
38
|
+
*/
|
|
39
|
+
export const OperationalTag = (_a) => {
|
|
40
|
+
var { children, className, htmlAttributes, isActive, leadingVisual, leadingColor, onClick, ref, isDisabled = false, size = 'medium', style } = _a, restProps = __rest(_a, ["children", "className", "htmlAttributes", "isActive", "leadingVisual", "leadingColor", "onClick", "ref", "isDisabled", "size", "style"]);
|
|
41
|
+
const classes = classNames('ndl-tag-operational', className, {
|
|
42
|
+
'ndl-active': isActive,
|
|
43
|
+
'ndl-disabled': isDisabled,
|
|
44
|
+
'ndl-large': size === 'large',
|
|
45
|
+
'ndl-medium': size === 'medium',
|
|
46
|
+
'ndl-small': size === 'small',
|
|
47
|
+
'ndl-x-small': size === 'x-small',
|
|
48
|
+
});
|
|
49
|
+
return (_jsxs("button", Object.assign({ "aria-pressed": isActive, type: "button", className: classes, disabled: isDisabled, onClick: onClick, ref: ref, style: style }, htmlAttributes, restProps, { children: [Boolean(leadingColor) && (_jsx("span", { "aria-hidden": "true", className: "ndl-operational-tag-leading-color", style: { backgroundColor: leadingColor } })), Boolean(leadingVisual) && (_jsx("span", { className: "ndl-operational-tag-leading-visual", children: leadingVisual })), _jsx("span", { className: "ndl-operational-tag-content", children: children })] })));
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=OperationalTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationalTag.js","sourceRoot":"","sources":["../../../src/operational-tag/OperationalTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,UAAU,MAAM,YAAY,CAAC;AAuBpC;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAac,EAAE,EAAE;QAblB,EAC7B,QAAQ,EACR,SAAS,EACT,cAAc,EACd,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,OAAO,EACP,GAAG,EACH,UAAU,GAAG,KAAK,EAClB,IAAI,GAAG,QAAQ,EACf,KAAK,OAEsC,EADxC,SAAS,cAZiB,yIAa9B,CADa;IAEZ,MAAM,OAAO,GAAG,UAAU,CAAC,qBAAqB,EAAE,SAAS,EAAE;QAC3D,YAAY,EAAE,QAAQ;QACtB,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,aAAa,EAAE,IAAI,KAAK,SAAS;KAClC,CAAC,CAAC;IAEH,OAAO,CACL,gDACgB,QAAQ,EACtB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,IACR,cAAc,EACd,SAAS,eAEZ,OAAO,CAAC,YAAY,CAAC,IAAI,CACxB,8BACc,MAAM,EAClB,SAAS,EAAC,mCAAmC,EAC7C,KAAK,EAAE,EAAE,eAAe,EAAE,YAAY,EAAE,GACxC,CACH,EACA,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,eAAM,SAAS,EAAC,oCAAoC,YACjD,aAAa,GACT,CACR,EACD,eAAM,SAAS,EAAC,6BAA6B,YAAE,QAAQ,GAAQ,KACxD,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport { type CommonProps } from '../_common/types';\nimport type { TagSize } from '../tag-base';\n\nexport interface OperationalTagProps {\n /** The content of the tag */\n children?: React.ReactNode;\n /** Whether the tag is in an active (pressed) state */\n isActive?: boolean;\n /** Whether the tag is disabled */\n isDisabled?: boolean;\n /** Icon to display before the content */\n leadingVisual?: React.ReactNode;\n /** Decorative color shown before the content to help users recognize the item. It carries no meaning of its own and is hidden from assistive technology, so the tag text must identify the item. Accepts a CSS variable or a hex color. */\n leadingColor?: React.CSSProperties['color'];\n /** Size of the tag */\n size?: TagSize;\n /** Callback fired when the tag is clicked */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n}\n\n/**\n * @remarks\n * Clickable tag for actions and for identifying an item with a color or icon.\n * For choosing from a set of options, use `SelectableTag`.\n */\nexport const OperationalTag = ({\n children,\n className,\n htmlAttributes,\n isActive,\n leadingVisual,\n leadingColor,\n onClick,\n ref,\n isDisabled = false,\n size = 'medium',\n style,\n ...restProps\n}: CommonProps<'button', OperationalTagProps>) => {\n const classes = classNames('ndl-tag-operational', className, {\n 'ndl-active': isActive,\n 'ndl-disabled': isDisabled,\n 'ndl-large': size === 'large',\n 'ndl-medium': size === 'medium',\n 'ndl-small': size === 'small',\n 'ndl-x-small': size === 'x-small',\n });\n\n return (\n <button\n aria-pressed={isActive}\n type=\"button\"\n className={classes}\n disabled={isDisabled}\n onClick={onClick}\n ref={ref}\n style={style}\n {...htmlAttributes}\n {...restProps}\n >\n {Boolean(leadingColor) && (\n <span\n aria-hidden=\"true\"\n className=\"ndl-operational-tag-leading-color\"\n style={{ backgroundColor: leadingColor }}\n />\n )}\n {Boolean(leadingVisual) && (\n <span className=\"ndl-operational-tag-leading-visual\">\n {leadingVisual}\n </span>\n )}\n <span className=\"ndl-operational-tag-content\">{children}</span>\n </button>\n );\n};\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { OperationalTag } from './OperationalTag';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operational-tag/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { OperationalTag } from './OperationalTag';\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as OperationalTagActive } from './operational-tag-active.story';
|
|
22
|
+
export { default as OperationalTagDefault } from './operational-tag-default.story';
|
|
23
|
+
export { default as OperationalTagDisabled } from './operational-tag-disabled.story';
|
|
24
|
+
export { default as OperationalTagSizes } from './operational-tag-sizes.story';
|
|
25
|
+
export { default as OperationalTagTruncation } from './operational-tag-truncation.story';
|
|
26
|
+
export { default as OperationalTagWithLeadingColor } from './operational-tag-with-leading-color.story';
|
|
27
|
+
export { default as OperationalTagWithLeadingIcon } from './operational-tag-with-leading-icon.story';
|
|
28
|
+
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
29
|
+
import OperationalTagActiveSrcRaw from './operational-tag-active.story?raw';
|
|
30
|
+
import OperationalTagDefaultSrcRaw from './operational-tag-default.story?raw';
|
|
31
|
+
import OperationalTagDisabledSrcRaw from './operational-tag-disabled.story?raw';
|
|
32
|
+
import OperationalTagSizesSrcRaw from './operational-tag-sizes.story?raw';
|
|
33
|
+
import OperationalTagTruncationSrcRaw from './operational-tag-truncation.story?raw';
|
|
34
|
+
import OperationalTagWithLeadingColorSrcRaw from './operational-tag-with-leading-color.story?raw';
|
|
35
|
+
import OperationalTagWithLeadingIconSrcRaw from './operational-tag-with-leading-icon.story?raw';
|
|
36
|
+
export const OperationalTagActiveSrc = removeLicenseHeader(OperationalTagActiveSrcRaw);
|
|
37
|
+
export const OperationalTagDefaultSrc = removeLicenseHeader(OperationalTagDefaultSrcRaw);
|
|
38
|
+
export const OperationalTagDisabledSrc = removeLicenseHeader(OperationalTagDisabledSrcRaw);
|
|
39
|
+
export const OperationalTagSizesSrc = removeLicenseHeader(OperationalTagSizesSrcRaw);
|
|
40
|
+
export const OperationalTagTruncationSrc = removeLicenseHeader(OperationalTagTruncationSrcRaw);
|
|
41
|
+
export const OperationalTagWithLeadingColorSrc = removeLicenseHeader(OperationalTagWithLeadingColorSrcRaw);
|
|
42
|
+
export const OperationalTagWithLeadingIconSrc = removeLicenseHeader(OperationalTagWithLeadingIconSrcRaw);
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/operational-tag/stories/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AACvG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,0BAA0B,MAAM,oCAAoC,CAAC;AAC5E,OAAO,2BAA2B,MAAM,qCAAqC,CAAC;AAC9E,OAAO,4BAA4B,MAAM,sCAAsC,CAAC;AAChF,OAAO,yBAAyB,MAAM,mCAAmC,CAAC;AAC1E,OAAO,8BAA8B,MAAM,wCAAwC,CAAC;AACpF,OAAO,oCAAoC,MAAM,gDAAgD,CAAC;AAClG,OAAO,mCAAmC,MAAM,+CAA+C,CAAC;AAEhG,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CACxD,0BAA0B,CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CACzD,2BAA2B,CAC5B,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAC1D,4BAA4B,CAC7B,CAAC;AACF,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CACvD,yBAAyB,CAC1B,CAAC;AACF,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAC5D,8BAA8B,CAC/B,CAAC;AACF,MAAM,CAAC,MAAM,iCAAiC,GAAG,mBAAmB,CAClE,oCAAoC,CACrC,CAAC;AACF,MAAM,CAAC,MAAM,gCAAgC,GAAG,mBAAmB,CACjE,mCAAmC,CACpC,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as OperationalTagActive } from './operational-tag-active.story';\nexport { default as OperationalTagDefault } from './operational-tag-default.story';\nexport { default as OperationalTagDisabled } from './operational-tag-disabled.story';\nexport { default as OperationalTagSizes } from './operational-tag-sizes.story';\nexport { default as OperationalTagTruncation } from './operational-tag-truncation.story';\nexport { default as OperationalTagWithLeadingColor } from './operational-tag-with-leading-color.story';\nexport { default as OperationalTagWithLeadingIcon } from './operational-tag-with-leading-icon.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport OperationalTagActiveSrcRaw from './operational-tag-active.story?raw';\nimport OperationalTagDefaultSrcRaw from './operational-tag-default.story?raw';\nimport OperationalTagDisabledSrcRaw from './operational-tag-disabled.story?raw';\nimport OperationalTagSizesSrcRaw from './operational-tag-sizes.story?raw';\nimport OperationalTagTruncationSrcRaw from './operational-tag-truncation.story?raw';\nimport OperationalTagWithLeadingColorSrcRaw from './operational-tag-with-leading-color.story?raw';\nimport OperationalTagWithLeadingIconSrcRaw from './operational-tag-with-leading-icon.story?raw';\n\nexport const OperationalTagActiveSrc = removeLicenseHeader(\n OperationalTagActiveSrcRaw,\n);\nexport const OperationalTagDefaultSrc = removeLicenseHeader(\n OperationalTagDefaultSrcRaw,\n);\nexport const OperationalTagDisabledSrc = removeLicenseHeader(\n OperationalTagDisabledSrcRaw,\n);\nexport const OperationalTagSizesSrc = removeLicenseHeader(\n OperationalTagSizesSrcRaw,\n);\nexport const OperationalTagTruncationSrc = removeLicenseHeader(\n OperationalTagTruncationSrcRaw,\n);\nexport const OperationalTagWithLeadingColorSrc = removeLicenseHeader(\n OperationalTagWithLeadingColorSrcRaw,\n);\nexport const OperationalTagWithLeadingIconSrc = removeLicenseHeader(\n OperationalTagWithLeadingIconSrcRaw,\n);\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { OperationalTag } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return _jsx(OperationalTag, { isActive: true, children: "Active operational tag" });
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=operational-tag-active.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operational-tag-active.story.js","sourceRoot":"","sources":["../../../../src/operational-tag/stories/operational-tag-active.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,cAAc,IAAC,QAAQ,6CAAwC,CAAC;AAC1E,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { OperationalTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return <OperationalTag isActive>Active operational tag</OperationalTag>;\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { OperationalTag } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return _jsx(OperationalTag, { children: "Operational Tag" });
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=operational-tag-default.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operational-tag-default.story.js","sourceRoot":"","sources":["../../../../src/operational-tag/stories/operational-tag-default.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,cAAc,kCAAiC,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { OperationalTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return <OperationalTag>Operational Tag</OperationalTag>;\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { OperationalTag } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return _jsx(OperationalTag, { isDisabled: true, children: "Disabled operational tag" });
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=operational-tag-disabled.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operational-tag-disabled.story.js","sourceRoot":"","sources":["../../../../src/operational-tag/stories/operational-tag-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,cAAc,IAAC,UAAU,+CAA0C,CAAC;AAC9E,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { OperationalTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return <OperationalTag isDisabled>Disabled operational tag</OperationalTag>;\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { OperationalTag } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsxs("div", { className: "flex flex-row gap-token-8", children: [_jsx(OperationalTag, { size: "x-small", children: "X-Small" }), _jsx(OperationalTag, { size: "small", children: "Small" }), _jsx(OperationalTag, { size: "medium", children: "Medium" }), _jsx(OperationalTag, { size: "large", children: "Large" })] }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=operational-tag-sizes.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operational-tag-sizes.story.js","sourceRoot":"","sources":["../../../../src/operational-tag/stories/operational-tag-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,2BAA2B,aACxC,KAAC,cAAc,IAAC,IAAI,EAAC,SAAS,wBAAyB,EACvD,KAAC,cAAc,IAAC,IAAI,EAAC,OAAO,sBAAuB,EACnD,KAAC,cAAc,IAAC,IAAI,EAAC,QAAQ,uBAAwB,EACrD,KAAC,cAAc,IAAC,IAAI,EAAC,OAAO,sBAAuB,IAC/C,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { OperationalTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <div className=\"flex flex-row gap-token-8\">\n <OperationalTag size=\"x-small\">X-Small</OperationalTag>\n <OperationalTag size=\"small\">Small</OperationalTag>\n <OperationalTag size=\"medium\">Medium</OperationalTag>\n <OperationalTag size=\"large\">Large</OperationalTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { OperationalTag, Tooltip } from '@neo4j-ndl/react';
|
|
24
|
+
const label = 'This is a very very very long tag label that should be truncated';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
return (_jsx("div", { style: { maxWidth: 200 }, children: _jsxs(Tooltip, { type: "simple", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(OperationalTag, { children: label }) }), _jsx(Tooltip.Content, { children: label })] }) }));
|
|
27
|
+
};
|
|
28
|
+
export default Component;
|
|
29
|
+
//# sourceMappingURL=operational-tag-truncation.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operational-tag-truncation.story.js","sourceRoot":"","sources":["../../../../src/operational-tag/stories/operational-tag-truncation.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,KAAK,GACT,kEAAkE,CAAC;AAErE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,YAC3B,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,cAAc,cAAE,KAAK,GAAkB,GACxB,EAClB,KAAC,OAAO,CAAC,OAAO,cAAE,KAAK,GAAmB,IAClC,GACN,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { OperationalTag, Tooltip } from '@neo4j-ndl/react';\n\nconst label =\n 'This is a very very very long tag label that should be truncated';\n\nconst Component = () => {\n return (\n <div style={{ maxWidth: 200 }}>\n <Tooltip type=\"simple\">\n <Tooltip.Trigger hasButtonWrapper>\n <OperationalTag>{label}</OperationalTag>\n </Tooltip.Trigger>\n <Tooltip.Content>{label}</Tooltip.Content>\n </Tooltip>\n </div>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { OperationalTag } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(OperationalTag, { leadingColor: "var(--categorical-1)", children: "Operational Tag with leading color" }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=operational-tag-with-leading-color.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operational-tag-with-leading-color.story.js","sourceRoot":"","sources":["../../../../src/operational-tag/stories/operational-tag-with-leading-color.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,cAAc,IAAC,YAAY,EAAC,sBAAsB,mDAElC,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { OperationalTag } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <OperationalTag leadingColor=\"var(--categorical-1)\">\n Operational Tag with leading color\n </OperationalTag>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*!
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { OperationalTag } from '@neo4j-ndl/react';
|
|
24
|
+
import { DatabasePlusIcon } from '@neo4j-ndl/react/icons';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
return (_jsx(OperationalTag, { leadingVisual: _jsx(DatabasePlusIcon, {}), children: "Operational Tag with leading icon" }));
|
|
27
|
+
};
|
|
28
|
+
export default Component;
|
|
29
|
+
//# sourceMappingURL=operational-tag-with-leading-icon.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operational-tag-with-leading-icon.story.js","sourceRoot":"","sources":["../../../../src/operational-tag/stories/operational-tag-with-leading-icon.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,cAAc,IAAC,aAAa,EAAE,KAAC,gBAAgB,KAAG,kDAElC,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { OperationalTag } from '@neo4j-ndl/react';\nimport { DatabasePlusIcon } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <OperationalTag leadingVisual={<DatabasePlusIcon />}>\n Operational Tag with leading icon\n </OperationalTag>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -20,11 +20,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
20
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
21
|
*/
|
|
22
22
|
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
-
import { DismissibleTag, ReadOnlyTag, SelectableTag } from '@neo4j-ndl/react';
|
|
23
|
+
import { DismissibleTag, OperationalTag, ReadOnlyTag, SelectableTag, } from '@neo4j-ndl/react';
|
|
24
24
|
import { useState } from 'react';
|
|
25
25
|
const Component = () => {
|
|
26
26
|
const [isSelected, setIsSelected] = useState(false);
|
|
27
|
-
return (_jsxs("div", { className: "flex flex-col gap-token-8 items-start", children: [_jsx(ReadOnlyTag, { children: "Read-only" }), _jsx(DismissibleTag, { onRemove: () =>
|
|
27
|
+
return (_jsxs("div", { className: "flex flex-col gap-token-8 items-start", children: [_jsx(ReadOnlyTag, { children: "Read-only" }), _jsx(DismissibleTag, { onRemove: () => alert('DismissibleTag onRemove was called'), children: "Dismissible" }), _jsx(SelectableTag, { isSelected: isSelected, onClick: () => setIsSelected(!isSelected), children: "Selectable" }), _jsx(OperationalTag, { leadingColor: "var(--categorical-1)", children: "Operational" })] }));
|
|
28
28
|
};
|
|
29
29
|
export default Component;
|
|
30
30
|
//# sourceMappingURL=tag-variants.story.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-variants.story.js","sourceRoot":"","sources":["../../../../src/tag-base/stories/tag-variants.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"tag-variants.story.js","sourceRoot":"","sources":["../../../../src/tag-base/stories/tag-variants.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,eAAK,SAAS,EAAC,uCAAuC,aACpD,KAAC,WAAW,4BAAwB,EACpC,KAAC,cAAc,IACb,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,oCAAoC,CAAC,4BAG5C,EACjB,KAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,2BAG3B,EAChB,KAAC,cAAc,IAAC,YAAY,EAAC,sBAAsB,4BAElC,IACb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n DismissibleTag,\n OperationalTag,\n ReadOnlyTag,\n SelectableTag,\n} from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst Component = () => {\n const [isSelected, setIsSelected] = useState(false);\n\n return (\n <div className=\"flex flex-col gap-token-8 items-start\">\n <ReadOnlyTag>Read-only</ReadOnlyTag>\n <DismissibleTag\n onRemove={() => alert('DismissibleTag onRemove was called')}\n >\n Dismissible\n </DismissibleTag>\n <SelectableTag\n isSelected={isSelected}\n onClick={() => setIsSelected(!isSelected)}\n >\n Selectable\n </SelectableTag>\n <OperationalTag leadingColor=\"var(--categorical-1)\">\n Operational\n </OperationalTag>\n </div>\n );\n};\n\nexport default Component;\n"]}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -84,5 +84,6 @@ export { SelectIconButton } from './select-icon-button';
|
|
|
84
84
|
export { ReadOnlyTag } from './read-only-tag';
|
|
85
85
|
export { DismissibleTag } from './dismissible-tag';
|
|
86
86
|
export { SelectableTag } from './selectable-tag';
|
|
87
|
+
export { OperationalTag } from './operational-tag';
|
|
87
88
|
export * from './combobox';
|
|
88
89
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAA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
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import type React from 'react';
|
|
23
|
+
import { type CommonProps } from '../_common/types';
|
|
24
|
+
import type { TagSize } from '../tag-base';
|
|
25
|
+
export interface OperationalTagProps {
|
|
26
|
+
/** The content of the tag */
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
/** Whether the tag is in an active (pressed) state */
|
|
29
|
+
isActive?: boolean;
|
|
30
|
+
/** Whether the tag is disabled */
|
|
31
|
+
isDisabled?: boolean;
|
|
32
|
+
/** Icon to display before the content */
|
|
33
|
+
leadingVisual?: React.ReactNode;
|
|
34
|
+
/** Decorative color shown before the content to help users recognize the item. It carries no meaning of its own and is hidden from assistive technology, so the tag text must identify the item. Accepts a CSS variable or a hex color. */
|
|
35
|
+
leadingColor?: React.CSSProperties['color'];
|
|
36
|
+
/** Size of the tag */
|
|
37
|
+
size?: TagSize;
|
|
38
|
+
/** Callback fired when the tag is clicked */
|
|
39
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @remarks
|
|
43
|
+
* Clickable tag for actions and for identifying an item with a color or icon.
|
|
44
|
+
* For choosing from a set of options, use `SelectableTag`.
|
|
45
|
+
*/
|
|
46
|
+
export declare const OperationalTag: ({ children, className, htmlAttributes, isActive, leadingVisual, leadingColor, onClick, ref, isDisabled, size, style, ...restProps }: CommonProps<"button", OperationalTagProps>) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
//# sourceMappingURL=OperationalTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationalTag.d.ts","sourceRoot":"","sources":["../../../src/operational-tag/OperationalTag.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yCAAyC;IACzC,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,2OAA2O;IAC3O,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC5C,sBAAsB;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACtD;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,qIAa5B,WAAW,CAAC,QAAQ,EAAE,mBAAmB,CAAC,4CAqC5C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { OperationalTag } from './OperationalTag';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operational-tag/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as OperationalTagActive } from './operational-tag-active.story';
|
|
22
|
+
export { default as OperationalTagDefault } from './operational-tag-default.story';
|
|
23
|
+
export { default as OperationalTagDisabled } from './operational-tag-disabled.story';
|
|
24
|
+
export { default as OperationalTagSizes } from './operational-tag-sizes.story';
|
|
25
|
+
export { default as OperationalTagTruncation } from './operational-tag-truncation.story';
|
|
26
|
+
export { default as OperationalTagWithLeadingColor } from './operational-tag-with-leading-color.story';
|
|
27
|
+
export { default as OperationalTagWithLeadingIcon } from './operational-tag-with-leading-icon.story';
|
|
28
|
+
export declare const OperationalTagActiveSrc: string;
|
|
29
|
+
export declare const OperationalTagDefaultSrc: string;
|
|
30
|
+
export declare const OperationalTagDisabledSrc: string;
|
|
31
|
+
export declare const OperationalTagSizesSrc: string;
|
|
32
|
+
export declare const OperationalTagTruncationSrc: string;
|
|
33
|
+
export declare const OperationalTagWithLeadingColorSrc: string;
|
|
34
|
+
export declare const OperationalTagWithLeadingIconSrc: string;
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operational-tag/stories/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AACvG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAWrG,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AACF,eAAO,MAAM,yBAAyB,QAErC,CAAC;AACF,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,2BAA2B,QAEvC,CAAC;AACF,eAAO,MAAM,iCAAiC,QAE7C,CAAC;AACF,eAAO,MAAM,gCAAgC,QAE5C,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
24
|
+
//# sourceMappingURL=operational-tag-active.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operational-tag-active.story.d.ts","sourceRoot":"","sources":["../../../../src/operational-tag/stories/operational-tag-active.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+CAEd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|