@salt-ds/icons 0.0.0-snapshot-20230516135848 → 0.0.0-snapshot-20230623164123

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.
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var react = require('react');
7
+ var Icon = require('../icon/Icon.js');
8
+
9
+ const CollapseAllIcon = react.forwardRef(
10
+ function CollapseAllIcon2(props, ref) {
11
+ return /* @__PURE__ */ jsxRuntime.jsx(Icon.Icon, {
12
+ "data-testid": "CollapseAllIcon",
13
+ "aria-label": "collapse all",
14
+ viewBox: "0 0 12 12",
15
+ ref,
16
+ ...props,
17
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", {
18
+ d: "m6 6.5-4 4 1 1 3-3 3 3 1-1-4-4Zm0-1-4-4 1-1 3 3 3-3 1 1-4 4Z"
19
+ })
20
+ });
21
+ }
22
+ );
23
+
24
+ exports.CollapseAllIcon = CollapseAllIcon;
25
+ //# sourceMappingURL=CollapseAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapseAll.js","sources":["../src/components/CollapseAll.tsx"],"sourcesContent":["// WARNING: This file was generated by a script. Do not modify it manually\nimport { forwardRef } from \"react\";\n\nimport { Icon, IconProps } from \"../icon\";\n\nexport type CollapseAllIconProps = IconProps;\n\nexport const CollapseAllIcon = forwardRef<SVGSVGElement, CollapseAllIconProps>(\n function CollapseAllIcon(props: CollapseAllIconProps, ref) {\n return (\n <Icon\n data-testid=\"CollapseAllIcon\"\n aria-label=\"collapse all\"\n viewBox=\"0 0 12 12\"\n ref={ref}\n {...props}\n >\n <path d=\"m6 6.5-4 4 1 1 3-3 3 3 1-1-4-4Zm0-1-4-4 1-1 3 3 3-3 1 1-4 4Z\" />\n </Icon>\n );\n }\n);\n"],"names":["forwardRef","CollapseAllIcon","jsx","Icon"],"mappings":";;;;;;;;AAOO,MAAM,eAAkB,GAAAA,gBAAA;AAAA,EAC7B,SAASC,gBAAgB,CAAA,KAAA,EAA6B,GAAK,EAAA;AACzD,IAAA,uBACGC,cAAA,CAAAC,SAAA,EAAA;AAAA,MACC,aAAY,EAAA,iBAAA;AAAA,MACZ,YAAW,EAAA,cAAA;AAAA,MACX,OAAQ,EAAA,WAAA;AAAA,MACR,GAAA;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAC,kBAAAD,cAAA,CAAA,MAAA,EAAA;AAAA,QAAK,CAAE,EAAA,8DAAA;AAAA,OAA+D,CAAA;AAAA,KACzE,CAAA,CAAA;AAAA,GAEJ;AACF;;;;"}
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var react = require('react');
7
+ var Icon = require('../icon/Icon.js');
8
+
9
+ const ExpandAllIcon = react.forwardRef(
10
+ function ExpandAllIcon2(props, ref) {
11
+ return /* @__PURE__ */ jsxRuntime.jsx(Icon.Icon, {
12
+ "data-testid": "ExpandAllIcon",
13
+ "aria-label": "expand all",
14
+ viewBox: "0 0 12 12",
15
+ ref,
16
+ ...props,
17
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", {
18
+ d: "M6 0 2 4l1 1 3-3 3 3 1-1-4-4Zm0 12L2 8l1-1 3 3 3-3 1 1-4 4Z"
19
+ })
20
+ });
21
+ }
22
+ );
23
+
24
+ exports.ExpandAllIcon = ExpandAllIcon;
25
+ //# sourceMappingURL=ExpandAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandAll.js","sources":["../src/components/ExpandAll.tsx"],"sourcesContent":["// WARNING: This file was generated by a script. Do not modify it manually\nimport { forwardRef } from \"react\";\n\nimport { Icon, IconProps } from \"../icon\";\n\nexport type ExpandAllIconProps = IconProps;\n\nexport const ExpandAllIcon = forwardRef<SVGSVGElement, ExpandAllIconProps>(\n function ExpandAllIcon(props: ExpandAllIconProps, ref) {\n return (\n <Icon\n data-testid=\"ExpandAllIcon\"\n aria-label=\"expand all\"\n viewBox=\"0 0 12 12\"\n ref={ref}\n {...props}\n >\n <path d=\"M6 0 2 4l1 1 3-3 3 3 1-1-4-4Zm0 12L2 8l1-1 3 3 3-3 1 1-4 4Z\" />\n </Icon>\n );\n }\n);\n"],"names":["forwardRef","ExpandAllIcon","jsx","Icon"],"mappings":";;;;;;;;AAOO,MAAM,aAAgB,GAAAA,gBAAA;AAAA,EAC3B,SAASC,cAAc,CAAA,KAAA,EAA2B,GAAK,EAAA;AACrD,IAAA,uBACGC,cAAA,CAAAC,SAAA,EAAA;AAAA,MACC,aAAY,EAAA,eAAA;AAAA,MACZ,YAAW,EAAA,YAAA;AAAA,MACX,OAAQ,EAAA,WAAA;AAAA,MACR,GAAA;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAC,kBAAAD,cAAA,CAAA,MAAA,EAAA;AAAA,QAAK,CAAE,EAAA,6DAAA;AAAA,OAA8D,CAAA;AAAA,KACxE,CAAA,CAAA;AAAA,GAEJ;AACF;;;;"}
@@ -13,9 +13,9 @@ const makePrefixer = (prefix) => (...names) => [prefix, ...names].join("-");
13
13
  const withBaseName = makePrefixer("saltIcon");
14
14
  const DEFAULT_ICON_SIZE = 1;
15
15
  const Icon = react.forwardRef(function Icon2({ children, className, size = DEFAULT_ICON_SIZE, style: styleProp, ...rest }, ref) {
16
- const { window: targetWindow } = window.useWindow();
16
+ const targetWindow = window.useWindow();
17
17
  styles.useComponentCssInjection({
18
- id: "salt-icon",
18
+ testId: "salt-icon",
19
19
  css: Icon$1,
20
20
  window: targetWindow
21
21
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sources":["../src/icon/Icon.tsx"],"sourcesContent":["import { forwardRef, SVGAttributes } from \"react\";\nimport { clsx } from \"clsx\";\n\nimport { useWindow } from \"@salt-ds/window\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\n\nimport iconCss from \"./Icon.css\";\n// Duplicate from core/util to avoid circular dependency\nexport const makePrefixer =\n (prefix: string): ((...names: string[]) => string) =>\n (...names: string[]): string =>\n [prefix, ...names].join(\"-\");\n\nconst withBaseName = makePrefixer(\"saltIcon\");\n\nexport interface IconProps extends SVGAttributes<SVGSVGElement> {\n /**\n * Multiplier for the base icon size. Should be a positive integer to conform to the rest of the design system.\n */\n size?: number;\n}\n\nexport const DEFAULT_ICON_SIZE = 1;\n\nexport const Icon = forwardRef<SVGSVGElement, IconProps>(function Icon(\n { children, className, size = DEFAULT_ICON_SIZE, style: styleProp, ...rest },\n ref\n) {\n const { window: targetWindow } = useWindow();\n useComponentCssInjection({\n id: \"salt-icon\",\n css: iconCss,\n window: targetWindow,\n });\n\n const style = {\n ...styleProp,\n \"--saltIcon-size-multiplier\": `${size}`,\n };\n\n return (\n <svg\n className={clsx(withBaseName(), className)}\n style={style}\n role=\"img\"\n {...rest}\n ref={ref}\n >\n <g aria-hidden>{children}</g>\n </svg>\n );\n});\n"],"names":["forwardRef","Icon","useWindow","useComponentCssInjection","iconCss","jsx","clsx"],"mappings":";;;;;;;;;;;AAQa,MAAA,YAAA,GACX,CAAC,MAAA,KACD,CAAI,GAAA,KAAA,KACF,CAAC,MAAA,EAAQ,GAAG,KAAK,CAAE,CAAA,IAAA,CAAK,GAAG,EAAA;AAE/B,MAAM,YAAA,GAAe,aAAa,UAAU,CAAA,CAAA;AASrC,MAAM,iBAAoB,GAAA,EAAA;AAE1B,MAAM,IAAO,GAAAA,gBAAA,CAAqC,SAASC,KAAAA,CAChE,EAAE,QAAA,EAAU,SAAW,EAAA,IAAA,GAAO,iBAAmB,EAAA,KAAA,EAAO,SAAc,EAAA,GAAA,IAAA,IACtE,GACA,EAAA;AACA,EAAA,MAAM,EAAE,MAAA,EAAQ,YAAa,EAAA,GAAIC,gBAAU,EAAA,CAAA;AAC3C,EAAyBC,+BAAA,CAAA;AAAA,IACvB,EAAI,EAAA,WAAA;AAAA,IACJ,GAAK,EAAAC,MAAA;AAAA,IACL,MAAQ,EAAA,YAAA;AAAA,GACT,CAAA,CAAA;AAED,EAAA,MAAM,KAAQ,GAAA;AAAA,IACZ,GAAG,SAAA;AAAA,IACH,8BAA8B,CAAG,EAAA,IAAA,CAAA,CAAA;AAAA,GACnC,CAAA;AAEA,EAAA,uBACGC,cAAA,CAAA,KAAA,EAAA;AAAA,IACC,SAAW,EAAAC,SAAA,CAAK,YAAa,EAAA,EAAG,SAAS,CAAA;AAAA,IACzC,KAAA;AAAA,IACA,IAAK,EAAA,KAAA;AAAA,IACJ,GAAG,IAAA;AAAA,IACJ,GAAA;AAAA,IAEA,QAAC,kBAAAD,cAAA,CAAA,GAAA,EAAA;AAAA,MAAE,aAAW,EAAA,IAAA;AAAA,MAAE,QAAA;AAAA,KAAS,CAAA;AAAA,GAC3B,CAAA,CAAA;AAEJ,CAAC;;;;;;"}
1
+ {"version":3,"file":"Icon.js","sources":["../src/icon/Icon.tsx"],"sourcesContent":["import { forwardRef, SVGAttributes } from \"react\";\nimport { clsx } from \"clsx\";\n\nimport { useWindow } from \"@salt-ds/window\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\n\nimport iconCss from \"./Icon.css\";\n// Duplicate from core/util to avoid circular dependency\nexport const makePrefixer =\n (prefix: string): ((...names: string[]) => string) =>\n (...names: string[]): string =>\n [prefix, ...names].join(\"-\");\n\nconst withBaseName = makePrefixer(\"saltIcon\");\n\nexport interface IconProps extends SVGAttributes<SVGSVGElement> {\n /**\n * Multiplier for the base icon size. Should be a positive integer to conform to the rest of the design system.\n */\n size?: number;\n}\n\nexport const DEFAULT_ICON_SIZE = 1;\n\nexport const Icon = forwardRef<SVGSVGElement, IconProps>(function Icon(\n { children, className, size = DEFAULT_ICON_SIZE, style: styleProp, ...rest },\n ref\n) {\n const targetWindow = useWindow();\n useComponentCssInjection({\n testId: \"salt-icon\",\n css: iconCss,\n window: targetWindow,\n });\n\n const style = {\n ...styleProp,\n \"--saltIcon-size-multiplier\": `${size}`,\n };\n\n return (\n <svg\n className={clsx(withBaseName(), className)}\n style={style}\n role=\"img\"\n {...rest}\n ref={ref}\n >\n <g aria-hidden>{children}</g>\n </svg>\n );\n});\n"],"names":["forwardRef","Icon","useWindow","useComponentCssInjection","iconCss","jsx","clsx"],"mappings":";;;;;;;;;;;AAQa,MAAA,YAAA,GACX,CAAC,MAAA,KACD,CAAI,GAAA,KAAA,KACF,CAAC,MAAA,EAAQ,GAAG,KAAK,CAAE,CAAA,IAAA,CAAK,GAAG,EAAA;AAE/B,MAAM,YAAA,GAAe,aAAa,UAAU,CAAA,CAAA;AASrC,MAAM,iBAAoB,GAAA,EAAA;AAE1B,MAAM,IAAO,GAAAA,gBAAA,CAAqC,SAASC,KAAAA,CAChE,EAAE,QAAA,EAAU,SAAW,EAAA,IAAA,GAAO,iBAAmB,EAAA,KAAA,EAAO,SAAc,EAAA,GAAA,IAAA,IACtE,GACA,EAAA;AACA,EAAA,MAAM,eAAeC,gBAAU,EAAA,CAAA;AAC/B,EAAyBC,+BAAA,CAAA;AAAA,IACvB,MAAQ,EAAA,WAAA;AAAA,IACR,GAAK,EAAAC,MAAA;AAAA,IACL,MAAQ,EAAA,YAAA;AAAA,GACT,CAAA,CAAA;AAED,EAAA,MAAM,KAAQ,GAAA;AAAA,IACZ,GAAG,SAAA;AAAA,IACH,8BAA8B,CAAG,EAAA,IAAA,CAAA,CAAA;AAAA,GACnC,CAAA;AAEA,EAAA,uBACGC,cAAA,CAAA,KAAA,EAAA;AAAA,IACC,SAAW,EAAAC,SAAA,CAAK,YAAa,EAAA,EAAG,SAAS,CAAA;AAAA,IACzC,KAAA;AAAA,IACA,IAAK,EAAA,KAAA;AAAA,IACJ,GAAG,IAAA;AAAA,IACJ,GAAA;AAAA,IAEA,QAAC,kBAAAD,cAAA,CAAA,GAAA,EAAA;AAAA,MAAE,aAAW,EAAA,IAAA;AAAA,MAAE,QAAA;AAAA,KAAS,CAAA;AAAA,GAC3B,CAAA,CAAA;AAEJ,CAAC;;;;;;"}
package/dist-cjs/index.js CHANGED
@@ -56,6 +56,7 @@ var Cloud = require('./components/Cloud.js');
56
56
  var CloudSolid = require('./components/CloudSolid.js');
57
57
  var Coffee = require('./components/Coffee.js');
58
58
  var CoffeeSolid = require('./components/CoffeeSolid.js');
59
+ var CollapseAll = require('./components/CollapseAll.js');
59
60
  var ColumnChooser = require('./components/ColumnChooser.js');
60
61
  var ColumnChooserSolid = require('./components/ColumnChooserSolid.js');
61
62
  var Commentary = require('./components/Commentary.js');
@@ -95,6 +96,7 @@ var Error = require('./components/Error.js');
95
96
  var ErrorExecute = require('./components/ErrorExecute.js');
96
97
  var ErrorSolid = require('./components/ErrorSolid.js');
97
98
  var Expand = require('./components/Expand.js');
99
+ var ExpandAll = require('./components/ExpandAll.js');
98
100
  var Export = require('./components/Export.js');
99
101
  var ExportSolid = require('./components/ExportSolid.js');
100
102
  var Favorite = require('./components/Favorite.js');
@@ -383,6 +385,7 @@ exports.CloudIcon = Cloud.CloudIcon;
383
385
  exports.CloudSolidIcon = CloudSolid.CloudSolidIcon;
384
386
  exports.CoffeeIcon = Coffee.CoffeeIcon;
385
387
  exports.CoffeeSolidIcon = CoffeeSolid.CoffeeSolidIcon;
388
+ exports.CollapseAllIcon = CollapseAll.CollapseAllIcon;
386
389
  exports.ColumnChooserIcon = ColumnChooser.ColumnChooserIcon;
387
390
  exports.ColumnChooserSolidIcon = ColumnChooserSolid.ColumnChooserSolidIcon;
388
391
  exports.CommentaryIcon = Commentary.CommentaryIcon;
@@ -422,6 +425,7 @@ exports.ErrorIcon = Error.ErrorIcon;
422
425
  exports.ErrorExecuteIcon = ErrorExecute.ErrorExecuteIcon;
423
426
  exports.ErrorSolidIcon = ErrorSolid.ErrorSolidIcon;
424
427
  exports.ExpandIcon = Expand.ExpandIcon;
428
+ exports.ExpandAllIcon = ExpandAll.ExpandAllIcon;
425
429
  exports.ExportIcon = Export.ExportIcon;
426
430
  exports.ExportSolidIcon = ExportSolid.ExportSolidIcon;
427
431
  exports.FavoriteIcon = Favorite.FavoriteIcon;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,21 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import { Icon } from '../icon/Icon.js';
4
+
5
+ const CollapseAllIcon = forwardRef(
6
+ function CollapseAllIcon2(props, ref) {
7
+ return /* @__PURE__ */ jsx(Icon, {
8
+ "data-testid": "CollapseAllIcon",
9
+ "aria-label": "collapse all",
10
+ viewBox: "0 0 12 12",
11
+ ref,
12
+ ...props,
13
+ children: /* @__PURE__ */ jsx("path", {
14
+ d: "m6 6.5-4 4 1 1 3-3 3 3 1-1-4-4Zm0-1-4-4 1-1 3 3 3-3 1 1-4 4Z"
15
+ })
16
+ });
17
+ }
18
+ );
19
+
20
+ export { CollapseAllIcon };
21
+ //# sourceMappingURL=CollapseAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapseAll.js","sources":["../src/components/CollapseAll.tsx"],"sourcesContent":["// WARNING: This file was generated by a script. Do not modify it manually\nimport { forwardRef } from \"react\";\n\nimport { Icon, IconProps } from \"../icon\";\n\nexport type CollapseAllIconProps = IconProps;\n\nexport const CollapseAllIcon = forwardRef<SVGSVGElement, CollapseAllIconProps>(\n function CollapseAllIcon(props: CollapseAllIconProps, ref) {\n return (\n <Icon\n data-testid=\"CollapseAllIcon\"\n aria-label=\"collapse all\"\n viewBox=\"0 0 12 12\"\n ref={ref}\n {...props}\n >\n <path d=\"m6 6.5-4 4 1 1 3-3 3 3 1-1-4-4Zm0-1-4-4 1-1 3 3 3-3 1 1-4 4Z\" />\n </Icon>\n );\n }\n);\n"],"names":["CollapseAllIcon"],"mappings":";;;;AAOO,MAAM,eAAkB,GAAA,UAAA;AAAA,EAC7B,SAASA,gBAAgB,CAAA,KAAA,EAA6B,GAAK,EAAA;AACzD,IAAA,uBACG,GAAA,CAAA,IAAA,EAAA;AAAA,MACC,aAAY,EAAA,iBAAA;AAAA,MACZ,YAAW,EAAA,cAAA;AAAA,MACX,OAAQ,EAAA,WAAA;AAAA,MACR,GAAA;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAC,kBAAA,GAAA,CAAA,MAAA,EAAA;AAAA,QAAK,CAAE,EAAA,8DAAA;AAAA,OAA+D,CAAA;AAAA,KACzE,CAAA,CAAA;AAAA,GAEJ;AACF;;;;"}
@@ -0,0 +1,21 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import { Icon } from '../icon/Icon.js';
4
+
5
+ const ExpandAllIcon = forwardRef(
6
+ function ExpandAllIcon2(props, ref) {
7
+ return /* @__PURE__ */ jsx(Icon, {
8
+ "data-testid": "ExpandAllIcon",
9
+ "aria-label": "expand all",
10
+ viewBox: "0 0 12 12",
11
+ ref,
12
+ ...props,
13
+ children: /* @__PURE__ */ jsx("path", {
14
+ d: "M6 0 2 4l1 1 3-3 3 3 1-1-4-4Zm0 12L2 8l1-1 3 3 3-3 1 1-4 4Z"
15
+ })
16
+ });
17
+ }
18
+ );
19
+
20
+ export { ExpandAllIcon };
21
+ //# sourceMappingURL=ExpandAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandAll.js","sources":["../src/components/ExpandAll.tsx"],"sourcesContent":["// WARNING: This file was generated by a script. Do not modify it manually\nimport { forwardRef } from \"react\";\n\nimport { Icon, IconProps } from \"../icon\";\n\nexport type ExpandAllIconProps = IconProps;\n\nexport const ExpandAllIcon = forwardRef<SVGSVGElement, ExpandAllIconProps>(\n function ExpandAllIcon(props: ExpandAllIconProps, ref) {\n return (\n <Icon\n data-testid=\"ExpandAllIcon\"\n aria-label=\"expand all\"\n viewBox=\"0 0 12 12\"\n ref={ref}\n {...props}\n >\n <path d=\"M6 0 2 4l1 1 3-3 3 3 1-1-4-4Zm0 12L2 8l1-1 3 3 3-3 1 1-4 4Z\" />\n </Icon>\n );\n }\n);\n"],"names":["ExpandAllIcon"],"mappings":";;;;AAOO,MAAM,aAAgB,GAAA,UAAA;AAAA,EAC3B,SAASA,cAAc,CAAA,KAAA,EAA2B,GAAK,EAAA;AACrD,IAAA,uBACG,GAAA,CAAA,IAAA,EAAA;AAAA,MACC,aAAY,EAAA,eAAA;AAAA,MACZ,YAAW,EAAA,YAAA;AAAA,MACX,OAAQ,EAAA,WAAA;AAAA,MACR,GAAA;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAC,kBAAA,GAAA,CAAA,MAAA,EAAA;AAAA,QAAK,CAAE,EAAA,6DAAA;AAAA,OAA8D,CAAA;AAAA,KACxE,CAAA,CAAA;AAAA,GAEJ;AACF;;;;"}
@@ -9,9 +9,9 @@ const makePrefixer = (prefix) => (...names) => [prefix, ...names].join("-");
9
9
  const withBaseName = makePrefixer("saltIcon");
10
10
  const DEFAULT_ICON_SIZE = 1;
11
11
  const Icon = forwardRef(function Icon2({ children, className, size = DEFAULT_ICON_SIZE, style: styleProp, ...rest }, ref) {
12
- const { window: targetWindow } = useWindow();
12
+ const targetWindow = useWindow();
13
13
  useComponentCssInjection({
14
- id: "salt-icon",
14
+ testId: "salt-icon",
15
15
  css: css_248z,
16
16
  window: targetWindow
17
17
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sources":["../src/icon/Icon.tsx"],"sourcesContent":["import { forwardRef, SVGAttributes } from \"react\";\nimport { clsx } from \"clsx\";\n\nimport { useWindow } from \"@salt-ds/window\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\n\nimport iconCss from \"./Icon.css\";\n// Duplicate from core/util to avoid circular dependency\nexport const makePrefixer =\n (prefix: string): ((...names: string[]) => string) =>\n (...names: string[]): string =>\n [prefix, ...names].join(\"-\");\n\nconst withBaseName = makePrefixer(\"saltIcon\");\n\nexport interface IconProps extends SVGAttributes<SVGSVGElement> {\n /**\n * Multiplier for the base icon size. Should be a positive integer to conform to the rest of the design system.\n */\n size?: number;\n}\n\nexport const DEFAULT_ICON_SIZE = 1;\n\nexport const Icon = forwardRef<SVGSVGElement, IconProps>(function Icon(\n { children, className, size = DEFAULT_ICON_SIZE, style: styleProp, ...rest },\n ref\n) {\n const { window: targetWindow } = useWindow();\n useComponentCssInjection({\n id: \"salt-icon\",\n css: iconCss,\n window: targetWindow,\n });\n\n const style = {\n ...styleProp,\n \"--saltIcon-size-multiplier\": `${size}`,\n };\n\n return (\n <svg\n className={clsx(withBaseName(), className)}\n style={style}\n role=\"img\"\n {...rest}\n ref={ref}\n >\n <g aria-hidden>{children}</g>\n </svg>\n );\n});\n"],"names":["Icon","iconCss"],"mappings":";;;;;;;AAQa,MAAA,YAAA,GACX,CAAC,MAAA,KACD,CAAI,GAAA,KAAA,KACF,CAAC,MAAA,EAAQ,GAAG,KAAK,CAAE,CAAA,IAAA,CAAK,GAAG,EAAA;AAE/B,MAAM,YAAA,GAAe,aAAa,UAAU,CAAA,CAAA;AASrC,MAAM,iBAAoB,GAAA,EAAA;AAE1B,MAAM,IAAO,GAAA,UAAA,CAAqC,SAASA,KAAAA,CAChE,EAAE,QAAA,EAAU,SAAW,EAAA,IAAA,GAAO,iBAAmB,EAAA,KAAA,EAAO,SAAc,EAAA,GAAA,IAAA,IACtE,GACA,EAAA;AACA,EAAA,MAAM,EAAE,MAAA,EAAQ,YAAa,EAAA,GAAI,SAAU,EAAA,CAAA;AAC3C,EAAyB,wBAAA,CAAA;AAAA,IACvB,EAAI,EAAA,WAAA;AAAA,IACJ,GAAK,EAAAC,QAAA;AAAA,IACL,MAAQ,EAAA,YAAA;AAAA,GACT,CAAA,CAAA;AAED,EAAA,MAAM,KAAQ,GAAA;AAAA,IACZ,GAAG,SAAA;AAAA,IACH,8BAA8B,CAAG,EAAA,IAAA,CAAA,CAAA;AAAA,GACnC,CAAA;AAEA,EAAA,uBACG,GAAA,CAAA,KAAA,EAAA;AAAA,IACC,SAAW,EAAA,IAAA,CAAK,YAAa,EAAA,EAAG,SAAS,CAAA;AAAA,IACzC,KAAA;AAAA,IACA,IAAK,EAAA,KAAA;AAAA,IACJ,GAAG,IAAA;AAAA,IACJ,GAAA;AAAA,IAEA,QAAC,kBAAA,GAAA,CAAA,GAAA,EAAA;AAAA,MAAE,aAAW,EAAA,IAAA;AAAA,MAAE,QAAA;AAAA,KAAS,CAAA;AAAA,GAC3B,CAAA,CAAA;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"Icon.js","sources":["../src/icon/Icon.tsx"],"sourcesContent":["import { forwardRef, SVGAttributes } from \"react\";\nimport { clsx } from \"clsx\";\n\nimport { useWindow } from \"@salt-ds/window\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\n\nimport iconCss from \"./Icon.css\";\n// Duplicate from core/util to avoid circular dependency\nexport const makePrefixer =\n (prefix: string): ((...names: string[]) => string) =>\n (...names: string[]): string =>\n [prefix, ...names].join(\"-\");\n\nconst withBaseName = makePrefixer(\"saltIcon\");\n\nexport interface IconProps extends SVGAttributes<SVGSVGElement> {\n /**\n * Multiplier for the base icon size. Should be a positive integer to conform to the rest of the design system.\n */\n size?: number;\n}\n\nexport const DEFAULT_ICON_SIZE = 1;\n\nexport const Icon = forwardRef<SVGSVGElement, IconProps>(function Icon(\n { children, className, size = DEFAULT_ICON_SIZE, style: styleProp, ...rest },\n ref\n) {\n const targetWindow = useWindow();\n useComponentCssInjection({\n testId: \"salt-icon\",\n css: iconCss,\n window: targetWindow,\n });\n\n const style = {\n ...styleProp,\n \"--saltIcon-size-multiplier\": `${size}`,\n };\n\n return (\n <svg\n className={clsx(withBaseName(), className)}\n style={style}\n role=\"img\"\n {...rest}\n ref={ref}\n >\n <g aria-hidden>{children}</g>\n </svg>\n );\n});\n"],"names":["Icon","iconCss"],"mappings":";;;;;;;AAQa,MAAA,YAAA,GACX,CAAC,MAAA,KACD,CAAI,GAAA,KAAA,KACF,CAAC,MAAA,EAAQ,GAAG,KAAK,CAAE,CAAA,IAAA,CAAK,GAAG,EAAA;AAE/B,MAAM,YAAA,GAAe,aAAa,UAAU,CAAA,CAAA;AASrC,MAAM,iBAAoB,GAAA,EAAA;AAE1B,MAAM,IAAO,GAAA,UAAA,CAAqC,SAASA,KAAAA,CAChE,EAAE,QAAA,EAAU,SAAW,EAAA,IAAA,GAAO,iBAAmB,EAAA,KAAA,EAAO,SAAc,EAAA,GAAA,IAAA,IACtE,GACA,EAAA;AACA,EAAA,MAAM,eAAe,SAAU,EAAA,CAAA;AAC/B,EAAyB,wBAAA,CAAA;AAAA,IACvB,MAAQ,EAAA,WAAA;AAAA,IACR,GAAK,EAAAC,QAAA;AAAA,IACL,MAAQ,EAAA,YAAA;AAAA,GACT,CAAA,CAAA;AAED,EAAA,MAAM,KAAQ,GAAA;AAAA,IACZ,GAAG,SAAA;AAAA,IACH,8BAA8B,CAAG,EAAA,IAAA,CAAA,CAAA;AAAA,GACnC,CAAA;AAEA,EAAA,uBACG,GAAA,CAAA,KAAA,EAAA;AAAA,IACC,SAAW,EAAA,IAAA,CAAK,YAAa,EAAA,EAAG,SAAS,CAAA;AAAA,IACzC,KAAA;AAAA,IACA,IAAK,EAAA,KAAA;AAAA,IACJ,GAAG,IAAA;AAAA,IACJ,GAAA;AAAA,IAEA,QAAC,kBAAA,GAAA,CAAA,GAAA,EAAA;AAAA,MAAE,aAAW,EAAA,IAAA;AAAA,MAAE,QAAA;AAAA,KAAS,CAAA;AAAA,GAC3B,CAAA,CAAA;AAEJ,CAAC;;;;"}
package/dist-es/index.js CHANGED
@@ -52,6 +52,7 @@ export { CloudIcon } from './components/Cloud.js';
52
52
  export { CloudSolidIcon } from './components/CloudSolid.js';
53
53
  export { CoffeeIcon } from './components/Coffee.js';
54
54
  export { CoffeeSolidIcon } from './components/CoffeeSolid.js';
55
+ export { CollapseAllIcon } from './components/CollapseAll.js';
55
56
  export { ColumnChooserIcon } from './components/ColumnChooser.js';
56
57
  export { ColumnChooserSolidIcon } from './components/ColumnChooserSolid.js';
57
58
  export { CommentaryIcon } from './components/Commentary.js';
@@ -91,6 +92,7 @@ export { ErrorIcon } from './components/Error.js';
91
92
  export { ErrorExecuteIcon } from './components/ErrorExecute.js';
92
93
  export { ErrorSolidIcon } from './components/ErrorSolid.js';
93
94
  export { ExpandIcon } from './components/Expand.js';
95
+ export { ExpandAllIcon } from './components/ExpandAll.js';
94
96
  export { ExportIcon } from './components/Export.js';
95
97
  export { ExportSolidIcon } from './components/ExportSolid.js';
96
98
  export { FavoriteIcon } from './components/Favorite.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from "../icon";
3
+ export declare type CollapseAllIconProps = IconProps;
4
+ export declare const CollapseAllIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from "../icon";
3
+ export declare type ExpandAllIconProps = IconProps;
4
+ export declare const ExpandAllIcon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -51,6 +51,7 @@ export * from "./Cloud";
51
51
  export * from "./CloudSolid";
52
52
  export * from "./Coffee";
53
53
  export * from "./CoffeeSolid";
54
+ export * from "./CollapseAll";
54
55
  export * from "./ColumnChooser";
55
56
  export * from "./ColumnChooserSolid";
56
57
  export * from "./Commentary";
@@ -90,6 +91,7 @@ export * from "./Error";
90
91
  export * from "./ErrorExecute";
91
92
  export * from "./ErrorSolid";
92
93
  export * from "./Expand";
94
+ export * from "./ExpandAll";
93
95
  export * from "./Export";
94
96
  export * from "./ExportSolid";
95
97
  export * from "./Favorite";
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@salt-ds/icons",
3
- "version": "0.0.0-snapshot-20230516135848",
3
+ "version": "0.0.0-snapshot-20230623164123",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist-cjs/index.js",
6
- "sideEffects": [
7
- "**/*.css",
8
- "**/*.css.js"
9
- ],
6
+ "sideEffects": false,
10
7
  "scripts": {
11
8
  "build": "yarn clean && yarn node ./scripts/generateIcons.mjs '*.svg'",
12
9
  "clean": "rimraf ./src/components"
@@ -27,14 +24,15 @@
27
24
  "svgo": "^3.0.0"
28
25
  },
29
26
  "publishConfig": {
30
- "directory": "../../dist/salt-ds-icons"
27
+ "directory": "../../dist/salt-ds-icons",
28
+ "provenance": true
31
29
  },
32
30
  "module": "dist-es/index.js",
33
31
  "typings": "dist-types/index.d.ts",
34
32
  "dependencies": {
35
33
  "clsx": "^1.2.1",
36
- "@salt-ds/window": "0.0.0-snapshot-20230516135848",
37
- "@salt-ds/styles": "0.0.0-snapshot-20230516135848"
34
+ "@salt-ds/window": "^0.0.0-snapshot-20230623164123",
35
+ "@salt-ds/styles": "^0.0.0-snapshot-20230623164123"
38
36
  },
39
37
  "files": [
40
38
  "dist-cjs",