@rufous/ui 0.1.34 → 0.1.36

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
+ };
@@ -24,7 +24,7 @@
24
24
  line-height: 1.75;
25
25
  }
26
26
  .btn:disabled {
27
- background-color: #e0e0e0;
27
+ background-color: #e0e0e0 !important;
28
28
  cursor: not-allowed;
29
29
  }
30
30
  .cancel-btn {
@@ -63,7 +63,7 @@
63
63
  background-color: #9b1906;
64
64
  }
65
65
  .add-btn {
66
- min-width: 64px;
66
+ min-width: fit-content;
67
67
  padding: 7px 10px;
68
68
  font-size: 14px;
69
69
  border: 1px solid #a41b06;
@@ -1,66 +1,67 @@
1
1
  import {
2
2
  BaseDialog_default
3
3
  } from "../chunk-CPLUOEPG.js";
4
- import "../chunk-JSGUIKOH.js";
5
- import "../chunk-U7SARO5B.js";
6
- import "../chunk-BMMDUQDJ.js";
7
- import "../chunk-5MMHFGWQ.js";
8
4
  import "../chunk-IR7ZKMED.js";
9
- import "../chunk-6KIFTMUN.js";
10
- import "../chunk-ZJAV3FEQ.js";
11
- import "../chunk-NMMC4ATV.js";
12
5
  import "../chunk-DXJ745NZ.js";
13
6
  import "../chunk-BH53P2UM.js";
14
7
  import "../chunk-XPRBPIS5.js";
15
8
  import "../chunk-QJPQC544.js";
16
- import "../chunk-DE73YGRW.js";
17
- import "../chunk-DMP72IAP.js";
18
- import "../chunk-QZFGQ5JM.js";
19
9
  import "../chunk-CSKTBLQQ.js";
20
10
  import "../chunk-ZDVP4SUD.js";
21
11
  import "../chunk-5BB3H3YO.js";
22
12
  import "../chunk-ITZTTNM2.js";
23
13
  import "../chunk-WWAHNTUH.js";
24
- import "../chunk-WHGVO3HV.js";
25
- import "../chunk-FOUXNPQA.js";
26
- import "../chunk-C7B23GTE.js";
14
+ import "../chunk-6KIFTMUN.js";
15
+ import "../chunk-ZJAV3FEQ.js";
16
+ import "../chunk-NMMC4ATV.js";
27
17
  import "../chunk-XCLXQOLP.js";
28
18
  import "../chunk-ZJYLZ6I6.js";
29
19
  import "../chunk-RNA4TTYR.js";
30
20
  import "../chunk-WG3Q6GZN.js";
31
21
  import "../chunk-RJ43D3XB.js";
32
- import "../chunk-N4EJKMJK.js";
33
- import "../chunk-MKK7M3BH.js";
34
- import "../chunk-GESVGIAP.js";
22
+ import "../chunk-DE73YGRW.js";
23
+ import "../chunk-DMP72IAP.js";
24
+ import "../chunk-QZFGQ5JM.js";
35
25
  import "../chunk-QIEQRNBE.js";
36
26
  import "../chunk-BYJP2WNC.js";
37
27
  import "../chunk-GYLL3HRD.js";
38
28
  import "../chunk-WZTZFC36.js";
39
29
  import "../chunk-QA2AYT4A.js";
40
- import "../chunk-ZAYWFYP4.js";
41
- import "../chunk-5UEJAVFK.js";
42
- import "../chunk-WZAU77G7.js";
30
+ import "../chunk-WHGVO3HV.js";
31
+ import "../chunk-FOUXNPQA.js";
32
+ import "../chunk-C7B23GTE.js";
43
33
  import "../chunk-7WNPZ4B7.js";
44
34
  import "../chunk-NSW6ZGZF.js";
45
35
  import "../chunk-KYJ3475B.js";
46
36
  import "../chunk-UTYIBUY2.js";
47
- import "../chunk-WXANSSXF.js";
48
- import "../chunk-XPJVVKOU.js";
49
- import "../chunk-GL43GPEM.js";
37
+ import "../chunk-N4EJKMJK.js";
38
+ import "../chunk-MKK7M3BH.js";
39
+ import "../chunk-GESVGIAP.js";
50
40
  import "../chunk-IOEQAR2M.js";
51
41
  import "../chunk-N26C33E6.js";
52
42
  import "../chunk-QONKYAQ5.js";
53
43
  import "../chunk-H372BAXA.js";
54
44
  import "../chunk-FSRABKKC.js";
55
- import "../chunk-AH6RCYDL.js";
56
- import "../chunk-3IBCGGN3.js";
45
+ import "../chunk-ZAYWFYP4.js";
46
+ import "../chunk-5UEJAVFK.js";
47
+ import "../chunk-WZAU77G7.js";
57
48
  import "../chunk-MNPAE2ZF.js";
58
49
  import "../chunk-WXXJX3FF.js";
59
50
  import "../chunk-6FEUS4CQ.js";
60
51
  import "../chunk-PPNZC5ZQ.js";
61
52
  import "../chunk-JI5XMLWT.js";
53
+ import "../chunk-WXANSSXF.js";
54
+ import "../chunk-XPJVVKOU.js";
55
+ import "../chunk-GL43GPEM.js";
62
56
  import "../chunk-BCGCLMKA.js";
63
57
  import "../chunk-2FHTGYR4.js";
58
+ import "../chunk-AH6RCYDL.js";
59
+ import "../chunk-3IBCGGN3.js";
60
+ import "../chunk-QPGJCRBS.js";
61
+ import "../chunk-U7SARO5B.js";
62
+ import "../chunk-BMMDUQDJ.js";
63
+ import "../chunk-R3GARAVJ.js";
64
+ import "../chunk-5MMHFGWQ.js";
64
65
  export {
65
66
  BaseDialog_default as default
66
67
  };
@@ -24,7 +24,7 @@
24
24
  line-height: 1.75;
25
25
  }
26
26
  .btn:disabled {
27
- background-color: #e0e0e0;
27
+ background-color: #e0e0e0 !important;
28
28
  cursor: not-allowed;
29
29
  }
30
30
  .cancel-btn {
@@ -63,7 +63,7 @@
63
63
  background-color: #9b1906;
64
64
  }
65
65
  .add-btn {
66
- min-width: 64px;
66
+ min-width: fit-content;
67
67
  padding: 7px 10px;
68
68
  font-size: 14px;
69
69
  border: 1px solid #a41b06;
@@ -1,66 +1,67 @@
1
1
  import {
2
2
  BaseDialog_default
3
3
  } from "../chunk-CPLUOEPG.js";
4
- import "../chunk-JSGUIKOH.js";
5
- import "../chunk-U7SARO5B.js";
6
- import "../chunk-BMMDUQDJ.js";
7
- import "../chunk-5MMHFGWQ.js";
8
4
  import "../chunk-IR7ZKMED.js";
9
- import "../chunk-6KIFTMUN.js";
10
- import "../chunk-ZJAV3FEQ.js";
11
- import "../chunk-NMMC4ATV.js";
12
5
  import "../chunk-DXJ745NZ.js";
13
6
  import "../chunk-BH53P2UM.js";
14
7
  import "../chunk-XPRBPIS5.js";
15
8
  import "../chunk-QJPQC544.js";
16
- import "../chunk-DE73YGRW.js";
17
- import "../chunk-DMP72IAP.js";
18
- import "../chunk-QZFGQ5JM.js";
19
9
  import "../chunk-CSKTBLQQ.js";
20
10
  import "../chunk-ZDVP4SUD.js";
21
11
  import "../chunk-5BB3H3YO.js";
22
12
  import "../chunk-ITZTTNM2.js";
23
13
  import "../chunk-WWAHNTUH.js";
24
- import "../chunk-WHGVO3HV.js";
25
- import "../chunk-FOUXNPQA.js";
26
- import "../chunk-C7B23GTE.js";
14
+ import "../chunk-6KIFTMUN.js";
15
+ import "../chunk-ZJAV3FEQ.js";
16
+ import "../chunk-NMMC4ATV.js";
27
17
  import "../chunk-XCLXQOLP.js";
28
18
  import "../chunk-ZJYLZ6I6.js";
29
19
  import "../chunk-RNA4TTYR.js";
30
20
  import "../chunk-WG3Q6GZN.js";
31
21
  import "../chunk-RJ43D3XB.js";
32
- import "../chunk-N4EJKMJK.js";
33
- import "../chunk-MKK7M3BH.js";
34
- import "../chunk-GESVGIAP.js";
22
+ import "../chunk-DE73YGRW.js";
23
+ import "../chunk-DMP72IAP.js";
24
+ import "../chunk-QZFGQ5JM.js";
35
25
  import "../chunk-QIEQRNBE.js";
36
26
  import "../chunk-BYJP2WNC.js";
37
27
  import "../chunk-GYLL3HRD.js";
38
28
  import "../chunk-WZTZFC36.js";
39
29
  import "../chunk-QA2AYT4A.js";
40
- import "../chunk-ZAYWFYP4.js";
41
- import "../chunk-5UEJAVFK.js";
42
- import "../chunk-WZAU77G7.js";
30
+ import "../chunk-WHGVO3HV.js";
31
+ import "../chunk-FOUXNPQA.js";
32
+ import "../chunk-C7B23GTE.js";
43
33
  import "../chunk-7WNPZ4B7.js";
44
34
  import "../chunk-NSW6ZGZF.js";
45
35
  import "../chunk-KYJ3475B.js";
46
36
  import "../chunk-UTYIBUY2.js";
47
- import "../chunk-WXANSSXF.js";
48
- import "../chunk-XPJVVKOU.js";
49
- import "../chunk-GL43GPEM.js";
37
+ import "../chunk-N4EJKMJK.js";
38
+ import "../chunk-MKK7M3BH.js";
39
+ import "../chunk-GESVGIAP.js";
50
40
  import "../chunk-IOEQAR2M.js";
51
41
  import "../chunk-N26C33E6.js";
52
42
  import "../chunk-QONKYAQ5.js";
53
43
  import "../chunk-H372BAXA.js";
54
44
  import "../chunk-FSRABKKC.js";
55
- import "../chunk-AH6RCYDL.js";
56
- import "../chunk-3IBCGGN3.js";
45
+ import "../chunk-ZAYWFYP4.js";
46
+ import "../chunk-5UEJAVFK.js";
47
+ import "../chunk-WZAU77G7.js";
57
48
  import "../chunk-MNPAE2ZF.js";
58
49
  import "../chunk-WXXJX3FF.js";
59
50
  import "../chunk-6FEUS4CQ.js";
60
51
  import "../chunk-PPNZC5ZQ.js";
61
52
  import "../chunk-JI5XMLWT.js";
53
+ import "../chunk-WXANSSXF.js";
54
+ import "../chunk-XPJVVKOU.js";
55
+ import "../chunk-GL43GPEM.js";
62
56
  import "../chunk-BCGCLMKA.js";
63
57
  import "../chunk-2FHTGYR4.js";
58
+ import "../chunk-AH6RCYDL.js";
59
+ import "../chunk-3IBCGGN3.js";
60
+ import "../chunk-QPGJCRBS.js";
61
+ import "../chunk-U7SARO5B.js";
62
+ import "../chunk-BMMDUQDJ.js";
63
+ import "../chunk-R3GARAVJ.js";
64
+ import "../chunk-5MMHFGWQ.js";
64
65
  export {
65
66
  BaseDialog_default as BaseDialog
66
67
  };
@@ -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,13 +1,4 @@
1
1
  import "../chunk-IR7ZKMED.js";
2
- import {
3
- trashIcon_default
4
- } from "../chunk-6KIFTMUN.js";
5
- import {
6
- unArchivedIcon_default
7
- } from "../chunk-ZJAV3FEQ.js";
8
- import {
9
- unsubscribeIcon_default
10
- } from "../chunk-NMMC4ATV.js";
11
2
  import {
12
3
  uploadIcon_default
13
4
  } from "../chunk-DXJ745NZ.js";
@@ -20,15 +11,6 @@ import {
20
11
  import {
21
12
  workItemIcon_default
22
13
  } from "../chunk-QJPQC544.js";
23
- import {
24
- rufousAiIcon_default
25
- } from "../chunk-DE73YGRW.js";
26
- import {
27
- rufousBirdIcon_default
28
- } from "../chunk-DMP72IAP.js";
29
- import {
30
- rufousLauncherBird_default
31
- } from "../chunk-QZFGQ5JM.js";
32
14
  import {
33
15
  sidebarIcon_default
34
16
  } from "../chunk-CSKTBLQQ.js";
@@ -45,14 +27,14 @@ import {
45
27
  timerIcon_default
46
28
  } from "../chunk-WWAHNTUH.js";
47
29
  import {
48
- questionTypeAllIcon_default
49
- } from "../chunk-WHGVO3HV.js";
30
+ trashIcon_default
31
+ } from "../chunk-6KIFTMUN.js";
50
32
  import {
51
- questionTypeCodingIcon_default
52
- } from "../chunk-FOUXNPQA.js";
33
+ unArchivedIcon_default
34
+ } from "../chunk-ZJAV3FEQ.js";
53
35
  import {
54
- questionTypeDescriptiveIcon_default
55
- } from "../chunk-C7B23GTE.js";
36
+ unsubscribeIcon_default
37
+ } from "../chunk-NMMC4ATV.js";
56
38
  import {
57
39
  questionTypeMultipleIcon_default
58
40
  } from "../chunk-XCLXQOLP.js";
@@ -69,14 +51,14 @@ import {
69
51
  rolesIcon_default
70
52
  } from "../chunk-RJ43D3XB.js";
71
53
  import {
72
- logsIcon_default
73
- } from "../chunk-N4EJKMJK.js";
54
+ rufousAiIcon_default
55
+ } from "../chunk-DE73YGRW.js";
74
56
  import {
75
- minExperienceIcon_default
76
- } from "../chunk-MKK7M3BH.js";
57
+ rufousBirdIcon_default
58
+ } from "../chunk-DMP72IAP.js";
77
59
  import {
78
- nineDotMenuIcon_default
79
- } from "../chunk-GESVGIAP.js";
60
+ rufousLauncherBird_default
61
+ } from "../chunk-QZFGQ5JM.js";
80
62
  import {
81
63
  notificationIcon_default
82
64
  } from "../chunk-QIEQRNBE.js";
@@ -93,14 +75,14 @@ import {
93
75
  questionStatusPublicIcon_default
94
76
  } from "../chunk-QA2AYT4A.js";
95
77
  import {
96
- functionIcon_default
97
- } from "../chunk-ZAYWFYP4.js";
78
+ questionTypeAllIcon_default
79
+ } from "../chunk-WHGVO3HV.js";
98
80
  import {
99
- helpOutlinedIcon_default
100
- } from "../chunk-5UEJAVFK.js";
81
+ questionTypeCodingIcon_default
82
+ } from "../chunk-FOUXNPQA.js";
101
83
  import {
102
- hierarchyIcon_default
103
- } from "../chunk-WZAU77G7.js";
84
+ questionTypeDescriptiveIcon_default
85
+ } from "../chunk-C7B23GTE.js";
104
86
  import {
105
87
  inactiveGroupIcon_default
106
88
  } from "../chunk-7WNPZ4B7.js";
@@ -114,14 +96,14 @@ import {
114
96
  locationPinIcon_default
115
97
  } from "../chunk-UTYIBUY2.js";
116
98
  import {
117
- difficultyHardIcon_default
118
- } from "../chunk-WXANSSXF.js";
99
+ logsIcon_default
100
+ } from "../chunk-N4EJKMJK.js";
119
101
  import {
120
- difficultyMediumIcon_default
121
- } from "../chunk-XPJVVKOU.js";
102
+ minExperienceIcon_default
103
+ } from "../chunk-MKK7M3BH.js";
122
104
  import {
123
- dollarIcon_default
124
- } from "../chunk-GL43GPEM.js";
105
+ nineDotMenuIcon_default
106
+ } from "../chunk-GESVGIAP.js";
125
107
  import {
126
108
  downloadIcon_default
127
109
  } from "../chunk-IOEQAR2M.js";
@@ -138,11 +120,14 @@ import {
138
120
  engagementIcon_default
139
121
  } from "../chunk-FSRABKKC.js";
140
122
  import {
141
- activateUserIcon_default
142
- } from "../chunk-AH6RCYDL.js";
123
+ functionIcon_default
124
+ } from "../chunk-ZAYWFYP4.js";
143
125
  import {
144
- archivedIcon_default
145
- } from "../chunk-3IBCGGN3.js";
126
+ helpOutlinedIcon_default
127
+ } from "../chunk-5UEJAVFK.js";
128
+ import {
129
+ hierarchyIcon_default
130
+ } from "../chunk-WZAU77G7.js";
146
131
  import {
147
132
  assignGroupIcon_default
148
133
  } from "../chunk-MNPAE2ZF.js";
@@ -158,6 +143,21 @@ import {
158
143
  import {
159
144
  difficultyEasyIcon_default
160
145
  } from "../chunk-JI5XMLWT.js";
146
+ import {
147
+ difficultyHardIcon_default
148
+ } from "../chunk-WXANSSXF.js";
149
+ import {
150
+ difficultyMediumIcon_default
151
+ } from "../chunk-XPJVVKOU.js";
152
+ import {
153
+ dollarIcon_default
154
+ } from "../chunk-GL43GPEM.js";
155
+ import {
156
+ activateUserIcon_default
157
+ } from "../chunk-AH6RCYDL.js";
158
+ import {
159
+ archivedIcon_default
160
+ } from "../chunk-3IBCGGN3.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
@@ -24,7 +24,7 @@
24
24
  line-height: 1.75;
25
25
  }
26
26
  .btn:disabled {
27
- background-color: #e0e0e0;
27
+ background-color: #e0e0e0 !important;
28
28
  cursor: not-allowed;
29
29
  }
30
30
  .cancel-btn {
@@ -63,7 +63,7 @@
63
63
  background-color: #9b1906;
64
64
  }
65
65
  .add-btn {
66
- min-width: 64px;
66
+ min-width: fit-content;
67
67
  padding: 7px 10px;
68
68
  font-size: 14px;
69
69
  border: 1px solid #a41b06;
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
@@ -1,26 +1,7 @@
1
1
  import {
2
2
  BaseDialog_default
3
3
  } from "./chunk-CPLUOEPG.js";
4
- import "./chunk-JSGUIKOH.js";
5
- import {
6
- addButton_default
7
- } from "./chunk-U7SARO5B.js";
8
- import {
9
- cancelButton_default
10
- } from "./chunk-BMMDUQDJ.js";
11
- import {
12
- submitButton_default
13
- } from "./chunk-5MMHFGWQ.js";
14
4
  import "./chunk-IR7ZKMED.js";
15
- import {
16
- trashIcon_default
17
- } from "./chunk-6KIFTMUN.js";
18
- import {
19
- unArchivedIcon_default
20
- } from "./chunk-ZJAV3FEQ.js";
21
- import {
22
- unsubscribeIcon_default
23
- } from "./chunk-NMMC4ATV.js";
24
5
  import {
25
6
  uploadIcon_default
26
7
  } from "./chunk-DXJ745NZ.js";
@@ -33,15 +14,6 @@ import {
33
14
  import {
34
15
  workItemIcon_default
35
16
  } from "./chunk-QJPQC544.js";
36
- import {
37
- rufousAiIcon_default
38
- } from "./chunk-DE73YGRW.js";
39
- import {
40
- rufousBirdIcon_default
41
- } from "./chunk-DMP72IAP.js";
42
- import {
43
- rufousLauncherBird_default
44
- } from "./chunk-QZFGQ5JM.js";
45
17
  import {
46
18
  sidebarIcon_default
47
19
  } from "./chunk-CSKTBLQQ.js";
@@ -58,14 +30,14 @@ import {
58
30
  timerIcon_default
59
31
  } from "./chunk-WWAHNTUH.js";
60
32
  import {
61
- questionTypeAllIcon_default
62
- } from "./chunk-WHGVO3HV.js";
33
+ trashIcon_default
34
+ } from "./chunk-6KIFTMUN.js";
63
35
  import {
64
- questionTypeCodingIcon_default
65
- } from "./chunk-FOUXNPQA.js";
36
+ unArchivedIcon_default
37
+ } from "./chunk-ZJAV3FEQ.js";
66
38
  import {
67
- questionTypeDescriptiveIcon_default
68
- } from "./chunk-C7B23GTE.js";
39
+ unsubscribeIcon_default
40
+ } from "./chunk-NMMC4ATV.js";
69
41
  import {
70
42
  questionTypeMultipleIcon_default
71
43
  } from "./chunk-XCLXQOLP.js";
@@ -82,14 +54,14 @@ import {
82
54
  rolesIcon_default
83
55
  } from "./chunk-RJ43D3XB.js";
84
56
  import {
85
- logsIcon_default
86
- } from "./chunk-N4EJKMJK.js";
57
+ rufousAiIcon_default
58
+ } from "./chunk-DE73YGRW.js";
87
59
  import {
88
- minExperienceIcon_default
89
- } from "./chunk-MKK7M3BH.js";
60
+ rufousBirdIcon_default
61
+ } from "./chunk-DMP72IAP.js";
90
62
  import {
91
- nineDotMenuIcon_default
92
- } from "./chunk-GESVGIAP.js";
63
+ rufousLauncherBird_default
64
+ } from "./chunk-QZFGQ5JM.js";
93
65
  import {
94
66
  notificationIcon_default
95
67
  } from "./chunk-QIEQRNBE.js";
@@ -106,14 +78,14 @@ import {
106
78
  questionStatusPublicIcon_default
107
79
  } from "./chunk-QA2AYT4A.js";
108
80
  import {
109
- functionIcon_default
110
- } from "./chunk-ZAYWFYP4.js";
81
+ questionTypeAllIcon_default
82
+ } from "./chunk-WHGVO3HV.js";
111
83
  import {
112
- helpOutlinedIcon_default
113
- } from "./chunk-5UEJAVFK.js";
84
+ questionTypeCodingIcon_default
85
+ } from "./chunk-FOUXNPQA.js";
114
86
  import {
115
- hierarchyIcon_default
116
- } from "./chunk-WZAU77G7.js";
87
+ questionTypeDescriptiveIcon_default
88
+ } from "./chunk-C7B23GTE.js";
117
89
  import {
118
90
  inactiveGroupIcon_default
119
91
  } from "./chunk-7WNPZ4B7.js";
@@ -127,14 +99,14 @@ import {
127
99
  locationPinIcon_default
128
100
  } from "./chunk-UTYIBUY2.js";
129
101
  import {
130
- difficultyHardIcon_default
131
- } from "./chunk-WXANSSXF.js";
102
+ logsIcon_default
103
+ } from "./chunk-N4EJKMJK.js";
132
104
  import {
133
- difficultyMediumIcon_default
134
- } from "./chunk-XPJVVKOU.js";
105
+ minExperienceIcon_default
106
+ } from "./chunk-MKK7M3BH.js";
135
107
  import {
136
- dollarIcon_default
137
- } from "./chunk-GL43GPEM.js";
108
+ nineDotMenuIcon_default
109
+ } from "./chunk-GESVGIAP.js";
138
110
  import {
139
111
  downloadIcon_default
140
112
  } from "./chunk-IOEQAR2M.js";
@@ -151,11 +123,14 @@ import {
151
123
  engagementIcon_default
152
124
  } from "./chunk-FSRABKKC.js";
153
125
  import {
154
- activateUserIcon_default
155
- } from "./chunk-AH6RCYDL.js";
126
+ functionIcon_default
127
+ } from "./chunk-ZAYWFYP4.js";
156
128
  import {
157
- archivedIcon_default
158
- } from "./chunk-3IBCGGN3.js";
129
+ helpOutlinedIcon_default
130
+ } from "./chunk-5UEJAVFK.js";
131
+ import {
132
+ hierarchyIcon_default
133
+ } from "./chunk-WZAU77G7.js";
159
134
  import {
160
135
  assignGroupIcon_default
161
136
  } from "./chunk-MNPAE2ZF.js";
@@ -171,6 +146,15 @@ import {
171
146
  import {
172
147
  difficultyEasyIcon_default
173
148
  } from "./chunk-JI5XMLWT.js";
149
+ import {
150
+ difficultyHardIcon_default
151
+ } from "./chunk-WXANSSXF.js";
152
+ import {
153
+ difficultyMediumIcon_default
154
+ } from "./chunk-XPJVVKOU.js";
155
+ import {
156
+ dollarIcon_default
157
+ } from "./chunk-GL43GPEM.js";
174
158
  import {
175
159
  RufousThemeProvider,
176
160
  useRufousTheme
@@ -178,6 +162,25 @@ import {
178
162
  import {
179
163
  APP_THEMES
180
164
  } from "./chunk-2FHTGYR4.js";
165
+ import {
166
+ activateUserIcon_default
167
+ } from "./chunk-AH6RCYDL.js";
168
+ import {
169
+ archivedIcon_default
170
+ } from "./chunk-3IBCGGN3.js";
171
+ import "./chunk-QPGJCRBS.js";
172
+ import {
173
+ addButton_default
174
+ } from "./chunk-U7SARO5B.js";
175
+ import {
176
+ cancelButton_default
177
+ } from "./chunk-BMMDUQDJ.js";
178
+ import {
179
+ stdButton_default
180
+ } from "./chunk-R3GARAVJ.js";
181
+ import {
182
+ submitButton_default
183
+ } from "./chunk-5MMHFGWQ.js";
181
184
  export {
182
185
  APP_THEMES,
183
186
  activateUserIcon_default as ActivateUserIcon,
@@ -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
@@ -24,7 +24,7 @@
24
24
  line-height: 1.75;
25
25
  }
26
26
  .btn:disabled {
27
- background-color: #e0e0e0;
27
+ background-color: #e0e0e0 !important;
28
28
  cursor: not-allowed;
29
29
  }
30
30
  .cancel-btn {
@@ -63,7 +63,7 @@
63
63
  background-color: #9b1906;
64
64
  }
65
65
  .add-btn {
66
- min-width: 64px;
66
+ min-width: fit-content;
67
67
  padding: 7px 10px;
68
68
  font-size: 14px;
69
69
  border: 1px solid #a41b06;
@@ -24,7 +24,7 @@
24
24
  line-height: 1.75;
25
25
  }
26
26
  .btn:disabled {
27
- background-color: #e0e0e0;
27
+ background-color: #e0e0e0 !important;
28
28
  cursor: not-allowed;
29
29
  }
30
30
  .cancel-btn {
@@ -63,7 +63,7 @@
63
63
  background-color: #9b1906;
64
64
  }
65
65
  .add-btn {
66
- min-width: 64px;
66
+ min-width: fit-content;
67
67
  padding: 7px 10px;
68
68
  font-size: 14px;
69
69
  border: 1px solid #a41b06;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rufous/ui",
3
3
  "private": false,
4
- "version": "0.1.34",
4
+ "version": "0.1.36",
5
5
  "type": "module",
6
6
  "style": "./dist/style.css",
7
7
  "files": [
File without changes