@rufous/ui 0.1.9 → 0.1.10

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,10 @@
1
+ // lib/icons/downloadIcon.tsx
2
+ import React from "react";
3
+ var DownloadIcon = ({ color = "#3a3a3a", ...props }) => {
4
+ return /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "46", height: "46", viewBox: "0 0 46 46", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_11729", "data-name": "Group 11729", transform: "translate(-1841 -174)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_46535", "data-name": "Path 46535", d: "M0,0H46V46H0Z", transform: "translate(1841 174)", fill: "#fff" }), /* @__PURE__ */ React.createElement("g", { id: "Icon_feather-download", "data-name": "Icon feather-download", transform: "translate(1846.5 179.5)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_46535-2", "data-name": "Path 46535", d: "M31.5,22.5v6a3,3,0,0,1-3,3H7.5a3,3,0,0,1-3-3v-6", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }), /* @__PURE__ */ React.createElement("path", { id: "Path_46536", "data-name": "Path 46536", d: "M10.5,15,18,22.5,25.5,15", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }), /* @__PURE__ */ React.createElement("path", { id: "Path_46537", "data-name": "Path 46537", d: "M18,22.5V4.5", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }))));
5
+ };
6
+ var downloadIcon_default = DownloadIcon;
7
+
8
+ export {
9
+ downloadIcon_default
10
+ };
@@ -0,0 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // lib/icons/downloadIcon.tsx
30
+ var downloadIcon_exports = {};
31
+ __export(downloadIcon_exports, {
32
+ default: () => downloadIcon_default
33
+ });
34
+ module.exports = __toCommonJS(downloadIcon_exports);
35
+ var import_react = __toESM(require("react"), 1);
36
+ var DownloadIcon = ({ color = "#3a3a3a", ...props }) => {
37
+ return /* @__PURE__ */ import_react.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "46", height: "46", viewBox: "0 0 46 46", ...props }, /* @__PURE__ */ import_react.default.createElement("g", { id: "Group_11729", "data-name": "Group 11729", transform: "translate(-1841 -174)" }, /* @__PURE__ */ import_react.default.createElement("path", { id: "Path_46535", "data-name": "Path 46535", d: "M0,0H46V46H0Z", transform: "translate(1841 174)", fill: "#fff" }), /* @__PURE__ */ import_react.default.createElement("g", { id: "Icon_feather-download", "data-name": "Icon feather-download", transform: "translate(1846.5 179.5)" }, /* @__PURE__ */ import_react.default.createElement("path", { id: "Path_46535-2", "data-name": "Path 46535", d: "M31.5,22.5v6a3,3,0,0,1-3,3H7.5a3,3,0,0,1-3-3v-6", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }), /* @__PURE__ */ import_react.default.createElement("path", { id: "Path_46536", "data-name": "Path 46536", d: "M10.5,15,18,22.5,25.5,15", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }), /* @__PURE__ */ import_react.default.createElement("path", { id: "Path_46537", "data-name": "Path 46537", d: "M18,22.5V4.5", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }))));
38
+ };
39
+ var downloadIcon_default = DownloadIcon;
@@ -0,0 +1,8 @@
1
+ import React__default from 'react';
2
+
3
+ interface DownloadIconProps extends React__default.SVGProps<SVGSVGElement> {
4
+ color?: string;
5
+ }
6
+ declare const DownloadIcon: React__default.FC<DownloadIconProps>;
7
+
8
+ export { type DownloadIconProps, DownloadIcon as default };
@@ -0,0 +1,8 @@
1
+ import React__default from 'react';
2
+
3
+ interface DownloadIconProps extends React__default.SVGProps<SVGSVGElement> {
4
+ color?: string;
5
+ }
6
+ declare const DownloadIcon: React__default.FC<DownloadIconProps>;
7
+
8
+ export { type DownloadIconProps, DownloadIcon as default };
@@ -0,0 +1,6 @@
1
+ import {
2
+ downloadIcon_default
3
+ } from "../chunk-IOEQAR2M.js";
4
+ export {
5
+ downloadIcon_default as default
6
+ };
@@ -31,6 +31,7 @@ var icons_exports = {};
31
31
  __export(icons_exports, {
32
32
  ArchivedIcon: () => archivedIcon_default,
33
33
  CopyIcon: () => copyIcon_default,
34
+ DownloadIcon: () => downloadIcon_default,
34
35
  EditIcon: () => editIcon_default,
35
36
  HelpOutlinedIcon: () => helpOutlinedIcon_default,
36
37
  HierarchyIcon: () => hierarchyIcon_default,
@@ -650,10 +651,18 @@ var WorkItemIcon = ({ ...props }) => {
650
651
  );
651
652
  };
652
653
  var workItemIcon_default = WorkItemIcon;
654
+
655
+ // lib/icons/downloadIcon.tsx
656
+ var import_react10 = __toESM(require("react"), 1);
657
+ var DownloadIcon = ({ color = "#3a3a3a", ...props }) => {
658
+ return /* @__PURE__ */ import_react10.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "46", height: "46", viewBox: "0 0 46 46", ...props }, /* @__PURE__ */ import_react10.default.createElement("g", { id: "Group_11729", "data-name": "Group 11729", transform: "translate(-1841 -174)" }, /* @__PURE__ */ import_react10.default.createElement("path", { id: "Path_46535", "data-name": "Path 46535", d: "M0,0H46V46H0Z", transform: "translate(1841 174)", fill: "#fff" }), /* @__PURE__ */ import_react10.default.createElement("g", { id: "Icon_feather-download", "data-name": "Icon feather-download", transform: "translate(1846.5 179.5)" }, /* @__PURE__ */ import_react10.default.createElement("path", { id: "Path_46535-2", "data-name": "Path 46535", d: "M31.5,22.5v6a3,3,0,0,1-3,3H7.5a3,3,0,0,1-3-3v-6", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }), /* @__PURE__ */ import_react10.default.createElement("path", { id: "Path_46536", "data-name": "Path 46536", d: "M10.5,15,18,22.5,25.5,15", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }), /* @__PURE__ */ import_react10.default.createElement("path", { id: "Path_46537", "data-name": "Path 46537", d: "M18,22.5V4.5", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }))));
659
+ };
660
+ var downloadIcon_default = DownloadIcon;
653
661
  // Annotate the CommonJS export names for ESM import in node:
654
662
  0 && (module.exports = {
655
663
  ArchivedIcon,
656
664
  CopyIcon,
665
+ DownloadIcon,
657
666
  EditIcon,
658
667
  HelpOutlinedIcon,
659
668
  HierarchyIcon,
@@ -7,4 +7,5 @@ export { default as NineDotMenuIcon } from './nineDotMenuIcon.cjs';
7
7
  export { default as RufousLauncherIcon } from './rufousLauncherBird.cjs';
8
8
  export { default as UnArchivedIcon } from './unArchivedIcon.cjs';
9
9
  export { default as WorkItemIcon } from './workItemIcon.cjs';
10
+ export { default as DownloadIcon } from './downloadIcon.cjs';
10
11
  import 'react';
@@ -7,4 +7,5 @@ export { default as NineDotMenuIcon } from './nineDotMenuIcon.js';
7
7
  export { default as RufousLauncherIcon } from './rufousLauncherBird.js';
8
8
  export { default as UnArchivedIcon } from './unArchivedIcon.js';
9
9
  export { default as WorkItemIcon } from './workItemIcon.js';
10
+ export { default as DownloadIcon } from './downloadIcon.js';
10
11
  import 'react';
@@ -1,4 +1,7 @@
1
- import "../chunk-ZZ37BKUK.js";
1
+ import "../chunk-ZMNDHBTV.js";
2
+ import {
3
+ nineDotMenuIcon_default
4
+ } from "../chunk-D7SFBVJY.js";
2
5
  import {
3
6
  rufousLauncherBird_default
4
7
  } from "../chunk-QZFGQ5JM.js";
@@ -14,6 +17,9 @@ import {
14
17
  import {
15
18
  copyIcon_default
16
19
  } from "../chunk-6FEUS4CQ.js";
20
+ import {
21
+ downloadIcon_default
22
+ } from "../chunk-IOEQAR2M.js";
17
23
  import {
18
24
  editIcon_default
19
25
  } from "../chunk-H372BAXA.js";
@@ -23,12 +29,10 @@ import {
23
29
  import {
24
30
  hierarchyIcon_default
25
31
  } from "../chunk-WZAU77G7.js";
26
- import {
27
- nineDotMenuIcon_default
28
- } from "../chunk-D7SFBVJY.js";
29
32
  export {
30
33
  archivedIcon_default as ArchivedIcon,
31
34
  copyIcon_default as CopyIcon,
35
+ downloadIcon_default as DownloadIcon,
32
36
  editIcon_default as EditIcon,
33
37
  helpOutlinedIcon_default as HelpOutlinedIcon,
34
38
  hierarchyIcon_default as HierarchyIcon,
package/dist/main.cjs CHANGED
@@ -34,6 +34,7 @@ __export(main_exports, {
34
34
  Button: () => Button,
35
35
  Checkbox: () => Checkbox,
36
36
  CopyIcon: () => copyIcon_default,
37
+ DownloadIcon: () => downloadIcon_default,
37
38
  EditIcon: () => editIcon_default,
38
39
  FloatingInput: () => FloatingInput,
39
40
  HelpOutlinedIcon: () => helpOutlinedIcon_default,
@@ -798,13 +799,20 @@ var WorkItemIcon = ({ ...props }) => {
798
799
  };
799
800
  var workItemIcon_default = WorkItemIcon;
800
801
 
801
- // lib/Contexts/rufousThemeProvider.tsx
802
+ // lib/icons/downloadIcon.tsx
802
803
  var import_react13 = __toESM(require("react"), 1);
803
- var RufousThemeContext = (0, import_react13.createContext)(null);
804
+ var DownloadIcon = ({ color = "#3a3a3a", ...props }) => {
805
+ return /* @__PURE__ */ import_react13.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "46", height: "46", viewBox: "0 0 46 46", ...props }, /* @__PURE__ */ import_react13.default.createElement("g", { id: "Group_11729", "data-name": "Group 11729", transform: "translate(-1841 -174)" }, /* @__PURE__ */ import_react13.default.createElement("path", { id: "Path_46535", "data-name": "Path 46535", d: "M0,0H46V46H0Z", transform: "translate(1841 174)", fill: "#fff" }), /* @__PURE__ */ import_react13.default.createElement("g", { id: "Icon_feather-download", "data-name": "Icon feather-download", transform: "translate(1846.5 179.5)" }, /* @__PURE__ */ import_react13.default.createElement("path", { id: "Path_46535-2", "data-name": "Path 46535", d: "M31.5,22.5v6a3,3,0,0,1-3,3H7.5a3,3,0,0,1-3-3v-6", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }), /* @__PURE__ */ import_react13.default.createElement("path", { id: "Path_46536", "data-name": "Path 46536", d: "M10.5,15,18,22.5,25.5,15", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }), /* @__PURE__ */ import_react13.default.createElement("path", { id: "Path_46537", "data-name": "Path 46537", d: "M18,22.5V4.5", fill: "none", stroke: color, "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "3" }))));
806
+ };
807
+ var downloadIcon_default = DownloadIcon;
808
+
809
+ // lib/Contexts/rufousThemeProvider.tsx
810
+ var import_react14 = __toESM(require("react"), 1);
811
+ var RufousThemeContext = (0, import_react14.createContext)(null);
804
812
  var RufousThemeProvider = ({ children }) => {
805
- const [committedThemeKey, setCommittedThemeKey] = (0, import_react13.useState)("default");
806
- const [previewThemeKey, setPreviewThemeKey] = (0, import_react13.useState)("default");
807
- const [settings, setSettings] = (0, import_react13.useState)(null);
813
+ const [committedThemeKey, setCommittedThemeKey] = (0, import_react14.useState)("default");
814
+ const [previewThemeKey, setPreviewThemeKey] = (0, import_react14.useState)("default");
815
+ const [settings, setSettings] = (0, import_react14.useState)(null);
808
816
  const getGeneralSettings = async () => {
809
817
  try {
810
818
  const theme = localStorage.getItem("theme") || "default";
@@ -814,10 +822,10 @@ var RufousThemeProvider = ({ children }) => {
814
822
  console.error("Error fetching general settings:", err);
815
823
  }
816
824
  };
817
- (0, import_react13.useEffect)(() => {
825
+ (0, import_react14.useEffect)(() => {
818
826
  getGeneralSettings();
819
827
  }, []);
820
- const fullTheme = (0, import_react13.useMemo)(() => {
828
+ const fullTheme = (0, import_react14.useMemo)(() => {
821
829
  return {
822
830
  themeKey: previewThemeKey || settings.theme,
823
831
  customStyles: APP_THEMES[previewThemeKey || settings.theme]
@@ -830,7 +838,7 @@ var RufousThemeProvider = ({ children }) => {
830
838
  setCommittedThemeKey(key);
831
839
  };
832
840
  const cancelTheme = () => setPreviewThemeKey(committedThemeKey);
833
- return /* @__PURE__ */ import_react13.default.createElement(
841
+ return /* @__PURE__ */ import_react14.default.createElement(
834
842
  RufousThemeContext.Provider,
835
843
  {
836
844
  value: {
@@ -844,7 +852,7 @@ var RufousThemeProvider = ({ children }) => {
844
852
  updateSettings: (v) => setSettings(v)
845
853
  }
846
854
  },
847
- /* @__PURE__ */ import_react13.default.createElement(
855
+ /* @__PURE__ */ import_react14.default.createElement(
848
856
  "div",
849
857
  {
850
858
  className: `theme-${previewThemeKey || committedThemeKey || "default"}`
@@ -853,7 +861,7 @@ var RufousThemeProvider = ({ children }) => {
853
861
  )
854
862
  );
855
863
  };
856
- var useRufousTheme = () => (0, import_react13.useContext)(RufousThemeContext);
864
+ var useRufousTheme = () => (0, import_react14.useContext)(RufousThemeContext);
857
865
  // Annotate the CommonJS export names for ESM import in node:
858
866
  0 && (module.exports = {
859
867
  APP_THEMES,
@@ -861,6 +869,7 @@ var useRufousTheme = () => (0, import_react13.useContext)(RufousThemeContext);
861
869
  Button,
862
870
  Checkbox,
863
871
  CopyIcon,
872
+ DownloadIcon,
864
873
  EditIcon,
865
874
  FloatingInput,
866
875
  HelpOutlinedIcon,
package/dist/main.d.cts CHANGED
@@ -11,5 +11,6 @@ export { default as NineDotMenuIcon } from './icons/nineDotMenuIcon.cjs';
11
11
  export { default as RufousLauncherIcon } from './icons/rufousLauncherBird.cjs';
12
12
  export { default as UnArchivedIcon } from './icons/unArchivedIcon.cjs';
13
13
  export { default as WorkItemIcon } from './icons/workItemIcon.cjs';
14
+ export { default as DownloadIcon } from './icons/downloadIcon.cjs';
14
15
  export { RufousThemeProvider, useRufousTheme } from './Contexts/rufousThemeProvider.cjs';
15
16
  import 'react';
package/dist/main.d.ts CHANGED
@@ -11,5 +11,6 @@ export { default as NineDotMenuIcon } from './icons/nineDotMenuIcon.js';
11
11
  export { default as RufousLauncherIcon } from './icons/rufousLauncherBird.js';
12
12
  export { default as UnArchivedIcon } from './icons/unArchivedIcon.js';
13
13
  export { default as WorkItemIcon } from './icons/workItemIcon.js';
14
+ export { default as DownloadIcon } from './icons/downloadIcon.js';
14
15
  export { RufousThemeProvider, useRufousTheme } from './Contexts/rufousThemeProvider.js';
15
16
  import 'react';
package/dist/main.js CHANGED
@@ -1,7 +1,10 @@
1
1
  import {
2
- Checkbox
3
- } from "./chunk-QKDJLUKZ.js";
4
- import "./chunk-ZZ37BKUK.js";
2
+ FloatingInput
3
+ } from "./chunk-AWA5Y5LH.js";
4
+ import "./chunk-ZMNDHBTV.js";
5
+ import {
6
+ nineDotMenuIcon_default
7
+ } from "./chunk-D7SFBVJY.js";
5
8
  import {
6
9
  rufousLauncherBird_default
7
10
  } from "./chunk-QZFGQ5JM.js";
@@ -17,6 +20,9 @@ import {
17
20
  import {
18
21
  copyIcon_default
19
22
  } from "./chunk-6FEUS4CQ.js";
23
+ import {
24
+ downloadIcon_default
25
+ } from "./chunk-IOEQAR2M.js";
20
26
  import {
21
27
  editIcon_default
22
28
  } from "./chunk-H372BAXA.js";
@@ -26,12 +32,12 @@ import {
26
32
  import {
27
33
  hierarchyIcon_default
28
34
  } from "./chunk-WZAU77G7.js";
29
- import {
30
- nineDotMenuIcon_default
31
- } from "./chunk-D7SFBVJY.js";
32
35
  import {
33
36
  Button
34
37
  } from "./chunk-ASP3DBRX.js";
38
+ import {
39
+ Checkbox
40
+ } from "./chunk-QKDJLUKZ.js";
35
41
  import {
36
42
  RufousThemeProvider,
37
43
  useRufousTheme
@@ -39,15 +45,13 @@ import {
39
45
  import {
40
46
  APP_THEMES
41
47
  } from "./chunk-2FHTGYR4.js";
42
- import {
43
- FloatingInput
44
- } from "./chunk-AWA5Y5LH.js";
45
48
  export {
46
49
  APP_THEMES,
47
50
  archivedIcon_default as ArchivedIcon,
48
51
  Button,
49
52
  Checkbox,
50
53
  copyIcon_default as CopyIcon,
54
+ downloadIcon_default as DownloadIcon,
51
55
  editIcon_default as EditIcon,
52
56
  FloatingInput,
53
57
  helpOutlinedIcon_default as HelpOutlinedIcon,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rufous/ui",
3
3
  "private": false,
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "type": "module",
6
6
  "style": "./dist/style.css",
7
7
  "files": [
File without changes