no-frills-ui 0.0.14-alpha.10 → 0.0.14-alpha.11
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/dist/index.js +9 -14
- package/dist/index.js.map +1 -1
- package/lib-esm/components/Card/Card.js +1 -1
- package/lib-esm/components/Card/Card.js.map +1 -1
- package/lib-esm/components/ChipInput/ChipInput.d.ts +3 -3
- package/lib-esm/components/ChipInput/ChipInput.js +3 -3
- package/lib-esm/components/ChipInput/ChipInput.js.map +1 -1
- package/lib-esm/components/Modal/Modal.js +1 -5
- package/lib-esm/components/Modal/Modal.js.map +1 -1
- package/lib-esm/components/Tabs/Tabs.d.ts +1 -1
- package/lib-esm/components/Tabs/Tabs.js +4 -5
- package/lib-esm/components/Tabs/Tabs.js.map +1 -1
- package/lib-esm/index.js +43 -0
- package/package.json +9 -9
- package/lib-esm/components/index.js +0 -43
- /package/lib-esm/{components/index.js.map → index.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -292,7 +292,7 @@ function BadgeComponent(props, ref) {
|
|
|
292
292
|
const Badge = /*#__PURE__*/ React.forwardRef(BadgeComponent);
|
|
293
293
|
|
|
294
294
|
const StyledCard = /*#__PURE__*/ styled("div", {
|
|
295
|
-
target: "
|
|
295
|
+
target: "e1ex140c0",
|
|
296
296
|
label: "StyledCard"
|
|
297
297
|
})("border-radius:10px;background-color:", getThemeValue(THEME_NAME.BACKGROUND), ";", (props)=>props.elevated ? `box-shadow: ${getThemeValue(THEME_NAME.MODAL_SHADOW)};` : `box-shadow: ${getThemeValue(THEME_NAME.SHADOW)};`, " margin:5px;overflow:auto;position:relative;");
|
|
298
298
|
function CardComponent(props, ref) {
|
|
@@ -909,7 +909,7 @@ const DragAndDrop = /*#__PURE__*/ React.forwardRef(DragAndDropComponent);
|
|
|
909
909
|
|
|
910
910
|
// Label component for the ChipInput
|
|
911
911
|
const Label$6 = /*#__PURE__*/ styled("label", {
|
|
912
|
-
target: "
|
|
912
|
+
target: "e17bg7n50",
|
|
913
913
|
label: "Label"
|
|
914
914
|
})("display:inline-flex;flex-direction:column;flex:1;position:relative;margin:10px 5px;color:inherit;padding:0 8px;width:250px;border-radius:3px;border:1px solid ", getThemeValue(THEME_NAME.BORDER_COLOR), ";background-color:", getThemeValue(THEME_NAME.BACKGROUND), ";&:has(:focus),&:has(:active){border-color:", getThemeValue(THEME_NAME.PRIMARY), ";box-shadow:0 0 0 4px ", getThemeValue(THEME_NAME.PRIMARY_LIGHT), ";}&:has(:focus) > span,&:has(:active) > span{color:", getThemeValue(THEME_NAME.PRIMARY), ";}&:has(:disabled){border-color:", getThemeValue(THEME_NAME.DISABLED_BORDER), ";background-color:", getThemeValue(THEME_NAME.DISABLED_BACKGROUND), ";}&:has(:disabled) > span{color:", getThemeValue(THEME_NAME.DISABLED), ";}&:has(:focus:invalid){border-color:", getThemeValue(THEME_NAME.ERROR), ";box-shadow:0 0 0 4px ", getThemeValue(THEME_NAME.ERROR_LIGHT), ";}", (props)=>props.touched ? `
|
|
915
915
|
&:has(:invalid) {
|
|
@@ -939,12 +939,12 @@ const Label$6 = /*#__PURE__*/ styled("label", {
|
|
|
939
939
|
` : '');
|
|
940
940
|
// Error message container
|
|
941
941
|
const ErrorContainer$4 = /*#__PURE__*/ styled("div", {
|
|
942
|
-
target: "
|
|
942
|
+
target: "e17bg7n51",
|
|
943
943
|
label: "ErrorContainer"
|
|
944
944
|
})("color:", getThemeValue(THEME_NAME.ERROR), ";padding-top:3px;font-size:12px;line-height:14px;margin-left:3px;");
|
|
945
945
|
// Visually hidden but accessible to screen readers
|
|
946
946
|
const VisuallyHidden$1 = /*#__PURE__*/ styled("ul", {
|
|
947
|
-
target: "
|
|
947
|
+
target: "e17bg7n52",
|
|
948
948
|
label: "VisuallyHidden"
|
|
949
949
|
})("position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;& li{list-style:none;}");
|
|
950
950
|
/**
|
|
@@ -3035,11 +3035,7 @@ class Modal extends React.Component {
|
|
|
3035
3035
|
this.setInitialFocus(node);
|
|
3036
3036
|
}
|
|
3037
3037
|
if (this.props.forwardRef) {
|
|
3038
|
-
|
|
3039
|
-
this.props.forwardRef.current = node;
|
|
3040
|
-
} catch (e) {
|
|
3041
|
-
console.warn(e);
|
|
3042
|
-
}
|
|
3038
|
+
this.props.forwardRef.current = node;
|
|
3043
3039
|
}
|
|
3044
3040
|
}, /**
|
|
3045
3041
|
* Sets initial focus within the modal.
|
|
@@ -3615,21 +3611,20 @@ function StepComponent(props, ref) {
|
|
|
3615
3611
|
const Step = /*#__PURE__*/ React.forwardRef(StepComponent);
|
|
3616
3612
|
|
|
3617
3613
|
const Button = /*#__PURE__*/ styled("button", {
|
|
3618
|
-
target: "
|
|
3614
|
+
target: "e132lwyw0",
|
|
3619
3615
|
label: "Button"
|
|
3620
3616
|
})("background-color:transparent;border:none;padding:8px 12px;font-size:14px;border-radius:3px 3px 0 0;border-bottom:", (props)=>props.active ? `3px solid ${getThemeValue(THEME_NAME.PRIMARY)}` : 'none', ";color:", (props)=>props.active ? getThemeValue(THEME_NAME.PRIMARY) : getThemeValue(THEME_NAME.TEXT_COLOR_DARK), ";cursor:pointer;&:hover,&:focus{background-color:", getThemeValue(THEME_NAME.PRIMARY_LIGHTER), ";border-bottom:", (props)=>props.active ? `3px solid ${getThemeValue(THEME_NAME.PRIMARY)}` : `3px solid ${getThemeValue(THEME_NAME.PRIMARY)}`, ";}&[disabled]{background-color:", getThemeValue(THEME_NAME.DISABLED_BACKGROUND), ";color:", getThemeValue(THEME_NAME.DISABLED), ";border-bottom:3px solid ", getThemeValue(THEME_NAME.DISABLED_BORDER), ";}");
|
|
3621
3617
|
const ButtonContainer = /*#__PURE__*/ styled("div", {
|
|
3622
|
-
target: "
|
|
3618
|
+
target: "e132lwyw1",
|
|
3623
3619
|
label: "ButtonContainer"
|
|
3624
3620
|
})("border-bottom:1px solid ", getThemeValue(THEME_NAME.DISABLED_BORDER), ";margin-bottom:5px;position:relative;");
|
|
3625
3621
|
const TabBody = /*#__PURE__*/ styled("div", {
|
|
3626
|
-
target: "
|
|
3622
|
+
target: "e132lwyw2",
|
|
3627
3623
|
label: "TabBody"
|
|
3628
3624
|
})("min-height:150px;");
|
|
3629
3625
|
function TabsComponent(props, ref) {
|
|
3630
|
-
const { active: propsActive = 0, onChange, bodyProps, ...rest } = props;
|
|
3626
|
+
const { active: propsActive = 0, onChange, bodyProps, children, ...rest } = props;
|
|
3631
3627
|
const [active, setActive] = React.useState(propsActive);
|
|
3632
|
-
const { children } = props;
|
|
3633
3628
|
const tabRefs = [];
|
|
3634
3629
|
const childrenArray = React.Children.toArray(children);
|
|
3635
3630
|
const switchTab = (index)=>()=>{
|