@splunk/react-icons 5.11.0 → 5.12.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.
Files changed (40) hide show
  1. package/AlignArrowLeft.d.ts +2 -0
  2. package/AlignArrowLeft.js +154 -0
  3. package/AlignArrowRight.d.ts +2 -0
  4. package/AlignArrowRight.js +154 -0
  5. package/ArrowsFourCorners.d.ts +2 -0
  6. package/ArrowsFourCorners.js +158 -0
  7. package/ArrowsFourCornersInside.d.ts +2 -0
  8. package/ArrowsFourCornersInside.js +158 -0
  9. package/ArrowsRoundedRectangularDoubleSlashed.js +3 -3
  10. package/CHANGELOG.md +12 -0
  11. package/CaretDown.js +1 -1
  12. package/ControlRewind.js +1 -1
  13. package/EyeClosed.d.ts +2 -0
  14. package/EyeClosed.js +144 -0
  15. package/FilterArrowDown.js +4 -4
  16. package/FilterArrowUp.js +2 -2
  17. package/FilterArrowUpDown.js +2 -2
  18. package/FingerPointClicking.js +5 -5
  19. package/HeartRibbon.js +1 -1
  20. package/ParallelDotsHorizontal.js +6 -6
  21. package/PhoneReceiverAngledSlashed.js +2 -2
  22. package/RectangularsArrowInto.js +1 -1
  23. package/Scope.js +1 -1
  24. package/TextBBold.js +1 -1
  25. package/TextDirectionMinus45.js +2 -2
  26. package/WiFiSignalSlash.js +2 -2
  27. package/WindowOverlay.d.ts +2 -0
  28. package/WindowOverlay.js +154 -0
  29. package/WindowSidebarRight.d.ts +2 -0
  30. package/WindowSidebarRight.js +152 -0
  31. package/eslint.config.cjs +11 -0
  32. package/icon-catalog.json +83 -0
  33. package/package.json +5 -10
  34. package/types/icons/AlignArrowLeft.d.ts +17 -0
  35. package/types/icons/AlignArrowRight.d.ts +17 -0
  36. package/types/icons/ArrowsFourCorners.d.ts +17 -0
  37. package/types/icons/ArrowsFourCornersInside.d.ts +17 -0
  38. package/types/icons/EyeClosed.d.ts +17 -0
  39. package/types/icons/WindowOverlay.d.ts +17 -0
  40. package/types/icons/WindowSidebarRight.d.ts +17 -0
@@ -0,0 +1,152 @@
1
+ /******/ (() => {
2
+ // webpackBootstrap
3
+ /******/ "use strict";
4
+ /******/ // The require scope
5
+ /******/ var e = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/compat get default export */
9
+ /******/ (() => {
10
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
11
+ /******/ e.n = r => {
12
+ /******/ var t = r && r.__esModule ?
13
+ /******/ () => r["default"]
14
+ /******/ : () => r
15
+ /******/;
16
+ e.d(t, {
17
+ a: t
18
+ });
19
+ /******/ return t;
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/define property getters */
24
+ /******/ (() => {
25
+ /******/ // define getter functions for harmony exports
26
+ /******/ e.d = (r, t) => {
27
+ /******/ for (var n in t) {
28
+ /******/ if (e.o(t, n) && !e.o(r, n)) {
29
+ /******/ Object.defineProperty(r, n, {
30
+ enumerable: true,
31
+ get: t[n]
32
+ });
33
+ /******/ }
34
+ /******/ }
35
+ /******/ };
36
+ /******/ })();
37
+ /******/
38
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
+ /******/ (() => {
40
+ /******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
41
+ /******/;
42
+ })();
43
+ /******/
44
+ /******/ /* webpack/runtime/make namespace object */
45
+ /******/ (() => {
46
+ /******/ // define __esModule on exports
47
+ /******/ e.r = e => {
48
+ /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
49
+ /******/ Object.defineProperty(e, Symbol.toStringTag, {
50
+ value: "Module"
51
+ });
52
+ /******/ }
53
+ /******/ Object.defineProperty(e, "__esModule", {
54
+ value: true
55
+ });
56
+ /******/ };
57
+ /******/ })();
58
+ /******/
59
+ /************************************************************************/ var r = {};
60
+ // ESM COMPAT FLAG
61
+ e.r(r);
62
+ // EXPORTS
63
+ e.d(r, {
64
+ default: () => /* binding */ m
65
+ });
66
+ // external "react"
67
+ const t = require("react");
68
+ var n = e.n(t);
69
+ // external "@splunk/react-icons/IconProvider"
70
+ const a = require("@splunk/react-icons/IconProvider");
71
+ // external "@splunk/react-icons/SVG"
72
+ const o = require("@splunk/react-icons/SVG");
73
+ var l = e.n(o);
74
+ // external "@splunk/ui-utils/logger"
75
+ const u = require("@splunk/ui-utils/logger");
76
+ // ./src/icons/WindowSidebarRight.tsx
77
+ function i(e, r) {
78
+ if (null == e) return {};
79
+ var t, n, a = c(e, r);
80
+ if (Object.getOwnPropertySymbols) {
81
+ var o = Object.getOwnPropertySymbols(e);
82
+ for (n = 0; n < o.length; n++) {
83
+ t = o[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (a[t] = e[t]);
84
+ }
85
+ }
86
+ return a;
87
+ }
88
+ function c(e, r) {
89
+ if (null == e) return {};
90
+ var t = {};
91
+ for (var n in e) {
92
+ if ({}.hasOwnProperty.call(e, n)) {
93
+ if (-1 !== r.indexOf(n)) continue;
94
+ t[n] = e[n];
95
+ }
96
+ }
97
+ return t;
98
+ }
99
+ // This file is auto-generated.
100
+ // Do not edit this file manually. Changes will be lost upon regeneration.
101
+ // To modify the icon file template, update 'scripts/templates.ts'.
102
+ var d = new Map;
103
+ d.set("outlined", (function() {
104
+
105
+ return n().createElement(n().Fragment, null, n().createElement("path", {
106
+ d: "M19 6.5C19 6.22386 18.7761 6 18.5 6H15V18H18.5C18.7761 18 19 17.7761 19 17.5V6.5ZM5 17.5C5 17.7761 5.22386 18 5.5 18H13V6H5.5C5.22386 6 5 6.22386 5 6.5V17.5ZM21 17.5C21 18.8807 19.8807 20 18.5 20H5.5C4.11929 20 3 18.8807 3 17.5V6.5C3 5.11929 4.11929 4 5.5 4H18.5C19.8807 4 21 5.11929 21 6.5V17.5Z"
107
+ }));
108
+ }));
109
+ d.set("filled", (function() {
110
+
111
+ return n().createElement(n().Fragment, null, n().createElement("path", {
112
+ d: "M13 20H5.5C4.11929 20 3 18.8807 3 17.5V6.5C3 5.11929 4.11929 4 5.5 4H13V20Z"
113
+ }), n().createElement("path", {
114
+ d: "M18.5 4C19.8807 4 21 5.11929 21 6.5V17.5C21 18.8807 19.8807 20 18.5 20H15V4H18.5Z"
115
+ }));
116
+ }));
117
+ var f = [ "default", "outlined", "filled" ];
118
+ var v = function e(r) {
119
+ return f.indexOf(r) >= 0;
120
+ };
121
+ var s = function e(r) {
122
+ return r === "default" || r && !v(r) ? "outlined" : r;
123
+ };
124
+ /**
125
+ * @description Panels represent sidebar of screen layout
126
+ * @category Layouts
127
+ * @keywords dock, navigation, window, overview
128
+ * @variants outlined,filled
129
+ */ var p = function e(r) {
130
+ var o = r.children, c = r.variant, f = c === void 0 ? "default" : c, p = i(r, [ "children", "variant" ]);
131
+ var m = s(f);
132
+ var g = "windowsidebarright-".concat(m);
133
+ var y = (0, t.useContext)(a.IconContext);
134
+ var b = d.get(m);
135
+ if ((0, u.isDev)() && f && !v(f)) {
136
+ (0, u.log)("warn", "Unknown variant '".concat(f, "', defaulting to ").concat(m));
137
+ }
138
+ if (y && b) {
139
+ var C = y.toRender, O = y.addIcon;
140
+ O(g, b());
141
+ if (!C) {
142
+ return null;
143
+ }
144
+ }
145
+
146
+ return n().createElement(l(), p, o, y ? n().createElement("use", {
147
+ href: "#".concat(g)
148
+ }) : !!b && b());
149
+ };
150
+ /* harmony default export */ const m = p;
151
+ module.exports = r;
152
+ /******/})();
@@ -0,0 +1,11 @@
1
+ const { defineConfig } = require('eslint/config');
2
+ const browserTs = require('../../infra/eslint/browser-ts.js');
3
+
4
+ module.exports = defineConfig(
5
+ browserTs,
6
+ {
7
+ rules: {
8
+ 'react/jsx-no-useless-fragment': 'off',
9
+ },
10
+ },
11
+ );
package/icon-catalog.json CHANGED
@@ -11,6 +11,30 @@
11
11
  "outlined"
12
12
  ]
13
13
  },
14
+ {
15
+ "name": "AlignArrowLeft",
16
+ "key": "./AlignArrowLeft",
17
+ "category": "Formatting",
18
+ "description": "Align object to left, expand/collapse side panel",
19
+ "keywords": "edit, field, cell, textarea, alignment",
20
+ "variants": [
21
+ "default",
22
+ "filled",
23
+ "outlined"
24
+ ]
25
+ },
26
+ {
27
+ "name": "AlignArrowRight",
28
+ "key": "./AlignArrowRight",
29
+ "category": "Formatting",
30
+ "description": "Align object to right, expand/collapse side panel",
31
+ "keywords": "edit, field, cell, textarea, alignment",
32
+ "variants": [
33
+ "default",
34
+ "filled",
35
+ "outlined"
36
+ ]
37
+ },
14
38
  {
15
39
  "name": "AlignBottom",
16
40
  "key": "./AlignBottom",
@@ -528,6 +552,30 @@
528
552
  "outlined"
529
553
  ]
530
554
  },
555
+ {
556
+ "name": "ArrowsFourCorners",
557
+ "key": "./ArrowsFourCorners",
558
+ "category": "Controls",
559
+ "description": "Fullscreen, pan, movable or resizable object for free directions",
560
+ "keywords": "move, 4 ways, expand/collapse",
561
+ "variants": [
562
+ "default",
563
+ "filled",
564
+ "outlined"
565
+ ]
566
+ },
567
+ {
568
+ "name": "ArrowsFourCornersInside",
569
+ "key": "./ArrowsFourCornersInside",
570
+ "category": "Controls",
571
+ "description": "Exit fullscreen, shrink, resizable object",
572
+ "keywords": "move, 4 ways, expand/collapse",
573
+ "variants": [
574
+ "default",
575
+ "filled",
576
+ "outlined"
577
+ ]
578
+ },
531
579
  {
532
580
  "name": "ArrowsFourRightLeftUpDown",
533
581
  "key": "./ArrowsFourRightLeftUpDown",
@@ -3652,6 +3700,17 @@
3652
3700
  "outlined"
3653
3701
  ]
3654
3702
  },
3703
+ {
3704
+ "name": "EyeClosed",
3705
+ "key": "./EyeClosed",
3706
+ "category": "Actions",
3707
+ "description": "Hidden objects, visualizations, layers as status. Not recommend to use as action",
3708
+ "keywords": "show/hide, view, visibility",
3709
+ "variants": [
3710
+ "default",
3711
+ "outlined"
3712
+ ]
3713
+ },
3655
3714
  {
3656
3715
  "name": "EyeSlashed",
3657
3716
  "key": "./EyeSlashed",
@@ -7946,6 +8005,18 @@
7946
8005
  "outlined"
7947
8006
  ]
7948
8007
  },
8008
+ {
8009
+ "name": "WindowOverlay",
8010
+ "key": "./WindowOverlay",
8011
+ "category": "Actions",
8012
+ "description": "Duplicate window, floating panel, modal dialog",
8013
+ "keywords": "copy, clone, screen, mirroring, popup",
8014
+ "variants": [
8015
+ "default",
8016
+ "filled",
8017
+ "outlined"
8018
+ ]
8019
+ },
7949
8020
  {
7950
8021
  "name": "WindowPortrait",
7951
8022
  "key": "./WindowPortrait",
@@ -7970,6 +8041,18 @@
7970
8041
  "outlined"
7971
8042
  ]
7972
8043
  },
8044
+ {
8045
+ "name": "WindowSidebarRight",
8046
+ "key": "./WindowSidebarRight",
8047
+ "category": "Layouts",
8048
+ "description": "Panels represent sidebar of screen layout",
8049
+ "keywords": "dock, navigation, window, overview",
8050
+ "variants": [
8051
+ "default",
8052
+ "filled",
8053
+ "outlined"
8054
+ ]
8055
+ },
7973
8056
  {
7974
8057
  "name": "WindowUser",
7975
8058
  "key": "./WindowUser",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splunk/react-icons",
3
- "version": "5.11.0",
3
+ "version": "5.12.0",
4
4
  "description": "Library of various React icons",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Splunk Inc.",
@@ -10,9 +10,9 @@
10
10
  "docs:publish": "eval $(splunk-docs-package docs) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH",
11
11
  "docs:publish:external": "eval $(splunk-docs-package docs-external --suffix=public) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH",
12
12
  "docs:start": "webpack serve --config docs.gen.webpack.config.js",
13
- "eslint": "eslint src --ext \".ts,.tsx\"",
13
+ "eslint": "eslint \"src/**/*.{ts,tsx}\"",
14
14
  "eslint:fix": "yarn run eslint --fix",
15
- "eslint:ci": "yarn run eslint -f junit -o test-reports/lint-results.xml",
15
+ "eslint:ci": "yarn run eslint -f @gitlab-formatters/gitlab -o test-reports/lint-results.json",
16
16
  "fetch-figma": "node ./scripts/fetch-figma.js",
17
17
  "lint": "yarn run stylelint && yarn run eslint",
18
18
  "lint:ci": "yarn run eslint:ci && yarn run stylelint",
@@ -42,7 +42,7 @@
42
42
  "@babel/core": "^7.28.0",
43
43
  "@babel/plugin-transform-runtime": "^7.28.0",
44
44
  "@splunk/babel-preset": "^4.0.0",
45
- "@splunk/eslint-config": "^5.1.0",
45
+ "@splunk/eslint-config": "^6.0.0",
46
46
  "@splunk/stylelint-config": "^5.0.0",
47
47
  "@splunk/webpack-configs": "^7.0.3",
48
48
  "@storybook/csf-tools": "^7.6.20",
@@ -64,13 +64,8 @@
64
64
  "babel-plugin-transform-imports": "^2.0.0",
65
65
  "babel-plugin-transform-require-context": "^0.1.1",
66
66
  "cross-env": "^6.0.3",
67
- "eslint": "^8.57.1",
68
- "eslint-config-prettier": "^9.1.0",
67
+ "eslint": "^9.39.4",
69
68
  "eslint-import-resolver-webpack": "^0.13.4",
70
- "eslint-plugin-import": "^2.30.1",
71
- "eslint-plugin-jsx-a11y": "^6.10.0",
72
- "eslint-plugin-react": "^7.36.1",
73
- "eslint-plugin-react-hooks": "^4.6.2",
74
69
  "figma-js": "1.16.1-0",
75
70
  "jest": "^30.1.3",
76
71
  "jest-environment-jsdom": "^30.1.2",
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import SVG from '@splunk/react-icons/SVG';
3
+ export interface IconBaseProps extends React.ComponentProps<typeof SVG> {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * Defaults to outlined, determines the variant of the icon to be rendered
7
+ */
8
+ variant?: 'default' | 'outlined' | 'filled';
9
+ }
10
+ /**
11
+ * @description Align object to left, expand/collapse side panel
12
+ * @category Formatting
13
+ * @keywords edit, field, cell, textarea, alignment
14
+ * @variants outlined,filled
15
+ */
16
+ declare const AlignArrowLeft: ({ children, variant, ...otherprops }: IconBaseProps) => React.JSX.Element | null;
17
+ export default AlignArrowLeft;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import SVG from '@splunk/react-icons/SVG';
3
+ export interface IconBaseProps extends React.ComponentProps<typeof SVG> {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * Defaults to outlined, determines the variant of the icon to be rendered
7
+ */
8
+ variant?: 'default' | 'outlined' | 'filled';
9
+ }
10
+ /**
11
+ * @description Align object to right, expand/collapse side panel
12
+ * @category Formatting
13
+ * @keywords edit, field, cell, textarea, alignment
14
+ * @variants outlined,filled
15
+ */
16
+ declare const AlignArrowRight: ({ children, variant, ...otherprops }: IconBaseProps) => React.JSX.Element | null;
17
+ export default AlignArrowRight;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import SVG from '@splunk/react-icons/SVG';
3
+ export interface IconBaseProps extends React.ComponentProps<typeof SVG> {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * Defaults to outlined, determines the variant of the icon to be rendered
7
+ */
8
+ variant?: 'default' | 'outlined' | 'filled';
9
+ }
10
+ /**
11
+ * @description Fullscreen, pan, movable or resizable object for free directions
12
+ * @category Controls
13
+ * @keywords move, 4 ways, expand/collapse
14
+ * @variants outlined,filled
15
+ */
16
+ declare const ArrowsFourCorners: ({ children, variant, ...otherprops }: IconBaseProps) => React.JSX.Element | null;
17
+ export default ArrowsFourCorners;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import SVG from '@splunk/react-icons/SVG';
3
+ export interface IconBaseProps extends React.ComponentProps<typeof SVG> {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * Defaults to outlined, determines the variant of the icon to be rendered
7
+ */
8
+ variant?: 'default' | 'outlined' | 'filled';
9
+ }
10
+ /**
11
+ * @description Exit fullscreen, shrink, resizable object
12
+ * @category Controls
13
+ * @keywords move, 4 ways, expand/collapse
14
+ * @variants outlined,filled
15
+ */
16
+ declare const ArrowsFourCornersInside: ({ children, variant, ...otherprops }: IconBaseProps) => React.JSX.Element | null;
17
+ export default ArrowsFourCornersInside;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import SVG from '@splunk/react-icons/SVG';
3
+ export interface IconBaseProps extends React.ComponentProps<typeof SVG> {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * Defaults to outlined, determines the variant of the icon to be rendered
7
+ */
8
+ variant?: 'default' | 'outlined';
9
+ }
10
+ /**
11
+ * @description Hidden objects, visualizations, layers as status. Not recommend to use as action
12
+ * @category Actions
13
+ * @keywords show/hide, view, visibility
14
+ * @variants outlined
15
+ */
16
+ declare const EyeClosed: ({ children, variant, ...otherprops }: IconBaseProps) => React.JSX.Element | null;
17
+ export default EyeClosed;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import SVG from '@splunk/react-icons/SVG';
3
+ export interface IconBaseProps extends React.ComponentProps<typeof SVG> {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * Defaults to outlined, determines the variant of the icon to be rendered
7
+ */
8
+ variant?: 'default' | 'outlined' | 'filled';
9
+ }
10
+ /**
11
+ * @description Duplicate window, floating panel, modal dialog
12
+ * @category Actions
13
+ * @keywords copy, clone, screen, mirroring, popup
14
+ * @variants outlined,filled
15
+ */
16
+ declare const WindowOverlay: ({ children, variant, ...otherprops }: IconBaseProps) => React.JSX.Element | null;
17
+ export default WindowOverlay;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import SVG from '@splunk/react-icons/SVG';
3
+ export interface IconBaseProps extends React.ComponentProps<typeof SVG> {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * Defaults to outlined, determines the variant of the icon to be rendered
7
+ */
8
+ variant?: 'default' | 'outlined' | 'filled';
9
+ }
10
+ /**
11
+ * @description Panels represent sidebar of screen layout
12
+ * @category Layouts
13
+ * @keywords dock, navigation, window, overview
14
+ * @variants outlined,filled
15
+ */
16
+ declare const WindowSidebarRight: ({ children, variant, ...otherprops }: IconBaseProps) => React.JSX.Element | null;
17
+ export default WindowSidebarRight;