@oliasoft-open-source/react-ui-library 4.16.1-beta-1 → 4.16.1-beta-3
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.
- package/README.md +5 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ To quickly start a new project using the React UI Library with Vite, you can use
|
|
|
37
37
|
```bash
|
|
38
38
|
cd my-new-project
|
|
39
39
|
```
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
3. **Install React UI Library: Add the React UI Library to your project:**
|
|
42
42
|
|
|
43
43
|
```bash
|
|
@@ -48,13 +48,13 @@ To quickly start a new project using the React UI Library with Vite, you can use
|
|
|
48
48
|
```bash
|
|
49
49
|
yarn add @oliasoft-open-source/react-ui-library
|
|
50
50
|
```
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
4. **Modify the Sample Page:** Open the src/App.jsx file and import a component from the React UI Library to use it:
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
55
|
import React from 'react';
|
|
56
56
|
import { Text } from '@oliasoft-open-source/react-ui-library';
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
function App() {
|
|
59
59
|
return (
|
|
60
60
|
<div className="App">
|
|
@@ -62,7 +62,7 @@ To quickly start a new project using the React UI Library with Vite, you can use
|
|
|
62
62
|
</div>
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
|
|
66
66
|
export default App;
|
|
67
67
|
```
|
|
68
68
|
|
|
@@ -358,6 +358,7 @@ The `Button` component is a versatile interface element that supports various st
|
|
|
358
358
|
| `disabled` | If true, disables the button. | `false` |
|
|
359
359
|
| `groupOrder` | Specifies the button's position in a group (e.g., start, middle, end). | None (optional) |
|
|
360
360
|
| `icon` | An icon to be displayed on the button. Deprecated in favor of using `label`. | None (optional) |
|
|
361
|
+
| `ignoreDisabledContext` | Allows the button to be enabled even when inside `DisabledContext`. | `false` |
|
|
361
362
|
| `label` | The content of the button, which can be text or a ReactNode. | None (optional) |
|
|
362
363
|
| `loading` | Shows an activity indicator, suggesting that an action is in progress. | `false` |
|
|
363
364
|
| `name` | The name of the button, which can be used in forms. | None (optional) |
|
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare enum BreadcrumbLinkType {
|
|
|
43
43
|
CUSTOM = "custom"
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, component: Component, url, }: IButtonProps) => JSX_2.Element;
|
|
46
|
+
export declare const Button: ({ active, basic, colored, disabled, ignoreDisabledContext, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, component: Component, url, }: IButtonProps) => JSX_2.Element;
|
|
47
47
|
|
|
48
48
|
export declare const ButtonGroup: (props: IButtonGroupProps) => JSX_2.Element;
|
|
49
49
|
|
|
@@ -206,6 +206,7 @@ export declare interface IButtonProps {
|
|
|
206
206
|
basic?: boolean;
|
|
207
207
|
colored?: boolean | string;
|
|
208
208
|
disabled?: boolean;
|
|
209
|
+
ignoreDisabledContext?: boolean;
|
|
209
210
|
groupOrder?: string | null;
|
|
210
211
|
icon?: ReactNode | string;
|
|
211
212
|
label?: ReactNode | string | null;
|
package/dist/index.js
CHANGED
|
@@ -4077,7 +4077,8 @@ const Button$1 = ({
|
|
|
4077
4077
|
active: active2 = false,
|
|
4078
4078
|
basic: basic2 = false,
|
|
4079
4079
|
colored: colored2 = false,
|
|
4080
|
-
disabled: disabled2,
|
|
4080
|
+
disabled: disabled2 = false,
|
|
4081
|
+
ignoreDisabledContext = false,
|
|
4081
4082
|
groupOrder = null,
|
|
4082
4083
|
icon: icon2 = null,
|
|
4083
4084
|
label: label2 = "",
|
|
@@ -4133,7 +4134,7 @@ const Button$1 = ({
|
|
|
4133
4134
|
}
|
|
4134
4135
|
return "";
|
|
4135
4136
|
})();
|
|
4136
|
-
const isDisabled = disabled2 || disabledContext &&
|
|
4137
|
+
const isDisabled = disabled2 || disabledContext && !ignoreDisabledContext;
|
|
4137
4138
|
return /* @__PURE__ */ jsx(ButtonTooltipWrapper, { tooltip: tooltip2, children: /* @__PURE__ */ jsxs(
|
|
4138
4139
|
Component2,
|
|
4139
4140
|
{
|
|
@@ -6690,7 +6691,7 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6690
6691
|
colored: "muted",
|
|
6691
6692
|
onClick: onClose,
|
|
6692
6693
|
testId: testId && `${testId}-dismiss`,
|
|
6693
|
-
|
|
6694
|
+
ignoreDisabledContext: true
|
|
6694
6695
|
}
|
|
6695
6696
|
) }) : null
|
|
6696
6697
|
] }),
|