ncore-ui-kit 1.0.0-pre-alpha.56 → 1.0.0-pre-alpha.58
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/lib/module/components/highlightButton/index.js +146 -0
- package/lib/module/components/highlightButton/index.js.map +1 -0
- package/lib/module/components/highlightButton/stylesheet.js +208 -0
- package/lib/module/components/highlightButton/stylesheet.js.map +1 -0
- package/lib/module/components/highlightButton/type.js +4 -0
- package/lib/module/components/highlightButton/type.js.map +1 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -1
- package/lib/module/variants/themes/default.json +78 -24
- package/lib/package.json +1 -1
- package/lib/src/components/highlightButton/index.js +106 -0
- package/lib/src/components/highlightButton/stylesheet.js +184 -0
- package/lib/src/components/highlightButton/type.js +2 -0
- package/lib/src/components/index.js +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/variants/themes/default.json +78 -24
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/package.json +1 -1
- package/lib/typescript/src/components/highlightButton/index.d.ts +10 -0
- package/lib/typescript/src/components/highlightButton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/highlightButton/stylesheet.d.ts +43 -0
- package/lib/typescript/src/components/highlightButton/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/highlightButton/type.d.ts +79 -0
- package/lib/typescript/src/components/highlightButton/type.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +3 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/variants/themes/default.json +78 -24
- package/package.json +1 -1
- package/src/components/highlightButton/index.tsx +191 -0
- package/src/components/highlightButton/stylesheet.ts +258 -0
- package/src/components/highlightButton/type.ts +100 -0
- package/src/components/index.ts +4 -0
- package/src/index.tsx +1 -0
- package/src/types/index.ts +5 -0
- package/src/variants/themes/default.json +78 -24
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { TouchableOpacity, View } from "react-native";
|
|
4
|
+
import stylesheet, { getHighlightButtonSize, getHighlightButtonType, useStyles } from "./stylesheet.js";
|
|
5
|
+
import { NCoreUIKitTheme } from "../../core/hooks.js";
|
|
6
|
+
import Loading from "../loading/index.js";
|
|
7
|
+
import Text from "../text/index.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A generic button
|
|
11
|
+
* @param props {@link IHighlightButtonProps}
|
|
12
|
+
* @returns Element
|
|
13
|
+
*/
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const HighlightButton = ({
|
|
16
|
+
displayBehaviourWhileLoading = "disabled",
|
|
17
|
+
spreadBehaviour = "baseline",
|
|
18
|
+
isCustomPadding = false,
|
|
19
|
+
icon: IconComponentProp,
|
|
20
|
+
iconDirection = "left",
|
|
21
|
+
isDisabled = false,
|
|
22
|
+
customBorderColor,
|
|
23
|
+
customIconColor,
|
|
24
|
+
customTextColor,
|
|
25
|
+
glassEffect = 5,
|
|
26
|
+
size = "medium",
|
|
27
|
+
type = "glass",
|
|
28
|
+
renderLoading,
|
|
29
|
+
customColor,
|
|
30
|
+
customTheme,
|
|
31
|
+
titleStyle,
|
|
32
|
+
isLoading,
|
|
33
|
+
onPress,
|
|
34
|
+
title,
|
|
35
|
+
style,
|
|
36
|
+
...props
|
|
37
|
+
}) => {
|
|
38
|
+
const {
|
|
39
|
+
typography,
|
|
40
|
+
radiuses,
|
|
41
|
+
borders,
|
|
42
|
+
colors,
|
|
43
|
+
spaces
|
|
44
|
+
} = NCoreUIKitTheme.useContext(customTheme);
|
|
45
|
+
const currentSize = getHighlightButtonSize({
|
|
46
|
+
spaces,
|
|
47
|
+
size
|
|
48
|
+
});
|
|
49
|
+
const currentType = getHighlightButtonType({
|
|
50
|
+
type
|
|
51
|
+
});
|
|
52
|
+
const {
|
|
53
|
+
container: containerDynamicStyle,
|
|
54
|
+
loading: loadingDynamicStyle,
|
|
55
|
+
overlay: overlayDynamicStyle,
|
|
56
|
+
title: titleDynamicStyle
|
|
57
|
+
} = useStyles({
|
|
58
|
+
displayBehaviourWhileLoading,
|
|
59
|
+
icon: IconComponentProp,
|
|
60
|
+
customBorderColor,
|
|
61
|
+
isCustomPadding,
|
|
62
|
+
spreadBehaviour,
|
|
63
|
+
iconDirection,
|
|
64
|
+
glassEffect,
|
|
65
|
+
currentType,
|
|
66
|
+
currentSize,
|
|
67
|
+
customColor,
|
|
68
|
+
isDisabled,
|
|
69
|
+
isLoading,
|
|
70
|
+
radiuses,
|
|
71
|
+
borders,
|
|
72
|
+
colors,
|
|
73
|
+
spaces,
|
|
74
|
+
title,
|
|
75
|
+
type
|
|
76
|
+
});
|
|
77
|
+
const titleProps = {
|
|
78
|
+
color: currentType.titleColor
|
|
79
|
+
};
|
|
80
|
+
const iconProps = {
|
|
81
|
+
size: Number(typography[currentSize.fontSize].fontSize),
|
|
82
|
+
color: currentType.iconColor
|
|
83
|
+
};
|
|
84
|
+
if (isDisabled || isLoading) {
|
|
85
|
+
const stateType = type === "danger" ? "error" : type === "glass" ? "neutral" : type;
|
|
86
|
+
titleProps.customColor = colors.system.state.content.disabled[stateType];
|
|
87
|
+
iconProps.customColor = colors.system.state.content.disabled[stateType];
|
|
88
|
+
}
|
|
89
|
+
const renderIcon = () => {
|
|
90
|
+
if (!isDisabled && !isLoading) {
|
|
91
|
+
if (customTextColor) {
|
|
92
|
+
const _customTextColor = customTextColor;
|
|
93
|
+
iconProps.customColor = colors.project[_customTextColor] ? colors.project[_customTextColor] : customTextColor;
|
|
94
|
+
}
|
|
95
|
+
if (customIconColor) {
|
|
96
|
+
const _customIconColor = customIconColor;
|
|
97
|
+
iconProps.customColor = colors.project[_customIconColor] ? colors.project[_customIconColor] : customIconColor;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (isLoading) {
|
|
101
|
+
if (renderLoading) {
|
|
102
|
+
return renderLoading();
|
|
103
|
+
}
|
|
104
|
+
return /*#__PURE__*/_jsx(Loading, {
|
|
105
|
+
...iconProps,
|
|
106
|
+
style: [loadingDynamicStyle]
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
if (!IconComponentProp) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
return /*#__PURE__*/_jsx(IconComponentProp, {
|
|
113
|
+
...iconProps
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const renderTitle = () => {
|
|
117
|
+
if (!title) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
if (!isDisabled && !isLoading) {
|
|
121
|
+
if (customTextColor) {
|
|
122
|
+
titleProps.customColor = customTextColor;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
126
|
+
variant: currentSize.fontSize,
|
|
127
|
+
style: [titleStyle, stylesheet.title, titleDynamicStyle],
|
|
128
|
+
...titleProps,
|
|
129
|
+
children: title
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
const renderOverlay = () => {
|
|
133
|
+
return /*#__PURE__*/_jsx(View, {
|
|
134
|
+
style: [stylesheet.loading, stylesheet.overlay, overlayDynamicStyle]
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
138
|
+
...props,
|
|
139
|
+
onPress: isDisabled || isLoading ? () => null : onPress,
|
|
140
|
+
disabled: isDisabled || isLoading,
|
|
141
|
+
style: [style, stylesheet.container, containerDynamicStyle],
|
|
142
|
+
children: [renderIcon(), renderTitle(), renderOverlay()]
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
export default HighlightButton;
|
|
146
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TouchableOpacity","View","stylesheet","getHighlightButtonSize","getHighlightButtonType","useStyles","NCoreUIKitTheme","Loading","Text","jsx","_jsx","jsxs","_jsxs","HighlightButton","displayBehaviourWhileLoading","spreadBehaviour","isCustomPadding","icon","IconComponentProp","iconDirection","isDisabled","customBorderColor","customIconColor","customTextColor","glassEffect","size","type","renderLoading","customColor","customTheme","titleStyle","isLoading","onPress","title","style","props","typography","radiuses","borders","colors","spaces","useContext","currentSize","currentType","container","containerDynamicStyle","loading","loadingDynamicStyle","overlay","overlayDynamicStyle","titleDynamicStyle","titleProps","color","titleColor","iconProps","Number","fontSize","iconColor","stateType","system","state","content","disabled","renderIcon","_customTextColor","project","_customIconColor","renderTitle","variant","children","renderOverlay"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/highlightButton/index.tsx"],"mappings":";;AAGA,SACIA,gBAAgB,EAChBC,IAAI,QACD,cAAc;AAErB,OAAOC,UAAU,IACbC,sBAAsB,EACtBC,sBAAsB,EACtBC,SAAS,QACN,iBAAc;AACrB,SACIC,eAAe,QACZ,qBAAkB;AAEzB,OAAOC,OAAO,MAAM,qBAAY;AAChC,OAAOC,IAAI,MAAM,kBAAS;;AAE1B;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKA,MAAMC,eAA0C,GAAGA,CAAC;EAChDC,4BAA4B,GAAG,UAAU;EACzCC,eAAe,GAAG,UAAU;EAC5BC,eAAe,GAAG,KAAK;EACvBC,IAAI,EAAEC,iBAAiB;EACvBC,aAAa,GAAG,MAAM;EACtBC,UAAU,GAAG,KAAK;EAClBC,iBAAiB;EACjBC,eAAe;EACfC,eAAe;EACfC,WAAW,GAAG,CAAC;EACfC,IAAI,GAAG,QAAQ;EACfC,IAAI,GAAG,OAAO;EACdC,aAAa;EACbC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,eAAe;MAC5C;IACJ;IAEA,oBAAOb,IAAA,CAACF,IAAI;MACR4D,OAAO,EAAE1B,WAAW,CAACc,QAAS;MAC9BtB,KAAK,EAAE,CACHJ,UAAU,EACV5B,UAAU,CAAC+B,KAAK,EAChBiB,iBAAiB,CACnB;MAAA,GACEC,UAAU;MAAAkB,QAAA,EAEbpC;IAAK,CACJ,CAAC;EACX,CAAC;EAED,MAAMqC,aAAa,GAAGA,CAAA,KAAM;IACxB,oBAAO5D,IAAA,CAACT,IAAI;MACRiC,KAAK,EAAE,CACHhC,UAAU,CAAC4C,OAAO,EAClB5C,UAAU,CAAC8C,OAAO,EAClBC,mBAAmB;IACrB,CACL,CAAC;EACN,CAAC;EAED,oBAAOrC,KAAA,CAACZ,gBAAgB;IAAA,GAChBmC,KAAK;IACTH,OAAO,EAAEZ,UAAU,IAAIW,SAAS,GAAG,MAAM,IAAI,GAAGC,OAAQ;IACxD8B,QAAQ,EAAE1C,UAAU,IAAIW,SAAU;IAClCG,KAAK,EAAE,CACHA,KAAK,EACLhC,UAAU,CAAC0C,SAAS,EACpBC,qBAAqB,CACvB;IAAAwB,QAAA,GAEDN,UAAU,CAAC,CAAC,EACZI,WAAW,CAAC,CAAC,EAEbG,aAAa,CAAC,CAAC;EAAA,CACF,CAAC;AACvB,CAAC;AACD,eAAezD,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
import { webStyle } from "../../utils/index.js";
|
|
5
|
+
export const BUTTON_SIZES = {
|
|
6
|
+
small: {
|
|
7
|
+
paddingHorizontal: "spacingMd",
|
|
8
|
+
paddingVertical: "spacingXs",
|
|
9
|
+
fontSize: "labelSmallSize"
|
|
10
|
+
},
|
|
11
|
+
medium: {
|
|
12
|
+
paddingHorizontal: "spacingLg",
|
|
13
|
+
paddingVertical: "spacingSm",
|
|
14
|
+
fontSize: "labelMediumSize"
|
|
15
|
+
},
|
|
16
|
+
large: {
|
|
17
|
+
paddingHorizontal: "spacingXl",
|
|
18
|
+
paddingVertical: "spacingMd",
|
|
19
|
+
fontSize: "labelLargeSize"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export const BUTTON_TYPE_STYLES = {
|
|
23
|
+
glass: {
|
|
24
|
+
titleColor: "constrastHigh",
|
|
25
|
+
iconColor: "constrastHigh",
|
|
26
|
+
containerColor: "neutral",
|
|
27
|
+
borderColor: "subtle"
|
|
28
|
+
},
|
|
29
|
+
primary: {
|
|
30
|
+
containerColor: "primary",
|
|
31
|
+
borderColor: "onPrimary",
|
|
32
|
+
titleColor: "onPrimary",
|
|
33
|
+
iconColor: "onPrimary"
|
|
34
|
+
},
|
|
35
|
+
danger: {
|
|
36
|
+
containerColor: "error",
|
|
37
|
+
borderColor: "danger",
|
|
38
|
+
titleColor: "danger",
|
|
39
|
+
iconColor: "danger"
|
|
40
|
+
},
|
|
41
|
+
success: {
|
|
42
|
+
containerColor: "success",
|
|
43
|
+
borderColor: "success",
|
|
44
|
+
titleColor: "success",
|
|
45
|
+
iconColor: "success"
|
|
46
|
+
},
|
|
47
|
+
warning: {
|
|
48
|
+
containerColor: "warning",
|
|
49
|
+
borderColor: "warning",
|
|
50
|
+
titleColor: "warning",
|
|
51
|
+
iconColor: "warning"
|
|
52
|
+
},
|
|
53
|
+
info: {
|
|
54
|
+
containerColor: "info",
|
|
55
|
+
borderColor: "info",
|
|
56
|
+
titleColor: "info",
|
|
57
|
+
iconColor: "info"
|
|
58
|
+
},
|
|
59
|
+
neutral: {
|
|
60
|
+
containerColor: "neutral",
|
|
61
|
+
borderColor: "subtle",
|
|
62
|
+
titleColor: "mid",
|
|
63
|
+
iconColor: "mid"
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export const getHighlightButtonType = ({
|
|
67
|
+
type
|
|
68
|
+
}) => {
|
|
69
|
+
const currentType = BUTTON_TYPE_STYLES[type];
|
|
70
|
+
return currentType;
|
|
71
|
+
};
|
|
72
|
+
export const getHighlightButtonSize = ({
|
|
73
|
+
spaces,
|
|
74
|
+
size
|
|
75
|
+
}) => {
|
|
76
|
+
const currentSize = BUTTON_SIZES[size];
|
|
77
|
+
return {
|
|
78
|
+
paddingHorizontal: spaces[currentSize.paddingHorizontal],
|
|
79
|
+
paddingVertical: spaces[currentSize.paddingVertical],
|
|
80
|
+
fontSize: currentSize.fontSize
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
const stylesheet = StyleSheet.create({
|
|
84
|
+
container: {
|
|
85
|
+
backgroundColor: "transparent",
|
|
86
|
+
borderColor: "transparent",
|
|
87
|
+
flexDirection: "row",
|
|
88
|
+
borderStyle: "solid",
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
position: "relative",
|
|
91
|
+
display: "flex"
|
|
92
|
+
},
|
|
93
|
+
title: {
|
|
94
|
+
margin: "0"
|
|
95
|
+
},
|
|
96
|
+
loading: {},
|
|
97
|
+
overlay: {
|
|
98
|
+
position: "absolute",
|
|
99
|
+
display: "none",
|
|
100
|
+
bottom: 0,
|
|
101
|
+
right: 0,
|
|
102
|
+
left: 0,
|
|
103
|
+
top: 0
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
export const useStyles = ({
|
|
107
|
+
displayBehaviourWhileLoading,
|
|
108
|
+
customBorderColor,
|
|
109
|
+
spreadBehaviour,
|
|
110
|
+
isCustomPadding,
|
|
111
|
+
iconDirection,
|
|
112
|
+
glassEffect,
|
|
113
|
+
currentType,
|
|
114
|
+
currentSize,
|
|
115
|
+
customColor,
|
|
116
|
+
isDisabled,
|
|
117
|
+
isLoading,
|
|
118
|
+
radiuses,
|
|
119
|
+
borders,
|
|
120
|
+
colors,
|
|
121
|
+
spaces,
|
|
122
|
+
title,
|
|
123
|
+
icon,
|
|
124
|
+
type
|
|
125
|
+
}) => {
|
|
126
|
+
const styleType = type === "danger" ? "error" : type === "glass" ? "neutral" : type;
|
|
127
|
+
const styles = {
|
|
128
|
+
container: {
|
|
129
|
+
backgroundColor: colors.system.low[currentType.containerColor],
|
|
130
|
+
borderColor: colors.content.border[currentType.borderColor],
|
|
131
|
+
paddingRight: currentSize.paddingHorizontal,
|
|
132
|
+
paddingBottom: currentSize.paddingVertical,
|
|
133
|
+
paddingLeft: currentSize.paddingHorizontal,
|
|
134
|
+
paddingTop: currentSize.paddingVertical,
|
|
135
|
+
borderRadius: radiuses.actions,
|
|
136
|
+
borderWidth: borders.line / 4,
|
|
137
|
+
...webStyle({
|
|
138
|
+
boxShadow: `inset 0 0px 0.5px ${currentType.borderColor}, inset 0 -2px 6px ${currentType.borderColor}, 0 10px 30px ${currentType.borderColor}`,
|
|
139
|
+
WebkitBackdropFilter: `blur(${glassEffect}px) saturate(180%) brightness(1.1)`,
|
|
140
|
+
backdropFilter: `blur(${glassEffect}px) saturate(180%) brightness(1.1)`
|
|
141
|
+
})
|
|
142
|
+
},
|
|
143
|
+
title: {},
|
|
144
|
+
loading: {},
|
|
145
|
+
overlay: {
|
|
146
|
+
borderRadius: radiuses.actions - 2
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
if (isLoading) {
|
|
150
|
+
styles.title.marginLeft = spaces.spacingSm;
|
|
151
|
+
styles.overlay.display = "flex";
|
|
152
|
+
if (displayBehaviourWhileLoading === "disabled") {
|
|
153
|
+
styles.overlay.backgroundColor = colors.system.state.overlay.disabled[styleType];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (isLoading && spreadBehaviour === "stretch") {
|
|
157
|
+
styles.title.marginLeft = spaces.spacingSm;
|
|
158
|
+
styles.title.margin = "initial";
|
|
159
|
+
}
|
|
160
|
+
if (icon && !isLoading) {
|
|
161
|
+
styles.title.marginLeft = spaces.spacingSm;
|
|
162
|
+
styles.title.margin = "initial";
|
|
163
|
+
}
|
|
164
|
+
if (spreadBehaviour === "baseline") {
|
|
165
|
+
styles.container.alignSelf = spreadBehaviour;
|
|
166
|
+
styles.container.width = "auto";
|
|
167
|
+
} else if (spreadBehaviour === "stretch") {
|
|
168
|
+
styles.container.alignSelf = spreadBehaviour;
|
|
169
|
+
styles.container.justifyContent = "center";
|
|
170
|
+
styles.container.flexShrink = 1;
|
|
171
|
+
styles.container.width = "100%";
|
|
172
|
+
}
|
|
173
|
+
if (isDisabled) {
|
|
174
|
+
styles.overlay.backgroundColor = colors.system.state.overlay.disabled[styleType];
|
|
175
|
+
}
|
|
176
|
+
if (icon && title) {
|
|
177
|
+
if (iconDirection === "left") {
|
|
178
|
+
styles.title.marginLeft = spaces.spacingSm;
|
|
179
|
+
} else {
|
|
180
|
+
styles.title.marginRight = spaces.spacingSm;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (icon && !title) {
|
|
184
|
+
styles.container.paddingBottom = currentSize.paddingVertical;
|
|
185
|
+
styles.container.paddingRight = currentSize.paddingVertical;
|
|
186
|
+
styles.container.paddingLeft = currentSize.paddingVertical;
|
|
187
|
+
styles.container.paddingTop = currentSize.paddingVertical;
|
|
188
|
+
}
|
|
189
|
+
if (isCustomPadding) {
|
|
190
|
+
delete styles.container.paddingBottom;
|
|
191
|
+
delete styles.container.paddingRight;
|
|
192
|
+
delete styles.container.paddingLeft;
|
|
193
|
+
delete styles.container.paddingTop;
|
|
194
|
+
}
|
|
195
|
+
if (customColor) {
|
|
196
|
+
const _customContainerColor = customColor;
|
|
197
|
+
const _customColor = customColor;
|
|
198
|
+
styles.container.backgroundColor = colors.project[_customColor] ? colors.project[_customColor] : colors.content.container[_customContainerColor] ? colors.content.container[_customContainerColor] : customColor;
|
|
199
|
+
}
|
|
200
|
+
if (customBorderColor) {
|
|
201
|
+
const _customContentBorderColor = customBorderColor;
|
|
202
|
+
const _customBorderColor = customBorderColor;
|
|
203
|
+
styles.container.borderColor = colors.project[_customBorderColor] ? colors.project[_customBorderColor] : colors.content.border[_customContentBorderColor] ? colors.content.border[_customContentBorderColor] : customBorderColor;
|
|
204
|
+
}
|
|
205
|
+
return styles;
|
|
206
|
+
};
|
|
207
|
+
export default stylesheet;
|
|
208
|
+
//# sourceMappingURL=stylesheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","webStyle","BUTTON_SIZES","small","paddingHorizontal","paddingVertical","fontSize","medium","large","BUTTON_TYPE_STYLES","glass","titleColor","iconColor","containerColor","borderColor","primary","danger","success","warning","info","neutral","getHighlightButtonType","type","currentType","getHighlightButtonSize","spaces","size","currentSize","stylesheet","create","container","backgroundColor","flexDirection","borderStyle","alignItems","position","display","title","margin","loading","overlay","bottom","right","left","top","useStyles","displayBehaviourWhileLoading","customBorderColor","spreadBehaviour","isCustomPadding","iconDirection","glassEffect","customColor","isDisabled","isLoading","radiuses","borders","colors","icon","styleType","styles","system","low","content","border","paddingRight","paddingBottom","paddingLeft","paddingTop","borderRadius","actions","borderWidth","line","boxShadow","WebkitBackdropFilter","backdropFilter","marginLeft","spacingSm","state","disabled","alignSelf","width","justifyContent","flexShrink","marginRight","_customContainerColor","_customColor","project","_customContentBorderColor","_customBorderColor"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/highlightButton/stylesheet.ts"],"mappings":";;AAAA,SAGIA,UAAU,QACP,cAAc;AAcrB,SACIC,QAAQ,QACL,sBAAa;AAEpB,OAAO,MAAMC,YAAsE,GAAG;EAClFC,KAAK,EAAE;IACHC,iBAAiB,EAAE,WAAW;IAC9BC,eAAe,EAAE,WAAW;IAC5BC,QAAQ,EAAE;EACd,CAAC;EACDC,MAAM,EAAE;IACJH,iBAAiB,EAAE,WAAW;IAC9BC,eAAe,EAAE,WAAW;IAC5BC,QAAQ,EAAE;EACd,CAAC;EACDE,KAAK,EAAE;IACHJ,iBAAiB,EAAE,WAAW;IAC9BC,eAAe,EAAE,WAAW;IAC5BC,QAAQ,EAAE;EACd;AACJ,CAAC;AAED,OAAO,MAAMG,kBAQZ,GAAG;EACAC,KAAK,EAAE;IACHC,UAAU,EAAE,eAAe;IAC3BC,SAAS,EAA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A,IAAG4C,eAAe,EAAE;IAChB,OAAOW,MAAM,CAAC9B,SAAS,CAACoC,aAAa;IACrC,OAAON,MAAM,CAAC9B,SAAS,CAACmC,YAAY;IACpC,OAAOL,MAAM,CAAC9B,SAAS,CAACqC,WAAW;IACnC,OAAOP,MAAM,CAAC9B,SAAS,CAACsC,UAAU;EACtC;EAEA,IAAGhB,WAAW,EAAE;IACZ,MAAMiC,qBAAqB,GAAGjC,WAAsD;IACpF,MAAMkC,YAAY,GAAGlC,WAAmD;IAExEQ,MAAM,CAAC9B,SAAS,CAACC,eAAe,GAAG0B,MAAM,CAAC8B,OAAO,CAACD,YAAY,CAAC,GAAG7B,MAAM,CAAC8B,OAAO,CAACD,YAAY,CAAC,GAAG7B,MAAM,CAACM,OAAO,CAACjC,SAAS,CAACuD,qBAAqB,CAAC,GAAG5B,MAAM,CAACM,OAAO,CAACjC,SAAS,CAACuD,qBAAqB,CAAC,GAAGjC,WAAW;EACpN;EAEA,IAAGL,iBAAiB,EAAE;IAClB,MAAMyC,yBAAyB,GAAGzC,iBAAyD;IAC3F,MAAM0C,kBAAkB,GAAG1C,iBAAyD;IAEpFa,MAAM,CAAC9B,SAAS,CAAChB,WAAW,GAAG2C,MAAM,CAAC8B,OAAO,CAACE,kBAAkB,CAAC,GAAGhC,MAAM,CAAC8B,OAAO,CAACE,kBAAkB,CAAC,GAAGhC,MAAM,CAACM,OAAO,CAACC,MAAM,CAACwB,yBAAyB,CAAC,GAAG/B,MAAM,CAACM,OAAO,CAACC,MAAM,CAACwB,yBAAyB,CAAC,GAAGzC,iBAAiB;EACpO;EAEA,OAAOa,MAAM;AACjB,CAAC;AACD,eAAehC,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/highlightButton/type.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -39,5 +39,6 @@ export { default as SiteLogo } from "./siteLogo/index.js";
|
|
|
39
39
|
export { default as Seperator } from "./seperator/index.js";
|
|
40
40
|
export { default as EmbeddedMenu } from "./embeddedMenu/index.js";
|
|
41
41
|
export { default as MainHeader } from "./mainHeader/index.js";
|
|
42
|
+
export { default as HighlightButton } from "./highlightButton/index.js";
|
|
42
43
|
export { blockquoteMarkdown, centerMarkdown, enterMarkdown, imageMarkdown, parseMarkdown, rightMarkdown, textMarkdown, codeMarkdown, leftMarkdown, linkMarkdown, listMarkdown } from "./markdownViewer/util.js";
|
|
43
44
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["default","Text","Button","PageContainer","Dialog","Modal","Loading","TextInput","SelectBox","BottomSheet","SelectSheet","CheckBox","Toast","SnackBar","TextAreaInput","RadioButton","RowCard","Switch","NotificationIndicator","DateTimePicker","DateTimeSheet","DateSelector","NumericInput","MarkdownViewer","StateCard","MonthSelector","TimeSelector","Sticker","Chip","Header","ThemeSwitcher","PaletteSwitcher","Avatar","AvatarGroup","Menu","MenuButton","SiteLogo","Seperator","EmbeddedMenu","MainHeader","blockquoteMarkdown","centerMarkdown","enterMarkdown","imageMarkdown","parseMarkdown","rightMarkdown","textMarkdown","codeMarkdown","leftMarkdown","linkMarkdown","listMarkdown"],"sourceRoot":"..\\..\\..\\src","sources":["components/index.ts"],"mappings":";;AAAA,SACIA,OAAO,IAAIC,IAAI,QACZ,iBAAQ;AAEf,SACID,OAAO,IAAIE,MAAM,QACd,mBAAU;AAEjB,SACIF,OAAO,IAAIG,aAAa,QACrB,0BAAiB;AAExB,SACIH,OAAO,IAAII,MAAM,QACd,mBAAU;AAMjB,SACIJ,OAAO,IAAIK,KAAK,QACb,kBAAS;AAMhB,SACIL,OAAO,IAAIM,OAAO,QACf,oBAAW;AAElB,SACIN,OAAO,IAAIO,SAAS,QACjB,sBAAa;AAMpB,SACIP,OAAO,IAAIQ,SAAS,QACjB,sBAAa;AAEpB,SACIR,OAAO,IAAIS,WAAW,QACnB,wBAAe;AAMtB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;AAErC,SACInC,OAAO,IAAIoC,QAAQ,QAChB,qBAAY;AAEnB,SACIpC,OAAO,IAAIqC,SAAS,QACjB,sBAAa;AAEpB,SACIrC,OAAO,IAAIsC,YAAY,QACpB,yBAAgB;AAEvB,SACItC,OAAO,IAAIuC,UAAU,QAClB,uBAAc;
|
|
1
|
+
{"version":3,"names":["default","Text","Button","PageContainer","Dialog","Modal","Loading","TextInput","SelectBox","BottomSheet","SelectSheet","CheckBox","Toast","SnackBar","TextAreaInput","RadioButton","RowCard","Switch","NotificationIndicator","DateTimePicker","DateTimeSheet","DateSelector","NumericInput","MarkdownViewer","StateCard","MonthSelector","TimeSelector","Sticker","Chip","Header","ThemeSwitcher","PaletteSwitcher","Avatar","AvatarGroup","Menu","MenuButton","SiteLogo","Seperator","EmbeddedMenu","MainHeader","HighlightButton","blockquoteMarkdown","centerMarkdown","enterMarkdown","imageMarkdown","parseMarkdown","rightMarkdown","textMarkdown","codeMarkdown","leftMarkdown","linkMarkdown","listMarkdown"],"sourceRoot":"..\\..\\..\\src","sources":["components/index.ts"],"mappings":";;AAAA,SACIA,OAAO,IAAIC,IAAI,QACZ,iBAAQ;AAEf,SACID,OAAO,IAAIE,MAAM,QACd,mBAAU;AAEjB,SACIF,OAAO,IAAIG,aAAa,QACrB,0BAAiB;AAExB,SACIH,OAAO,IAAII,MAAM,QACd,mBAAU;AAMjB,SACIJ,OAAO,IAAIK,KAAK,QACb,kBAAS;AAMhB,SACIL,OAAO,IAAIM,OAAO,QACf,oBAAW;AAElB,SACIN,OAAO,IAAIO,SAAS,QACjB,sBAAa;AAMpB,SACIP,OAAO,IAAIQ,SAAS,QACjB,sBAAa;AAEpB,SACIR,OAAO,IAAIS,WAAW,QACnB,wBAAe;AAMtB,SACIT,OAAO,IAAIU,WAAW,QACnB,wBAAe;AAEtB,SACIV,OAAO,IAAIW,QAAQ,QAChB,qBAAY;AAEnB,SACIX,OAAO,IAAIY,KAAK,QACb,kBAAS;AAEhB,SACIZ,OAAO,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,SACItC,OAAO,IAAIuC,UAAU,QAClB,uBAAc;AAErB,SACIvC,OAAO,IAAIwC,eAAe,QACvB,4BAAmB;AAY1B,SACIC,kBAAkB,EAClBC,cAAc,EACdC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,YAAY,QACT,0BAAuB","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export { getNCoreUIKitVersion, setupNCoreUIKit } from "./core/index.js";
|
|
4
4
|
export { NCoreUIKitEmbeddedMenu, NCoreUIKitBottomSheet, NCoreUIKitLocalize, NCoreUIKitSnackBar, NCoreUIKitDialog, NCoreUIKitModal, NCoreUIKitTheme, NCoreUIKitToast, NCoreUIKitMenu } from "./core/hooks.js";
|
|
5
|
-
export { NotificationIndicator, PaletteSwitcher, MarkdownViewer, DateTimePicker, PageContainer, DateTimeSheet, TextAreaInput, MonthSelector, ThemeSwitcher, NumericInput, TimeSelector, EmbeddedMenu, DateSelector, BottomSheet, AvatarGroup, SelectSheet, RadioButton, MenuButton, MainHeader, SelectBox, StateCard, TextInput, Seperator, SiteLogo, SnackBar, CheckBox, Sticker, RowCard, Loading, Dialog, Avatar, Switch, Button, Header, Modal, Toast, Menu, Chip, Text } from "./components/index.js";
|
|
5
|
+
export { NotificationIndicator, HighlightButton, PaletteSwitcher, MarkdownViewer, DateTimePicker, PageContainer, DateTimeSheet, TextAreaInput, MonthSelector, ThemeSwitcher, NumericInput, TimeSelector, EmbeddedMenu, DateSelector, BottomSheet, AvatarGroup, SelectSheet, RadioButton, MenuButton, MainHeader, SelectBox, StateCard, TextInput, Seperator, SiteLogo, SnackBar, CheckBox, Sticker, RowCard, Loading, Dialog, Avatar, Switch, Button, Header, Modal, Toast, Menu, Chip, Text } from "./components/index.js";
|
|
6
6
|
export { blockquoteMarkdown, centerMarkdown, enterMarkdown, imageMarkdown, parseMarkdown, rightMarkdown, codeMarkdown, leftMarkdown, linkMarkdown, listMarkdown, textMarkdown } from "./components/markdownViewer/util.js";
|
|
7
7
|
export { mergeTypographyTokens, parseRRuleConfig, mergeTypography, mergeRadiuses, mergePalettes, mergeBorders, mergeSpaces, mergeShapes, mergeTheme } from "./helpers/index.js";
|
|
8
8
|
export { NIBGATCommunityIcon, CayCoreIcon, LoadingIcon, NIBGATIcon } from "./assets/svg/index.js";
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getNCoreUIKitVersion","setupNCoreUIKit","NCoreUIKitEmbeddedMenu","NCoreUIKitBottomSheet","NCoreUIKitLocalize","NCoreUIKitSnackBar","NCoreUIKitDialog","NCoreUIKitModal","NCoreUIKitTheme","NCoreUIKitToast","NCoreUIKitMenu","NotificationIndicator","PaletteSwitcher","MarkdownViewer","DateTimePicker","PageContainer","DateTimeSheet","TextAreaInput","MonthSelector","ThemeSwitcher","NumericInput","TimeSelector","EmbeddedMenu","DateSelector","BottomSheet","AvatarGroup","SelectSheet","RadioButton","MenuButton","MainHeader","SelectBox","StateCard","TextInput","Seperator","SiteLogo","SnackBar","CheckBox","Sticker","RowCard","Loading","Dialog","Avatar","Switch","Button","Header","Modal","Toast","Menu","Chip","Text","blockquoteMarkdown","centerMarkdown","enterMarkdown","imageMarkdown","parseMarkdown","rightMarkdown","codeMarkdown","leftMarkdown","linkMarkdown","listMarkdown","textMarkdown","mergeTypographyTokens","parseRRuleConfig","mergeTypography","mergeRadiuses","mergePalettes","mergeBorders","mergeSpaces","mergeShapes","mergeTheme","NIBGATCommunityIcon","CayCoreIcon","LoadingIcon","NIBGATIcon","Portal","Host"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;AAAA,SACIA,oBAAoB,EACpBC,eAAe,QACZ,iBAAQ;AAEf,SACIC,sBAAsB,EACtBC,qBAAqB,EACrBC,kBAAkB,EAClBC,kBAAkB,EAClBC,gBAAgB,EAChBC,eAAe,EACfC,eAAe,EACfC,eAAe,EACfC,cAAc,QACX,iBAAc;AAErB,SACIC,qBAAqB,EACrBC,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,WAAW,EACXC,WAAW,EACXC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,EACVC,SAAS,EACTC,SAAS,EACTC,SAAS,EACTC,SAAS,EACTC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,OAAO,EACPC,OAAO,EACPC,OAAO,EACPC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,KAAK,EACLC,KAAK,EACLC,IAAI,EACJC,IAAI,EACJC,IAAI,QACD,uBAAc;AAmBrB,SACIC,kBAAkB,EAClBC,cAAc,EACdC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,YAAY,QACT,qCAAkC;AAEzC,SACIC,qBAAqB,EACrBC,gBAAgB,EAChBC,eAAe,EACfC,aAAa,EACbC,aAAa,EACbC,YAAY,EACZC,WAAW,EACXC,WAAW,EACXC,UAAU,QACP,oBAAW;AAElB,SACIC,mBAAmB,EACnBC,WAAW,EACXC,WAAW,EACXC,UAAU,QACP,uBAAc;AAoBrB,SACIC,MAAM,EACNC,IAAI,QACD,8BAAqB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["getNCoreUIKitVersion","setupNCoreUIKit","NCoreUIKitEmbeddedMenu","NCoreUIKitBottomSheet","NCoreUIKitLocalize","NCoreUIKitSnackBar","NCoreUIKitDialog","NCoreUIKitModal","NCoreUIKitTheme","NCoreUIKitToast","NCoreUIKitMenu","NotificationIndicator","HighlightButton","PaletteSwitcher","MarkdownViewer","DateTimePicker","PageContainer","DateTimeSheet","TextAreaInput","MonthSelector","ThemeSwitcher","NumericInput","TimeSelector","EmbeddedMenu","DateSelector","BottomSheet","AvatarGroup","SelectSheet","RadioButton","MenuButton","MainHeader","SelectBox","StateCard","TextInput","Seperator","SiteLogo","SnackBar","CheckBox","Sticker","RowCard","Loading","Dialog","Avatar","Switch","Button","Header","Modal","Toast","Menu","Chip","Text","blockquoteMarkdown","centerMarkdown","enterMarkdown","imageMarkdown","parseMarkdown","rightMarkdown","codeMarkdown","leftMarkdown","linkMarkdown","listMarkdown","textMarkdown","mergeTypographyTokens","parseRRuleConfig","mergeTypography","mergeRadiuses","mergePalettes","mergeBorders","mergeSpaces","mergeShapes","mergeTheme","NIBGATCommunityIcon","CayCoreIcon","LoadingIcon","NIBGATIcon","Portal","Host"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;AAAA,SACIA,oBAAoB,EACpBC,eAAe,QACZ,iBAAQ;AAEf,SACIC,sBAAsB,EACtBC,qBAAqB,EACrBC,kBAAkB,EAClBC,kBAAkB,EAClBC,gBAAgB,EAChBC,eAAe,EACfC,eAAe,EACfC,eAAe,EACfC,cAAc,QACX,iBAAc;AAErB,SACIC,qBAAqB,EACrBC,eAAe,EACfC,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,WAAW,EACXC,WAAW,EACXC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,EACVC,SAAS,EACTC,SAAS,EACTC,SAAS,EACTC,SAAS,EACTC,QAAQ,EACRC,QAAQ,EACRC,QAAQ,EACRC,OAAO,EACPC,OAAO,EACPC,OAAO,EACPC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,MAAM,EACNC,KAAK,EACLC,KAAK,EACLC,IAAI,EACJC,IAAI,EACJC,IAAI,QACD,uBAAc;AAmBrB,SACIC,kBAAkB,EAClBC,cAAc,EACdC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,YAAY,EACZC,YAAY,QACT,qCAAkC;AAEzC,SACIC,qBAAqB,EACrBC,gBAAgB,EAChBC,eAAe,EACfC,aAAa,EACbC,aAAa,EACbC,YAAY,EACZC,WAAW,EACXC,WAAW,EACXC,UAAU,QACP,oBAAW;AAElB,SACIC,mBAAmB,EACnBC,WAAW,EACXC,WAAW,EACXC,UAAU,QACP,uBAAc;AAoBrB,SACIC,MAAM,EACNC,IAAI,QACD,8BAAqB","ignoreList":[]}
|
package/lib/module/package.json
CHANGED