@rufous/ui 0.1.35 → 0.1.37

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.
@@ -31,6 +31,7 @@ var Buttons_exports = {};
31
31
  __export(Buttons_exports, {
32
32
  AddButton: () => addButton_default,
33
33
  CancelButton: () => cancelButton_default,
34
+ StandardButton: () => stdButton_default,
34
35
  SubmitButton: () => submitButton_default
35
36
  });
36
37
  module.exports = __toCommonJS(Buttons_exports);
@@ -67,9 +68,17 @@ var submitButton_default = SubmitButton;
67
68
  var React3 = __toESM(require("react"), 1);
68
69
  var CancelButton = ({ children, ...props }) => /* @__PURE__ */ React3.createElement("button", { className: "btn cancel-btn", ...props }, children);
69
70
  var cancelButton_default = CancelButton;
71
+
72
+ // lib/Buttons/stdButton.tsx
73
+ var React4 = __toESM(require("react"), 1);
74
+ var StandardButton = ({ children, ...props }) => {
75
+ return /* @__PURE__ */ React4.createElement("button", { className: "btn standard-btn", ...props }, children);
76
+ };
77
+ var stdButton_default = StandardButton;
70
78
  // Annotate the CommonJS export names for ESM import in node:
71
79
  0 && (module.exports = {
72
80
  AddButton,
73
81
  CancelButton,
82
+ StandardButton,
74
83
  SubmitButton
75
84
  });
@@ -1,4 +1,5 @@
1
1
  export { default as AddButton } from './addButton.cjs';
2
2
  export { default as SubmitButton } from './submitButton.cjs';
3
3
  export { default as CancelButton } from './cancelButton.cjs';
4
+ export { default as StandardButton } from './stdButton.cjs';
4
5
  import 'react';
@@ -1,4 +1,5 @@
1
1
  export { default as AddButton } from './addButton.js';
2
2
  export { default as SubmitButton } from './submitButton.js';
3
3
  export { default as CancelButton } from './cancelButton.js';
4
+ export { default as StandardButton } from './stdButton.js';
4
5
  import 'react';
@@ -1,15 +1,19 @@
1
- import "../chunk-JSGUIKOH.js";
1
+ import "../chunk-QPGJCRBS.js";
2
2
  import {
3
3
  addButton_default
4
4
  } from "../chunk-U7SARO5B.js";
5
5
  import {
6
6
  cancelButton_default
7
7
  } from "../chunk-BMMDUQDJ.js";
8
+ import {
9
+ stdButton_default
10
+ } from "../chunk-R3GARAVJ.js";
8
11
  import {
9
12
  submitButton_default
10
13
  } from "../chunk-5MMHFGWQ.js";
11
14
  export {
12
15
  addButton_default as AddButton,
13
16
  cancelButton_default as CancelButton,
17
+ stdButton_default as StandardButton,
14
18
  submitButton_default as SubmitButton
15
19
  };
@@ -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/Buttons/stdButton.tsx
30
+ var stdButton_exports = {};
31
+ __export(stdButton_exports, {
32
+ default: () => stdButton_default
33
+ });
34
+ module.exports = __toCommonJS(stdButton_exports);
35
+ var React = __toESM(require("react"), 1);
36
+ var StandardButton = ({ children, ...props }) => {
37
+ return /* @__PURE__ */ React.createElement("button", { className: "btn standard-btn", ...props }, children);
38
+ };
39
+ var stdButton_default = StandardButton;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+
3
+ interface StandardButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ children: React.ReactNode;
5
+ }
6
+ declare const StandardButton: React.FC<StandardButtonProps>;
7
+
8
+ export { type StandardButtonProps, StandardButton as default };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+
3
+ interface StandardButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ children: React.ReactNode;
5
+ }
6
+ declare const StandardButton: React.FC<StandardButtonProps>;
7
+
8
+ export { type StandardButtonProps, StandardButton as default };
@@ -0,0 +1,6 @@
1
+ import {
2
+ stdButton_default
3
+ } from "../chunk-R3GARAVJ.js";
4
+ export {
5
+ stdButton_default as default
6
+ };
@@ -76,6 +76,36 @@
76
76
  background: #a41b06;
77
77
  color: #fff;
78
78
  }
79
+ .standard-btn {
80
+ background: #f6f6f6;
81
+ background-color: #f6f6f6;
82
+ border: 1px solid #d5d5d5;
83
+ color: #535656;
84
+ font-size: 16px;
85
+ font-weight: 300;
86
+ box-shadow: none;
87
+ width: 122px;
88
+ height: 40px;
89
+ text-transform: none;
90
+ font-size: 16px;
91
+ border: 1px solid #d5d5d5;
92
+ height: 40px;
93
+ text-transform: capitalize;
94
+ font-weight: 300;
95
+ color: #535656;
96
+ }
97
+ .standard-btn:hover {
98
+ background: #ffffff;
99
+ background-color: #ffffff;
100
+ box-shadow: none;
101
+ }
102
+ @media (max-width: 767px) {
103
+ .standard-btn {
104
+ width: 90px;
105
+ height: 30px;
106
+ font-size: 13px;
107
+ }
108
+ }
79
109
 
80
110
  /* lib/styles/dialog.css */
81
111
  .dialog-overlay {
@@ -2,9 +2,11 @@ import {
2
2
  BaseDialog_default
3
3
  } from "../chunk-CPLUOEPG.js";
4
4
  import "../chunk-IR7ZKMED.js";
5
+ import "../chunk-DXJ745NZ.js";
5
6
  import "../chunk-BH53P2UM.js";
6
7
  import "../chunk-XPRBPIS5.js";
7
8
  import "../chunk-QJPQC544.js";
9
+ import "../chunk-CSKTBLQQ.js";
8
10
  import "../chunk-ZDVP4SUD.js";
9
11
  import "../chunk-5BB3H3YO.js";
10
12
  import "../chunk-ITZTTNM2.js";
@@ -12,7 +14,7 @@ import "../chunk-WWAHNTUH.js";
12
14
  import "../chunk-6KIFTMUN.js";
13
15
  import "../chunk-ZJAV3FEQ.js";
14
16
  import "../chunk-NMMC4ATV.js";
15
- import "../chunk-DXJ745NZ.js";
17
+ import "../chunk-XCLXQOLP.js";
16
18
  import "../chunk-ZJYLZ6I6.js";
17
19
  import "../chunk-RNA4TTYR.js";
18
20
  import "../chunk-WG3Q6GZN.js";
@@ -20,7 +22,7 @@ import "../chunk-RJ43D3XB.js";
20
22
  import "../chunk-DE73YGRW.js";
21
23
  import "../chunk-DMP72IAP.js";
22
24
  import "../chunk-QZFGQ5JM.js";
23
- import "../chunk-CSKTBLQQ.js";
25
+ import "../chunk-QIEQRNBE.js";
24
26
  import "../chunk-BYJP2WNC.js";
25
27
  import "../chunk-GYLL3HRD.js";
26
28
  import "../chunk-WZTZFC36.js";
@@ -28,14 +30,14 @@ import "../chunk-QA2AYT4A.js";
28
30
  import "../chunk-WHGVO3HV.js";
29
31
  import "../chunk-FOUXNPQA.js";
30
32
  import "../chunk-C7B23GTE.js";
31
- import "../chunk-XCLXQOLP.js";
33
+ import "../chunk-7WNPZ4B7.js";
32
34
  import "../chunk-NSW6ZGZF.js";
33
35
  import "../chunk-KYJ3475B.js";
34
36
  import "../chunk-UTYIBUY2.js";
35
37
  import "../chunk-N4EJKMJK.js";
36
38
  import "../chunk-MKK7M3BH.js";
37
39
  import "../chunk-GESVGIAP.js";
38
- import "../chunk-QIEQRNBE.js";
40
+ import "../chunk-IOEQAR2M.js";
39
41
  import "../chunk-N26C33E6.js";
40
42
  import "../chunk-QONKYAQ5.js";
41
43
  import "../chunk-H372BAXA.js";
@@ -43,7 +45,7 @@ import "../chunk-FSRABKKC.js";
43
45
  import "../chunk-ZAYWFYP4.js";
44
46
  import "../chunk-5UEJAVFK.js";
45
47
  import "../chunk-WZAU77G7.js";
46
- import "../chunk-7WNPZ4B7.js";
48
+ import "../chunk-MNPAE2ZF.js";
47
49
  import "../chunk-WXXJX3FF.js";
48
50
  import "../chunk-6FEUS4CQ.js";
49
51
  import "../chunk-PPNZC5ZQ.js";
@@ -51,15 +53,14 @@ import "../chunk-JI5XMLWT.js";
51
53
  import "../chunk-WXANSSXF.js";
52
54
  import "../chunk-XPJVVKOU.js";
53
55
  import "../chunk-GL43GPEM.js";
54
- import "../chunk-IOEQAR2M.js";
55
56
  import "../chunk-BCGCLMKA.js";
56
57
  import "../chunk-2FHTGYR4.js";
57
58
  import "../chunk-AH6RCYDL.js";
58
59
  import "../chunk-3IBCGGN3.js";
59
- import "../chunk-MNPAE2ZF.js";
60
- import "../chunk-JSGUIKOH.js";
60
+ import "../chunk-QPGJCRBS.js";
61
61
  import "../chunk-U7SARO5B.js";
62
62
  import "../chunk-BMMDUQDJ.js";
63
+ import "../chunk-R3GARAVJ.js";
63
64
  import "../chunk-5MMHFGWQ.js";
64
65
  export {
65
66
  BaseDialog_default as default
@@ -76,6 +76,36 @@
76
76
  background: #a41b06;
77
77
  color: #fff;
78
78
  }
79
+ .standard-btn {
80
+ background: #f6f6f6;
81
+ background-color: #f6f6f6;
82
+ border: 1px solid #d5d5d5;
83
+ color: #535656;
84
+ font-size: 16px;
85
+ font-weight: 300;
86
+ box-shadow: none;
87
+ width: 122px;
88
+ height: 40px;
89
+ text-transform: none;
90
+ font-size: 16px;
91
+ border: 1px solid #d5d5d5;
92
+ height: 40px;
93
+ text-transform: capitalize;
94
+ font-weight: 300;
95
+ color: #535656;
96
+ }
97
+ .standard-btn:hover {
98
+ background: #ffffff;
99
+ background-color: #ffffff;
100
+ box-shadow: none;
101
+ }
102
+ @media (max-width: 767px) {
103
+ .standard-btn {
104
+ width: 90px;
105
+ height: 30px;
106
+ font-size: 13px;
107
+ }
108
+ }
79
109
 
80
110
  /* lib/styles/dialog.css */
81
111
  .dialog-overlay {
@@ -2,9 +2,11 @@ import {
2
2
  BaseDialog_default
3
3
  } from "../chunk-CPLUOEPG.js";
4
4
  import "../chunk-IR7ZKMED.js";
5
+ import "../chunk-DXJ745NZ.js";
5
6
  import "../chunk-BH53P2UM.js";
6
7
  import "../chunk-XPRBPIS5.js";
7
8
  import "../chunk-QJPQC544.js";
9
+ import "../chunk-CSKTBLQQ.js";
8
10
  import "../chunk-ZDVP4SUD.js";
9
11
  import "../chunk-5BB3H3YO.js";
10
12
  import "../chunk-ITZTTNM2.js";
@@ -12,7 +14,7 @@ import "../chunk-WWAHNTUH.js";
12
14
  import "../chunk-6KIFTMUN.js";
13
15
  import "../chunk-ZJAV3FEQ.js";
14
16
  import "../chunk-NMMC4ATV.js";
15
- import "../chunk-DXJ745NZ.js";
17
+ import "../chunk-XCLXQOLP.js";
16
18
  import "../chunk-ZJYLZ6I6.js";
17
19
  import "../chunk-RNA4TTYR.js";
18
20
  import "../chunk-WG3Q6GZN.js";
@@ -20,7 +22,7 @@ import "../chunk-RJ43D3XB.js";
20
22
  import "../chunk-DE73YGRW.js";
21
23
  import "../chunk-DMP72IAP.js";
22
24
  import "../chunk-QZFGQ5JM.js";
23
- import "../chunk-CSKTBLQQ.js";
25
+ import "../chunk-QIEQRNBE.js";
24
26
  import "../chunk-BYJP2WNC.js";
25
27
  import "../chunk-GYLL3HRD.js";
26
28
  import "../chunk-WZTZFC36.js";
@@ -28,14 +30,14 @@ import "../chunk-QA2AYT4A.js";
28
30
  import "../chunk-WHGVO3HV.js";
29
31
  import "../chunk-FOUXNPQA.js";
30
32
  import "../chunk-C7B23GTE.js";
31
- import "../chunk-XCLXQOLP.js";
33
+ import "../chunk-7WNPZ4B7.js";
32
34
  import "../chunk-NSW6ZGZF.js";
33
35
  import "../chunk-KYJ3475B.js";
34
36
  import "../chunk-UTYIBUY2.js";
35
37
  import "../chunk-N4EJKMJK.js";
36
38
  import "../chunk-MKK7M3BH.js";
37
39
  import "../chunk-GESVGIAP.js";
38
- import "../chunk-QIEQRNBE.js";
40
+ import "../chunk-IOEQAR2M.js";
39
41
  import "../chunk-N26C33E6.js";
40
42
  import "../chunk-QONKYAQ5.js";
41
43
  import "../chunk-H372BAXA.js";
@@ -43,7 +45,7 @@ import "../chunk-FSRABKKC.js";
43
45
  import "../chunk-ZAYWFYP4.js";
44
46
  import "../chunk-5UEJAVFK.js";
45
47
  import "../chunk-WZAU77G7.js";
46
- import "../chunk-7WNPZ4B7.js";
48
+ import "../chunk-MNPAE2ZF.js";
47
49
  import "../chunk-WXXJX3FF.js";
48
50
  import "../chunk-6FEUS4CQ.js";
49
51
  import "../chunk-PPNZC5ZQ.js";
@@ -51,15 +53,14 @@ import "../chunk-JI5XMLWT.js";
51
53
  import "../chunk-WXANSSXF.js";
52
54
  import "../chunk-XPJVVKOU.js";
53
55
  import "../chunk-GL43GPEM.js";
54
- import "../chunk-IOEQAR2M.js";
55
56
  import "../chunk-BCGCLMKA.js";
56
57
  import "../chunk-2FHTGYR4.js";
57
58
  import "../chunk-AH6RCYDL.js";
58
59
  import "../chunk-3IBCGGN3.js";
59
- import "../chunk-MNPAE2ZF.js";
60
- import "../chunk-JSGUIKOH.js";
60
+ import "../chunk-QPGJCRBS.js";
61
61
  import "../chunk-U7SARO5B.js";
62
62
  import "../chunk-BMMDUQDJ.js";
63
+ import "../chunk-R3GARAVJ.js";
63
64
  import "../chunk-5MMHFGWQ.js";
64
65
  export {
65
66
  BaseDialog_default as BaseDialog
@@ -0,0 +1,10 @@
1
+ // lib/Buttons/stdButton.tsx
2
+ import * as React from "react";
3
+ var StandardButton = ({ children, ...props }) => {
4
+ return /* @__PURE__ */ React.createElement("button", { className: "btn standard-btn", ...props }, children);
5
+ };
6
+ var stdButton_default = StandardButton;
7
+
8
+ export {
9
+ stdButton_default
10
+ };
@@ -1,4 +1,7 @@
1
1
  import "../chunk-IR7ZKMED.js";
2
+ import {
3
+ uploadIcon_default
4
+ } from "../chunk-DXJ745NZ.js";
2
5
  import {
3
6
  userAssignIcon_default
4
7
  } from "../chunk-BH53P2UM.js";
@@ -8,6 +11,9 @@ import {
8
11
  import {
9
12
  workItemIcon_default
10
13
  } from "../chunk-QJPQC544.js";
14
+ import {
15
+ sidebarIcon_default
16
+ } from "../chunk-CSKTBLQQ.js";
11
17
  import {
12
18
  subscribeIcon_default
13
19
  } from "../chunk-ZDVP4SUD.js";
@@ -30,8 +36,8 @@ import {
30
36
  unsubscribeIcon_default
31
37
  } from "../chunk-NMMC4ATV.js";
32
38
  import {
33
- uploadIcon_default
34
- } from "../chunk-DXJ745NZ.js";
39
+ questionTypeMultipleIcon_default
40
+ } from "../chunk-XCLXQOLP.js";
35
41
  import {
36
42
  questionTypeSingleIcon_default
37
43
  } from "../chunk-ZJYLZ6I6.js";
@@ -54,8 +60,8 @@ import {
54
60
  rufousLauncherBird_default
55
61
  } from "../chunk-QZFGQ5JM.js";
56
62
  import {
57
- sidebarIcon_default
58
- } from "../chunk-CSKTBLQQ.js";
63
+ notificationIcon_default
64
+ } from "../chunk-QIEQRNBE.js";
59
65
  import {
60
66
  projectIcon_default
61
67
  } from "../chunk-BYJP2WNC.js";
@@ -78,8 +84,8 @@ import {
78
84
  questionTypeDescriptiveIcon_default
79
85
  } from "../chunk-C7B23GTE.js";
80
86
  import {
81
- questionTypeMultipleIcon_default
82
- } from "../chunk-XCLXQOLP.js";
87
+ inactiveGroupIcon_default
88
+ } from "../chunk-7WNPZ4B7.js";
83
89
  import {
84
90
  industryIcon_default
85
91
  } from "../chunk-NSW6ZGZF.js";
@@ -99,8 +105,8 @@ import {
99
105
  nineDotMenuIcon_default
100
106
  } from "../chunk-GESVGIAP.js";
101
107
  import {
102
- notificationIcon_default
103
- } from "../chunk-QIEQRNBE.js";
108
+ downloadIcon_default
109
+ } from "../chunk-IOEQAR2M.js";
104
110
  import {
105
111
  downloadPdfIcon_default
106
112
  } from "../chunk-N26C33E6.js";
@@ -123,8 +129,8 @@ import {
123
129
  hierarchyIcon_default
124
130
  } from "../chunk-WZAU77G7.js";
125
131
  import {
126
- inactiveGroupIcon_default
127
- } from "../chunk-7WNPZ4B7.js";
132
+ assignGroupIcon_default
133
+ } from "../chunk-MNPAE2ZF.js";
128
134
  import {
129
135
  closeIcon_default
130
136
  } from "../chunk-WXXJX3FF.js";
@@ -146,18 +152,12 @@ import {
146
152
  import {
147
153
  dollarIcon_default
148
154
  } from "../chunk-GL43GPEM.js";
149
- import {
150
- downloadIcon_default
151
- } from "../chunk-IOEQAR2M.js";
152
155
  import {
153
156
  activateUserIcon_default
154
157
  } from "../chunk-AH6RCYDL.js";
155
158
  import {
156
159
  archivedIcon_default
157
160
  } from "../chunk-3IBCGGN3.js";
158
- import {
159
- assignGroupIcon_default
160
- } from "../chunk-MNPAE2ZF.js";
161
161
  export {
162
162
  activateUserIcon_default as ActivateUserIcon,
163
163
  archivedIcon_default as ArchivedIcon,
package/dist/main.cjs CHANGED
@@ -76,6 +76,7 @@ __export(main_exports, {
76
76
  RufousLauncherIcon: () => rufousLauncherBird_default,
77
77
  RufousThemeProvider: () => RufousThemeProvider,
78
78
  SidebarIcon: () => sidebarIcon_default,
79
+ StandardButton: () => stdButton_default,
79
80
  SubmitButton: () => submitButton_default,
80
81
  SubscribeIcon: () => subscribeIcon_default,
81
82
  SuspendUserIcon: () => suspendUserIcon_default,
@@ -1118,8 +1119,15 @@ var React56 = __toESM(require("react"), 1);
1118
1119
  var CancelButton = ({ children, ...props }) => /* @__PURE__ */ React56.createElement("button", { className: "btn cancel-btn", ...props }, children);
1119
1120
  var cancelButton_default = CancelButton;
1120
1121
 
1121
- // lib/Dialogs/BaseDialog.tsx
1122
+ // lib/Buttons/stdButton.tsx
1122
1123
  var React57 = __toESM(require("react"), 1);
1124
+ var StandardButton = ({ children, ...props }) => {
1125
+ return /* @__PURE__ */ React57.createElement("button", { className: "btn standard-btn", ...props }, children);
1126
+ };
1127
+ var stdButton_default = StandardButton;
1128
+
1129
+ // lib/Dialogs/BaseDialog.tsx
1130
+ var React58 = __toESM(require("react"), 1);
1123
1131
  var import_react13 = require("react");
1124
1132
  var BaseDialog = ({
1125
1133
  open = false,
@@ -1149,7 +1157,7 @@ var BaseDialog = ({
1149
1157
  const { theme } = useRufousTheme();
1150
1158
  const successBtnRef = (0, import_react13.useRef)(null);
1151
1159
  if (!open) return null;
1152
- const renderButtons = () => /* @__PURE__ */ React57.createElement("div", { className: "dialog-footer", style: { justifyContent: buttonAlign } }, showCancelButton && /* @__PURE__ */ React57.createElement(
1160
+ const renderButtons = () => /* @__PURE__ */ React58.createElement("div", { className: "dialog-footer", style: { justifyContent: buttonAlign } }, showCancelButton && /* @__PURE__ */ React58.createElement(
1153
1161
  "button",
1154
1162
  {
1155
1163
  className: "btn-cancel",
@@ -1157,7 +1165,7 @@ var BaseDialog = ({
1157
1165
  disabled: isLoading
1158
1166
  },
1159
1167
  cancelText
1160
- ), onConfirm && /* @__PURE__ */ React57.createElement(
1168
+ ), onConfirm && /* @__PURE__ */ React58.createElement(
1161
1169
  "button",
1162
1170
  {
1163
1171
  ref: successBtnRef,
@@ -1169,9 +1177,9 @@ var BaseDialog = ({
1169
1177
  if (successBtnRef.current) successBtnRef.current.disabled = false;
1170
1178
  }
1171
1179
  },
1172
- loading ? /* @__PURE__ */ React57.createElement("span", { className: "spinner" }) : /* @__PURE__ */ React57.createElement("span", null, confirmText)
1180
+ loading ? /* @__PURE__ */ React58.createElement("span", { className: "spinner" }) : /* @__PURE__ */ React58.createElement("span", null, confirmText)
1173
1181
  ));
1174
- return /* @__PURE__ */ React57.createElement("div", { className: `dialog-overlay ${fullScreen ? "fullscreen" : ""}` }, /* @__PURE__ */ React57.createElement(
1182
+ return /* @__PURE__ */ React58.createElement("div", { className: `dialog-overlay ${fullScreen ? "fullscreen" : ""}` }, /* @__PURE__ */ React58.createElement(
1175
1183
  "div",
1176
1184
  {
1177
1185
  className: `dialog-container ${className || ""}`,
@@ -1181,9 +1189,9 @@ var BaseDialog = ({
1181
1189
  width: fullWidth ? "100%" : "auto"
1182
1190
  }
1183
1191
  },
1184
- /* @__PURE__ */ React57.createElement("div", { className: "dialog-title" }, /* @__PURE__ */ React57.createElement("h2", null, formatTitle ? title?.charAt(0).toUpperCase() + title?.slice(1).toLowerCase() : title), showCloseButton && /* @__PURE__ */ React57.createElement("button", { className: "btn-close", onClick: onClose }, /* @__PURE__ */ React57.createElement(closeIcon_default, { color: theme?.customStyles?.iconColor || "#707070" }))),
1185
- /* @__PURE__ */ React57.createElement("div", { className: "dialog-divider" }),
1186
- /* @__PURE__ */ React57.createElement(
1192
+ /* @__PURE__ */ React58.createElement("div", { className: "dialog-title" }, /* @__PURE__ */ React58.createElement("h2", null, formatTitle ? title?.charAt(0).toUpperCase() + title?.slice(1).toLowerCase() : title), showCloseButton && /* @__PURE__ */ React58.createElement("button", { className: "btn-close", onClick: onClose }, /* @__PURE__ */ React58.createElement(closeIcon_default, { color: theme?.customStyles?.iconColor || "#707070" }))),
1193
+ /* @__PURE__ */ React58.createElement("div", { className: "dialog-divider" }),
1194
+ /* @__PURE__ */ React58.createElement(
1187
1195
  "div",
1188
1196
  {
1189
1197
  className: "dialog-body",
@@ -1304,6 +1312,7 @@ var useRufousTheme = () => (0, import_react14.useContext)(RufousThemeContext);
1304
1312
  RufousLauncherIcon,
1305
1313
  RufousThemeProvider,
1306
1314
  SidebarIcon,
1315
+ StandardButton,
1307
1316
  SubmitButton,
1308
1317
  SubscribeIcon,
1309
1318
  SuspendUserIcon,
package/dist/main.css CHANGED
@@ -76,6 +76,36 @@
76
76
  background: #a41b06;
77
77
  color: #fff;
78
78
  }
79
+ .standard-btn {
80
+ background: #f6f6f6;
81
+ background-color: #f6f6f6;
82
+ border: 1px solid #d5d5d5;
83
+ color: #535656;
84
+ font-size: 16px;
85
+ font-weight: 300;
86
+ box-shadow: none;
87
+ width: 122px;
88
+ height: 40px;
89
+ text-transform: none;
90
+ font-size: 16px;
91
+ border: 1px solid #d5d5d5;
92
+ height: 40px;
93
+ text-transform: capitalize;
94
+ font-weight: 300;
95
+ color: #535656;
96
+ }
97
+ .standard-btn:hover {
98
+ background: #ffffff;
99
+ background-color: #ffffff;
100
+ box-shadow: none;
101
+ }
102
+ @media (max-width: 767px) {
103
+ .standard-btn {
104
+ width: 90px;
105
+ height: 30px;
106
+ font-size: 13px;
107
+ }
108
+ }
79
109
 
80
110
  /* lib/styles/dialog.css */
81
111
  .dialog-overlay {
package/dist/main.d.cts CHANGED
@@ -55,6 +55,7 @@ export { default as DownloadPdfIcon } from './icons/downloadPdfIcon.cjs';
55
55
  export { default as AddButton } from './Buttons/addButton.cjs';
56
56
  export { default as SubmitButton } from './Buttons/submitButton.cjs';
57
57
  export { default as CancelButton } from './Buttons/cancelButton.cjs';
58
+ export { default as StandardButton } from './Buttons/stdButton.cjs';
58
59
  export { default as BaseDialog } from './Dialogs/BaseDialog.cjs';
59
60
  export { RufousThemeProvider, useRufousTheme } from './Contexts/rufousThemeProvider.cjs';
60
61
  import 'react';
package/dist/main.d.ts CHANGED
@@ -55,6 +55,7 @@ export { default as DownloadPdfIcon } from './icons/downloadPdfIcon.js';
55
55
  export { default as AddButton } from './Buttons/addButton.js';
56
56
  export { default as SubmitButton } from './Buttons/submitButton.js';
57
57
  export { default as CancelButton } from './Buttons/cancelButton.js';
58
+ export { default as StandardButton } from './Buttons/stdButton.js';
58
59
  export { default as BaseDialog } from './Dialogs/BaseDialog.js';
59
60
  export { RufousThemeProvider, useRufousTheme } from './Contexts/rufousThemeProvider.js';
60
61
  import 'react';
package/dist/main.js CHANGED
@@ -2,6 +2,9 @@ import {
2
2
  BaseDialog_default
3
3
  } from "./chunk-CPLUOEPG.js";
4
4
  import "./chunk-IR7ZKMED.js";
5
+ import {
6
+ uploadIcon_default
7
+ } from "./chunk-DXJ745NZ.js";
5
8
  import {
6
9
  userAssignIcon_default
7
10
  } from "./chunk-BH53P2UM.js";
@@ -11,6 +14,9 @@ import {
11
14
  import {
12
15
  workItemIcon_default
13
16
  } from "./chunk-QJPQC544.js";
17
+ import {
18
+ sidebarIcon_default
19
+ } from "./chunk-CSKTBLQQ.js";
14
20
  import {
15
21
  subscribeIcon_default
16
22
  } from "./chunk-ZDVP4SUD.js";
@@ -33,8 +39,8 @@ import {
33
39
  unsubscribeIcon_default
34
40
  } from "./chunk-NMMC4ATV.js";
35
41
  import {
36
- uploadIcon_default
37
- } from "./chunk-DXJ745NZ.js";
42
+ questionTypeMultipleIcon_default
43
+ } from "./chunk-XCLXQOLP.js";
38
44
  import {
39
45
  questionTypeSingleIcon_default
40
46
  } from "./chunk-ZJYLZ6I6.js";
@@ -57,8 +63,8 @@ import {
57
63
  rufousLauncherBird_default
58
64
  } from "./chunk-QZFGQ5JM.js";
59
65
  import {
60
- sidebarIcon_default
61
- } from "./chunk-CSKTBLQQ.js";
66
+ notificationIcon_default
67
+ } from "./chunk-QIEQRNBE.js";
62
68
  import {
63
69
  projectIcon_default
64
70
  } from "./chunk-BYJP2WNC.js";
@@ -81,8 +87,8 @@ import {
81
87
  questionTypeDescriptiveIcon_default
82
88
  } from "./chunk-C7B23GTE.js";
83
89
  import {
84
- questionTypeMultipleIcon_default
85
- } from "./chunk-XCLXQOLP.js";
90
+ inactiveGroupIcon_default
91
+ } from "./chunk-7WNPZ4B7.js";
86
92
  import {
87
93
  industryIcon_default
88
94
  } from "./chunk-NSW6ZGZF.js";
@@ -102,8 +108,8 @@ import {
102
108
  nineDotMenuIcon_default
103
109
  } from "./chunk-GESVGIAP.js";
104
110
  import {
105
- notificationIcon_default
106
- } from "./chunk-QIEQRNBE.js";
111
+ downloadIcon_default
112
+ } from "./chunk-IOEQAR2M.js";
107
113
  import {
108
114
  downloadPdfIcon_default
109
115
  } from "./chunk-N26C33E6.js";
@@ -126,8 +132,8 @@ import {
126
132
  hierarchyIcon_default
127
133
  } from "./chunk-WZAU77G7.js";
128
134
  import {
129
- inactiveGroupIcon_default
130
- } from "./chunk-7WNPZ4B7.js";
135
+ assignGroupIcon_default
136
+ } from "./chunk-MNPAE2ZF.js";
131
137
  import {
132
138
  closeIcon_default
133
139
  } from "./chunk-WXXJX3FF.js";
@@ -149,9 +155,6 @@ import {
149
155
  import {
150
156
  dollarIcon_default
151
157
  } from "./chunk-GL43GPEM.js";
152
- import {
153
- downloadIcon_default
154
- } from "./chunk-IOEQAR2M.js";
155
158
  import {
156
159
  RufousThemeProvider,
157
160
  useRufousTheme
@@ -165,16 +168,16 @@ import {
165
168
  import {
166
169
  archivedIcon_default
167
170
  } from "./chunk-3IBCGGN3.js";
168
- import {
169
- assignGroupIcon_default
170
- } from "./chunk-MNPAE2ZF.js";
171
- import "./chunk-JSGUIKOH.js";
171
+ import "./chunk-QPGJCRBS.js";
172
172
  import {
173
173
  addButton_default
174
174
  } from "./chunk-U7SARO5B.js";
175
175
  import {
176
176
  cancelButton_default
177
177
  } from "./chunk-BMMDUQDJ.js";
178
+ import {
179
+ stdButton_default
180
+ } from "./chunk-R3GARAVJ.js";
178
181
  import {
179
182
  submitButton_default
180
183
  } from "./chunk-5MMHFGWQ.js";
@@ -226,6 +229,7 @@ export {
226
229
  rufousLauncherBird_default as RufousLauncherIcon,
227
230
  RufousThemeProvider,
228
231
  sidebarIcon_default as SidebarIcon,
232
+ stdButton_default as StandardButton,
229
233
  submitButton_default as SubmitButton,
230
234
  subscribeIcon_default as SubscribeIcon,
231
235
  suspendUserIcon_default as SuspendUserIcon,
package/dist/style.css CHANGED
@@ -76,6 +76,36 @@
76
76
  background: #a41b06;
77
77
  color: #fff;
78
78
  }
79
+ .standard-btn {
80
+ background: #f6f6f6;
81
+ background-color: #f6f6f6;
82
+ border: 1px solid #d5d5d5;
83
+ color: #535656;
84
+ font-size: 16px;
85
+ font-weight: 300;
86
+ box-shadow: none;
87
+ width: 122px;
88
+ height: 40px;
89
+ text-transform: none;
90
+ font-size: 16px;
91
+ border: 1px solid #d5d5d5;
92
+ height: 40px;
93
+ text-transform: capitalize;
94
+ font-weight: 300;
95
+ color: #535656;
96
+ }
97
+ .standard-btn:hover {
98
+ background: #ffffff;
99
+ background-color: #ffffff;
100
+ box-shadow: none;
101
+ }
102
+ @media (max-width: 767px) {
103
+ .standard-btn {
104
+ width: 90px;
105
+ height: 30px;
106
+ font-size: 13px;
107
+ }
108
+ }
79
109
 
80
110
  /* lib/styles/dialog.css */
81
111
  .dialog-overlay {
@@ -76,3 +76,33 @@
76
76
  background: #a41b06;
77
77
  color: #fff;
78
78
  }
79
+ .standard-btn {
80
+ background: #f6f6f6;
81
+ background-color: #f6f6f6;
82
+ border: 1px solid #d5d5d5;
83
+ color: #535656;
84
+ font-size: 16px;
85
+ font-weight: 300;
86
+ box-shadow: none;
87
+ width: 122px;
88
+ height: 40px;
89
+ text-transform: none;
90
+ font-size: 16px;
91
+ border: 1px solid #d5d5d5;
92
+ height: 40px;
93
+ text-transform: capitalize;
94
+ font-weight: 300;
95
+ color: #535656;
96
+ }
97
+ .standard-btn:hover {
98
+ background: #ffffff;
99
+ background-color: #ffffff;
100
+ box-shadow: none;
101
+ }
102
+ @media (max-width: 767px) {
103
+ .standard-btn {
104
+ width: 90px;
105
+ height: 30px;
106
+ font-size: 13px;
107
+ }
108
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rufous/ui",
3
3
  "private": false,
4
- "version": "0.1.35",
4
+ "version": "0.1.37",
5
5
  "type": "module",
6
6
  "style": "./dist/style.css",
7
7
  "files": [
File without changes