orcs-design-system 3.5.0 → 3.5.1
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/es/components/Badge/index.js +13 -6
- package/es/components/CodeBlock/index.js +2 -2
- package/es/components/FloatingPanels/FloatingPanels.stories.js +1 -1
- package/es/components/Select/index.js +6 -6
- package/es/components/SideNavV2/NavItem.js +19 -45
- package/es/components/Tag/index.js +2 -2
- package/es/components/TextInput/index.js +2 -2
- package/es/components/Toggle/index.js +1 -1
- package/es/components/Typography/index.js +6 -6
- package/es/systemtheme.js +20 -20
- package/package.json +8 -9
|
@@ -20,19 +20,26 @@ const Item = /*#__PURE__*/styled("span").withConfig({
|
|
|
20
20
|
"data-testid": props["data-testid"] ? props["data-testid"] : null
|
|
21
21
|
}))(props => css(_objectSpread({
|
|
22
22
|
fontSize: themeGet("fontSizes.0")(props),
|
|
23
|
-
lineHeight:
|
|
23
|
+
lineHeight: "1",
|
|
24
24
|
fontWeight: themeGet("fontWeights.2")(props),
|
|
25
|
-
display: "inline-
|
|
25
|
+
display: "inline-flex",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
verticalAlign: "middle",
|
|
26
29
|
position: "relative",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
px: themeGet("space.
|
|
30
|
+
height: themeGet("tagScale.tagHeightDefault")(props),
|
|
31
|
+
minHeight: themeGet("tagScale.tagHeightDefault")(props),
|
|
32
|
+
px: themeGet("space.2")(props),
|
|
30
33
|
cursor: "default",
|
|
31
34
|
borderRadius: 1,
|
|
32
35
|
color: themeGet("colors.greyDarkest")(props),
|
|
33
36
|
bg: themeGet("colors.greyLighter")(props),
|
|
34
37
|
border: "1px solid ".concat(themeGet("colors.greyLighter")(props)),
|
|
35
|
-
whiteSpace:
|
|
38
|
+
whiteSpace: "nowrap",
|
|
39
|
+
"& > *": {
|
|
40
|
+
lineHeight: "1",
|
|
41
|
+
margin: "0"
|
|
42
|
+
}
|
|
36
43
|
}, props.altStyle ? {
|
|
37
44
|
color: themeGet("colors.greyDarker")(props),
|
|
38
45
|
bg: themeGet("colors.white")(props),
|
|
@@ -468,7 +468,7 @@ CodeBlock.__docgenInfo = {
|
|
|
468
468
|
"description": "The code to display. Should be a string. Required when not using editable mode.",
|
|
469
469
|
"type": {
|
|
470
470
|
"name": "custom",
|
|
471
|
-
"raw": "(props, propName, componentName) => {\n if (!props.editable) {\n if (props[propName] === undefined || props[propName] === null) {\n return new Error(\n `Prop \\`${propName}\\` is required in \\`${componentName}\\` when \\`editable\\` is false or not provided.`\n );\n }\n if (typeof props[propName] !== \"string\") {\n return new Error(\n `Invalid prop \\`${propName}\\` of type \\`${typeof props[\n propName\n ]}\\` supplied to \\`${componentName}\\`, expected \\`string\\`.`\n );\n }\n } else if (
|
|
471
|
+
"raw": "(props, propName, componentName) => {\n if (!props.editable) {\n if (props[propName] === undefined || props[propName] === null) {\n return new Error(\n `Prop \\`${propName}\\` is required in \\`${componentName}\\` when \\`editable\\` is false or not provided.`\n );\n }\n if (typeof props[propName] !== \"string\") {\n return new Error(\n `Invalid prop \\`${propName}\\` of type \\`${typeof props[\n propName\n ]}\\` supplied to \\`${componentName}\\`, expected \\`string\\`.`\n );\n }\n } else if (props[propName] !== undefined && typeof props[propName] !== \"string\") {\n return new Error(\n `Invalid prop \\`${propName}\\` of type \\`${typeof props[\n propName\n ]}\\` supplied to \\`${componentName}\\`, expected \\`string\\`.`\n );\n }\n return null;\n}"
|
|
472
472
|
},
|
|
473
473
|
"required": false
|
|
474
474
|
},
|
|
@@ -490,7 +490,7 @@ CodeBlock.__docgenInfo = {
|
|
|
490
490
|
"description": "The value for editable mode. Required when `editable` is true.",
|
|
491
491
|
"type": {
|
|
492
492
|
"name": "custom",
|
|
493
|
-
"raw": "(props, propName, componentName) => {\n if (
|
|
493
|
+
"raw": "(props, propName, componentName) => {\n if (props.editable && props[propName] !== undefined && typeof props[propName] !== \"string\") {\n return new Error(\n `Invalid prop \\`${propName}\\` of type \\`${typeof props[\n propName\n ]}\\` supplied to \\`${componentName}\\`, expected \\`string\\` when \\`editable\\` is true.`\n );\n }\n return null;\n}"
|
|
494
494
|
},
|
|
495
495
|
"required": false
|
|
496
496
|
},
|
|
@@ -182,7 +182,7 @@ export const unselectableFloatingPanels = () => /*#__PURE__*/_jsx(Box, {
|
|
|
182
182
|
title: "Selected",
|
|
183
183
|
iconName: "smile",
|
|
184
184
|
content: /*#__PURE__*/_jsxs("span", {
|
|
185
|
-
children: ["You cannot change this selection due to
|
|
185
|
+
children: ["You cannot change this selection due to ", /*#__PURE__*/_jsx("code", {
|
|
186
186
|
children: "disablePanelSelect"
|
|
187
187
|
})]
|
|
188
188
|
})
|
|
@@ -36,7 +36,7 @@ const Label = /*#__PURE__*/styled("label").withConfig({
|
|
|
36
36
|
}))(props => css({
|
|
37
37
|
display: "block",
|
|
38
38
|
color: props.inverted ? themeGet("colors.white")(props) : props.invalid ? themeGet("colors.dangerDark")(props) : themeGet("colors.greyDarkest")(props),
|
|
39
|
-
fontSize: themeGet("fontSizes.
|
|
39
|
+
fontSize: themeGet("fontSizes.0")(props),
|
|
40
40
|
fontWeight: props.bold ? themeGet("fontWeights.2")(props) : themeGet("fontWeights.1")(props),
|
|
41
41
|
mb: "xs"
|
|
42
42
|
}));
|
|
@@ -99,7 +99,7 @@ const Select = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
99
99
|
color: props.inverted ? themeGet("colors.greyLighter") : themeGet("colors.greyDarkest")({
|
|
100
100
|
theme
|
|
101
101
|
}),
|
|
102
|
-
fontSize: themeGet("fontSizes.
|
|
102
|
+
fontSize: themeGet("fontSizes.0")({
|
|
103
103
|
theme
|
|
104
104
|
}),
|
|
105
105
|
border: props.inverted ? themeGet("borderWidths.1")({
|
|
@@ -180,7 +180,7 @@ const Select = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
180
180
|
borderRadius: themeGet("radii.2")({
|
|
181
181
|
theme
|
|
182
182
|
}),
|
|
183
|
-
fontSize: themeGet("fontSizes.
|
|
183
|
+
fontSize: themeGet("fontSizes.0")({
|
|
184
184
|
theme
|
|
185
185
|
}),
|
|
186
186
|
overflow: "hidden",
|
|
@@ -197,7 +197,7 @@ const Select = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
197
197
|
}) : themeGet("colors.grey")({
|
|
198
198
|
theme
|
|
199
199
|
}),
|
|
200
|
-
fontSize: themeGet("fontSizes.
|
|
200
|
+
fontSize: themeGet("fontSizes.0")({
|
|
201
201
|
theme
|
|
202
202
|
})
|
|
203
203
|
}),
|
|
@@ -329,7 +329,7 @@ const Select = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
329
329
|
}) : themeGet("colors.primaryDark")({
|
|
330
330
|
theme
|
|
331
331
|
}),
|
|
332
|
-
fontSize: themeGet("fontSizes.
|
|
332
|
+
fontSize: themeGet("fontSizes.0")({
|
|
333
333
|
theme
|
|
334
334
|
}),
|
|
335
335
|
whiteSpace: "break-spaces"
|
|
@@ -341,7 +341,7 @@ const Select = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
341
341
|
}) : themeGet("colors.greyDarkest")({
|
|
342
342
|
theme
|
|
343
343
|
}),
|
|
344
|
-
fontSize: themeGet("fontSizes.
|
|
344
|
+
fontSize: themeGet("fontSizes.0")({
|
|
345
345
|
theme
|
|
346
346
|
})
|
|
347
347
|
})
|
|
@@ -20,10 +20,10 @@ const IconWrapper = /*#__PURE__*/styled.span.withConfig({
|
|
|
20
20
|
displayName: "IconWrapper",
|
|
21
21
|
componentId: "sc-1qz1q0h-0"
|
|
22
22
|
})(["display:inline-flex;align-items:center;justify-content:center;width:", ";flex-shrink:0;> *{width:", " !important;max-width:", ";}"], ICON_COLUMN_WIDTH, ICON_COLUMN_WIDTH, ICON_COLUMN_WIDTH);
|
|
23
|
-
const sharedNavItemStyles =
|
|
23
|
+
const sharedNavItemStyles = /*#__PURE__*/styledCss(["cursor:pointer;text-decoration:none;border-radius:", ";width:100%;position:relative;border:none;path{transition:", ";fill:", ";}font-family:", ";display:grid;grid-template-columns:", ";place-items:center;transition:", ";background-color:transparent;font-size:1.4rem;font-weight:", ";", " @media screen and (max-width:", "px){width:auto;max-height:30px;height:30px;}&:focus{outline:0;}"], themeGet("radii.2"), themeGet("transition.transitionDefault"), themeGet("colors.greyDarker"), themeGet("fonts.main"), ICON_COLUMN_WIDTH, themeGet("transition.transitionDefault"), themeGet("fontWeights.1"), sharedNavItemHoverStyles, BREAKPOINTS.SMALL_SCREEN);
|
|
24
24
|
const expandedNavItemStyles = props => styledCss(["grid-template-columns:", " 1fr;gap:", ";justify-items:start;align-items:center;padding-left:0;.nav-item-text{font-size:", ";line-height:1;font-weight:", ";color:", ";text-align:left;justify-self:start;padding-left:", ";}&:hover .nav-item-text,&:focus .nav-item-text{color:", ";}"], ICON_COLUMN_WIDTH, themeGet("space.s"), themeGet("fontSizes.1"), themeGet("fontWeights.1"), props.active ? themeGet("colors.greyDarkest") : themeGet("colors.greyDarker"), themeGet("space.s"), props.active ? themeGet("colors.greyDarkest") : themeGet("colors.primary"));
|
|
25
25
|
const variantActiveStyles = {
|
|
26
|
-
expandableItem: () => styledCss(["color:", ";path{fill:", ";}&:hover .nav-item-text,&:focus .nav-item-text{color:", ";}@media screen and (max-width:", "px){
|
|
26
|
+
expandableItem: () => styledCss(["color:", ";path{fill:", ";}&:after{height:calc(100% + ", " + ", ");position:absolute;right:-", ";top:-", ";content:\"\";border-right:3px solid ", ";z-index:5;}&:hover .nav-item-text,&:focus .nav-item-text{color:", ";}@media screen and (max-width:", "px){&:after{border-top:3px solid ", ";border-right:none;transform:translateY(-10px);right:auto;width:100%;}}"], themeGet("colors.greyDarkest"), themeGet("colors.greyDarkest"), themeGet("space.xs"), themeGet("space.xs"), themeGet("space.xs"), themeGet("space.xs"), themeGet("colors.primary"), themeGet("colors.primary"), BREAKPOINTS.SMALL_SCREEN, themeGet("colors.primary")),
|
|
27
27
|
default: styledCss(["", ""], props => sharedNavItemActiveStylesProps(props))
|
|
28
28
|
};
|
|
29
29
|
const getActiveStyles = props => {
|
|
@@ -36,11 +36,11 @@ const getActiveStyles = props => {
|
|
|
36
36
|
const SideNavItemLink = /*#__PURE__*/styled.div.withConfig({
|
|
37
37
|
displayName: "SideNavItemLink",
|
|
38
38
|
componentId: "sc-1qz1q0h-1"
|
|
39
|
-
})(["& > a{", " ", " ", "}"],
|
|
39
|
+
})(["& > a{", " ", " ", "}"], sharedNavItemStyles, props => props.isExpanded ? expandedNavItemStyles(props) : "", getActiveStyles);
|
|
40
40
|
const SideNavItem = /*#__PURE__*/styled("button").withConfig({
|
|
41
41
|
displayName: "SideNavItem",
|
|
42
42
|
componentId: "sc-1qz1q0h-2"
|
|
43
|
-
})(["", " ", " ", ""],
|
|
43
|
+
})(["", " ", " ", ""], sharedNavItemStyles, props => props.isExpanded ? expandedNavItemStyles(props) : "", getActiveStyles);
|
|
44
44
|
const BadgeNumber = /*#__PURE__*/styled("div").withConfig({
|
|
45
45
|
displayName: "BadgeNumber",
|
|
46
46
|
componentId: "sc-1qz1q0h-3"
|
|
@@ -76,45 +76,22 @@ const BadgeDot = /*#__PURE__*/styled("div").withConfig({
|
|
|
76
76
|
const SideNavItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
77
77
|
displayName: "SideNavItemWrapper",
|
|
78
78
|
componentId: "sc-1qz1q0h-5"
|
|
79
|
-
})(props => css(_objectSpread(_objectSpread(
|
|
79
|
+
})(props => css(_objectSpread(_objectSpread({
|
|
80
80
|
padding: themeGet("space.xs")(props),
|
|
81
81
|
borderRadius: themeGet("radii.2")(props),
|
|
82
82
|
width: "100%",
|
|
83
|
-
position: "relative",
|
|
84
83
|
"&:nth-child(1 of .bottom-aligned) ": {
|
|
85
84
|
marginTop: props.bottomAligned && "auto"
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
"&:has(button:hover)": {
|
|
89
|
-
backgroundColor: themeGet("colors.greyLightest")(props)
|
|
90
|
-
}
|
|
91
|
-
}), !props.isActive && props.isLink && {
|
|
92
|
-
"&:has(a:hover):not(:has(a.active))": {
|
|
85
|
+
},
|
|
86
|
+
"&:has(button:hover), &:has(a:hover)": {
|
|
93
87
|
backgroundColor: themeGet("colors.greyLightest")(props)
|
|
94
88
|
}
|
|
95
|
-
}
|
|
89
|
+
}, props.isActive && props.isLink && {
|
|
96
90
|
backgroundColor: themeGet("colors.primaryLightest")(props)
|
|
97
|
-
}), props.isActive && props.isExpandable && {
|
|
98
|
-
"&::after": {
|
|
99
|
-
content: '""',
|
|
100
|
-
position: "absolute",
|
|
101
|
-
right: "-9px",
|
|
102
|
-
top: "0",
|
|
103
|
-
bottom: "0",
|
|
104
|
-
width: "3px",
|
|
105
|
-
backgroundColor: themeGet("colors.primary")(props),
|
|
106
|
-
zIndex: 5
|
|
107
|
-
}
|
|
108
91
|
}), {}, {
|
|
109
|
-
["@media screen and (max-width: ".concat(BREAKPOINTS.SMALL_SCREEN, "px)")]:
|
|
92
|
+
["@media screen and (max-width: ".concat(BREAKPOINTS.SMALL_SCREEN, "px)")]: {
|
|
110
93
|
padding: themeGet("space.xs")(props)
|
|
111
|
-
}
|
|
112
|
-
"&::after": {
|
|
113
|
-
display: "none"
|
|
114
|
-
}
|
|
115
|
-
}), props.isActive && props.isLink && {
|
|
116
|
-
backgroundColor: themeGet("colors.primaryLightest")(props)
|
|
117
|
-
})
|
|
94
|
+
}
|
|
118
95
|
})));
|
|
119
96
|
|
|
120
97
|
/**
|
|
@@ -162,7 +139,6 @@ const NavItem = _ref => {
|
|
|
162
139
|
ref: el => navItemRefs.current[item.index] = el,
|
|
163
140
|
children: /*#__PURE__*/_jsxs(Component, {
|
|
164
141
|
item: item,
|
|
165
|
-
className: isActive ? "active" : "",
|
|
166
142
|
children: [/*#__PURE__*/_jsx(IconWrapper, {
|
|
167
143
|
children: /*#__PURE__*/_jsx(Icon, {
|
|
168
144
|
icon: ["far", item.iconName],
|
|
@@ -199,21 +175,19 @@ const NavItem = _ref => {
|
|
|
199
175
|
}), item.index);
|
|
200
176
|
}
|
|
201
177
|
}, [item, isActive, isExpanded, isSmallScreen, handleItemClick, navItemRefs]);
|
|
202
|
-
|
|
203
|
-
|
|
178
|
+
return isSmallScreen ? /*#__PURE__*/_jsx(Popover, {
|
|
179
|
+
text: item.name,
|
|
180
|
+
direction: "top",
|
|
181
|
+
textAlign: "center",
|
|
182
|
+
width: "fit-content",
|
|
183
|
+
tabIndex: "-1",
|
|
184
|
+
children: renderedNavItem
|
|
185
|
+
}) : /*#__PURE__*/_jsx(SideNavItemWrapper, {
|
|
204
186
|
className: item.bottomAligned && "bottom-aligned",
|
|
205
187
|
bottomAligned: item.bottomAligned,
|
|
206
188
|
isActive: isActive,
|
|
207
189
|
isLink: item.actionType === "link",
|
|
208
|
-
|
|
209
|
-
children: isSmallScreen ? /*#__PURE__*/_jsx(Popover, {
|
|
210
|
-
text: item.name,
|
|
211
|
-
direction: "top",
|
|
212
|
-
textAlign: "center",
|
|
213
|
-
width: "fit-content",
|
|
214
|
-
tabIndex: "-1",
|
|
215
|
-
children: renderedNavItem
|
|
216
|
-
}) : renderedNavItem
|
|
190
|
+
children: renderedNavItem
|
|
217
191
|
});
|
|
218
192
|
};
|
|
219
193
|
NavItem.propTypes = {
|
|
@@ -23,7 +23,7 @@ const TagValue = /*#__PURE__*/styled.button.attrs(props => ({
|
|
|
23
23
|
})).withConfig({
|
|
24
24
|
displayName: "TagValue",
|
|
25
25
|
componentId: "sc-1dh2aa8-1"
|
|
26
|
-
})(["-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:
|
|
26
|
+
})(["-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1;display:flex;gap:", ";align-items:center;flex-wrap:wrap;user-select:text;font-size:", ";font-weight:", ";white-space:nowrap;position:relative;z-index:1;transition:", ";cursor:pointer;border-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";padding:", ";border:1px solid;", ""], props => props.small ? "3px" : "4px", props => props.small ? themeGet("fontSizes.0")(props) : themeGet("fontSizes.1")(props), props => themeGet("fontWeights.2")(props), props => themeGet("transition.transitionDefault")(props), themeGet("tagScale.tagBorderRadius"), props => props.showEdit || props.showInfo || props.showRemove ? "0" : themeGet("tagScale.tagBorderRadius"), props => props.showEdit || props.showInfo || props.showRemove ? "0" : themeGet("tagScale.tagBorderRadius"), props => props.small ? themeGet("tagScale.tagPaddingSmall") : themeGet("tagScale.tagPaddingDefault"), props => variant({
|
|
27
27
|
variants: {
|
|
28
28
|
default: {
|
|
29
29
|
background: themeGet("colors.white")(props),
|
|
@@ -283,7 +283,7 @@ export default function Tag(_ref) {
|
|
|
283
283
|
imageAlt: "Avatar for ".concat(children),
|
|
284
284
|
image: personEntity.avatarSrc,
|
|
285
285
|
initials: personEntity.initials,
|
|
286
|
-
customSize: small ? "
|
|
286
|
+
customSize: small ? "16px" : "20px"
|
|
287
287
|
})
|
|
288
288
|
}), /*#__PURE__*/_jsxs(TagValueText, {
|
|
289
289
|
showStrikeThrough: showStrikeThrough,
|
|
@@ -31,7 +31,7 @@ const IconWrapper = /*#__PURE__*/styled.label.withConfig({
|
|
|
31
31
|
displayName: "IconWrapper",
|
|
32
32
|
componentId: "sc-shde0o-1"
|
|
33
33
|
})(["display:flex;align-items:center;min-height:inherit;position:absolute;width:fit-content;bottom:0;padding:0 10px;svg{opacity:0.4;}", ";"], props => props.iconLeft && !props.floating ? css(["left:0;"]) : props.iconLeft && props.floating ? css(["left:0;bottom:11px;"]) : props.iconRight && !props.floating ? css(["right:0;"]) : props.iconRight && props.floating ? css(["right:0;bottom:11px;"]) : css([""]));
|
|
34
|
-
const InputStyle = /*#__PURE__*/css(["display:block;cursor:text;-moz-appearance:none;-webkit-appearance:none;appearance:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;box-shadow:none;font-size:", ";z-index:1;border-radius:", ";transition:", ";background:", ";color:", ";width:", ";height:", ";padding:", ";border:1px solid ", ";", " &:hover{border:1px solid ", ";}&:focus{outline:0;box-shadow:", ";border:1px solid ", ";", ";}"], props => themeGet("fontSizes.
|
|
34
|
+
const InputStyle = /*#__PURE__*/css(["display:block;cursor:text;-moz-appearance:none;-webkit-appearance:none;appearance:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;box-shadow:none;font-size:", ";z-index:1;border-radius:", ";transition:", ";background:", ";color:", ";width:", ";height:", ";padding:", ";border:1px solid ", ";", " &:hover{border:1px solid ", ";}&:focus{outline:0;box-shadow:", ";border:1px solid ", ";", ";}"], props => themeGet("fontSizes.0")(props), props => themeGet("radii.2")(props), props => themeGet("transition.transitionDefault")(props), props => props.disabled ? themeGet("colors.greyLightest")(props) : themeGet("colors.white")(props), props => props.disabled ? themeGet("colors.grey")(props) : themeGet("colors.greyDarkest")(props), props => props.fullWidth ? "100%" : "auto", props => props.height ? props.height : props.floating ? themeGet("appScale.inputHeightLarge")(props) : themeGet("appScale.inputHeightDefault")(props), props => {
|
|
35
35
|
let left = props.iconLeft ? 36 : 10;
|
|
36
36
|
let right = props.iconRight ? 36 : 10;
|
|
37
37
|
let top = props.floating ? 25 : 5;
|
|
@@ -53,7 +53,7 @@ const NumberInput = /*#__PURE__*/styled(NumericFormat).attrs(props => ({
|
|
|
53
53
|
const Label = /*#__PURE__*/styled.label.withConfig({
|
|
54
54
|
displayName: "Label",
|
|
55
55
|
componentId: "sc-shde0o-4"
|
|
56
|
-
})(["display:block;z-index:2;text-align:left;font-size:", ";font-weight:", ";transition:", ";padding-right:", ";margin-bottom:", ";color:", ";", ";", ";"], props => themeGet("fontSizes.
|
|
56
|
+
})(["display:block;z-index:2;text-align:left;font-size:", ";font-weight:", ";transition:", ";padding-right:", ";margin-bottom:", ";color:", ";", ";", ";"], props => themeGet("fontSizes.0")(props), props => props.bold ? themeGet("fontWeights.2")(props) : themeGet("fontWeights.1")(props), props => themeGet("transition.transitionDefault")(props), props => props.floating && props.iconRight ? "40px" : "12px", props => props.floating ? 0 : themeGet("space.xs")(props), props => props.inverted ? themeGet("colors.white")(props) : props.valid ? themeGet("colors.successDark")(props) : props.invalid ? themeGet("colors.dangerDark")(props) : themeGet("colors.greyDarkest")(props), props => props.floating ? css(["padding-left:", ";cursor:text;position:absolute;top:", ";color:", ";"], props => props.iconLeft ? "37px" : "11px", props => {
|
|
57
57
|
let inputHeight = themeGet("appScale.inputHeightLarge")(props);
|
|
58
58
|
return "calc(".concat(inputHeight, " / 3)");
|
|
59
59
|
}, props => props.invalid ? themeGet("colors.dangerDark")(props) : props.valid ? themeGet("colors.successDark")(props) : themeGet("colors.greyDark")(props)) : css([""]), props => props.mandatory ? css(["&::after{content:\" *\";color:", ";}"], themeGet("colors.danger")(props)) : css([""]));
|
|
@@ -26,7 +26,7 @@ const Item = /*#__PURE__*/styled.label.withConfig({
|
|
|
26
26
|
const Label = /*#__PURE__*/styled.label.withConfig({
|
|
27
27
|
displayName: "Label",
|
|
28
28
|
componentId: "sc-f6l22k-3"
|
|
29
|
-
})(["margin:0;padding-left:8px;cursor:pointer;font-size:", ";color:", ";"], props => props.small ? themeGet("fontSizes.
|
|
29
|
+
})(["margin:0;padding-left:8px;cursor:pointer;font-size:", ";color:", ";"], props => props.small ? themeGet("fontSizes.0")(props) : themeGet("fontSizes.1")(props), props => props.disabled ? themeGet("colors.grey")(props) : props.inverted ? themeGet("colors.white")(props) : themeGet("colors.greyDarkest")(props));
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* `Toggle` should be used for when functionality is required to turn something off/on, hide/show or disable/enable. Default is off (left/grey), this works like a checkbox, so clicking or applying a checked attribute with javascript will turn it on (right/green).
|
|
@@ -160,7 +160,7 @@ export const H5 = /*#__PURE__*/styled("h5").withConfig({
|
|
|
160
160
|
componentId: "sc-1613j99-4"
|
|
161
161
|
})(props => css({
|
|
162
162
|
fontFamily: themeGet("fonts.main")(props),
|
|
163
|
-
fontSize: themeGet("fontSizes.
|
|
163
|
+
fontSize: themeGet("fontSizes.1")(props),
|
|
164
164
|
fontWeight: themeGet("fontWeights.1")(props),
|
|
165
165
|
textTransform: props.uppercase ? "uppercase" : "none",
|
|
166
166
|
wordBreak: props.breakWord ? "break-word" : "normal"
|
|
@@ -178,10 +178,10 @@ export const H5 = /*#__PURE__*/styled("h5").withConfig({
|
|
|
178
178
|
prop: "sizing",
|
|
179
179
|
variants: {
|
|
180
180
|
large: {
|
|
181
|
-
fontSize: themeGet("fontSizes.
|
|
181
|
+
fontSize: themeGet("fontSizes.2")(props)
|
|
182
182
|
},
|
|
183
183
|
small: {
|
|
184
|
-
fontSize: themeGet("fontSizes.
|
|
184
|
+
fontSize: themeGet("fontSizes.0")(props)
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}), typeStyles, createColorVariants);
|
|
@@ -220,7 +220,7 @@ export const P = /*#__PURE__*/styled("p").withConfig({
|
|
|
220
220
|
componentId: "sc-1613j99-6"
|
|
221
221
|
})(props => css({
|
|
222
222
|
fontFamily: themeGet("fonts.main")(props),
|
|
223
|
-
fontSize: themeGet("fontSizes.
|
|
223
|
+
fontSize: themeGet("fontSizes.0")(props),
|
|
224
224
|
fontWeight: themeGet("fontWeights.1")(props),
|
|
225
225
|
textTransform: props.uppercase ? "uppercase" : "none",
|
|
226
226
|
wordBreak: props.breakWord ? "break-word" : "normal"
|
|
@@ -249,7 +249,7 @@ export const Small = /*#__PURE__*/styled("small").withConfig({
|
|
|
249
249
|
}).attrs({
|
|
250
250
|
className: "Small"
|
|
251
251
|
})(props => css({
|
|
252
|
-
fontSize: themeGet("fontSizes.
|
|
252
|
+
fontSize: themeGet("fontSizes.0")(props),
|
|
253
253
|
textTransform: props.uppercase ? "uppercase" : "none",
|
|
254
254
|
wordBreak: props.breakWord ? "break-word" : "normal"
|
|
255
255
|
}), props => variant({
|
|
@@ -268,7 +268,7 @@ export const Text = /*#__PURE__*/styled("span").withConfig({
|
|
|
268
268
|
componentId: "sc-1613j99-8"
|
|
269
269
|
})(props => css({
|
|
270
270
|
fontFamily: themeGet("fonts.main")(props),
|
|
271
|
-
fontSize: themeGet("fontSizes.
|
|
271
|
+
fontSize: themeGet("fontSizes.0")(props),
|
|
272
272
|
fontWeight: themeGet("fontWeights.1")(props),
|
|
273
273
|
textTransform: props.uppercase ? "uppercase" : "none",
|
|
274
274
|
wordBreak: props.breakWord ? "break-word" : "normal"
|
package/es/systemtheme.js
CHANGED
|
@@ -216,38 +216,38 @@ export const mediaQueries = {
|
|
|
216
216
|
// APP-SPECIFIC DIMENSIONS
|
|
217
217
|
|
|
218
218
|
export const appScale = {
|
|
219
|
-
navBarSize: "
|
|
220
|
-
newNavBarSize: "
|
|
221
|
-
navBarLogoSize: "
|
|
222
|
-
sideNavSize: "
|
|
219
|
+
navBarSize: "50px",
|
|
220
|
+
newNavBarSize: "64px",
|
|
221
|
+
navBarLogoSize: "42px",
|
|
222
|
+
sideNavSize: "42px",
|
|
223
223
|
sidebarMaxWidth: "360px",
|
|
224
|
-
sidebarMaxWidthLarge: "
|
|
224
|
+
sidebarMaxWidthLarge: "450px",
|
|
225
225
|
sidebarMobileHeight: "50vh",
|
|
226
226
|
mobileNavMenuWidth: "250px",
|
|
227
|
-
inputHeightDefault: "
|
|
228
|
-
inputHeightLarge: "
|
|
229
|
-
tabsHeight: "
|
|
227
|
+
inputHeightDefault: "32px",
|
|
228
|
+
inputHeightLarge: "52px",
|
|
229
|
+
tabsHeight: "32px"
|
|
230
230
|
};
|
|
231
231
|
export const avatarScale = {
|
|
232
|
-
avatarSmall: "
|
|
233
|
-
avatarDefault: "
|
|
234
|
-
avatarLarge: "
|
|
232
|
+
avatarSmall: "34px",
|
|
233
|
+
avatarDefault: "40px",
|
|
234
|
+
avatarLarge: "70px",
|
|
235
235
|
headerAvatarDefault: "65px",
|
|
236
236
|
headerAvatarLarge: "150px",
|
|
237
|
-
navBarAvatarSize: "
|
|
237
|
+
navBarAvatarSize: "38px"
|
|
238
238
|
};
|
|
239
239
|
export const tagScale = {
|
|
240
|
-
tagHeightDefault: "
|
|
241
|
-
tagHeightSmall: "
|
|
242
|
-
tagPaddingDefault: "
|
|
243
|
-
tagPaddingSmall: "
|
|
244
|
-
tagBorderRadius: "
|
|
240
|
+
tagHeightDefault: "22px",
|
|
241
|
+
tagHeightSmall: "18px",
|
|
242
|
+
tagPaddingDefault: "3px 7px",
|
|
243
|
+
tagPaddingSmall: "2px 5px",
|
|
244
|
+
tagBorderRadius: "12px",
|
|
245
245
|
tagAvatarSizeDefault: "20px",
|
|
246
|
-
tagAvatarSizeSmall: "
|
|
246
|
+
tagAvatarSizeSmall: "16px",
|
|
247
247
|
tagAvatarMarginLeftDefault: "-3px",
|
|
248
248
|
tagAvatarMarginLeftSmall: "-1px",
|
|
249
|
-
tagAvatarFontSizeDefault: "0.
|
|
250
|
-
tagAvatarFontSizeSmall: "0.
|
|
249
|
+
tagAvatarFontSizeDefault: "0.8rem",
|
|
250
|
+
tagAvatarFontSizeSmall: "0.7rem"
|
|
251
251
|
};
|
|
252
252
|
export default {
|
|
253
253
|
fonts,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orcs-design-system",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.0.0"
|
|
6
6
|
},
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"test:github-packages-auth": "node scripts/test-github-packages-auth.js"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@emotion/react": "^11.
|
|
50
|
-
"@emotion/styled": "^11.
|
|
51
|
-
"@floating-ui/react": "^0.
|
|
52
|
-
"@mui/icons-material": "^
|
|
53
|
-
"@mui/material": "^
|
|
54
|
-
"@mui/x-date-pickers": "^8.
|
|
49
|
+
"@emotion/react": "^11.13.0",
|
|
50
|
+
"@emotion/styled": "^11.13.0",
|
|
51
|
+
"@floating-ui/react": "^0.26.19",
|
|
52
|
+
"@mui/icons-material": "^6.5.0",
|
|
53
|
+
"@mui/material": "^6.5.0",
|
|
54
|
+
"@mui/x-date-pickers": "^8.16.0",
|
|
55
55
|
"@styled-system/css": "^5.1.5",
|
|
56
56
|
"@styled-system/prop-types": "^5.1.5",
|
|
57
57
|
"@styled-system/should-forward-prop": "^5.1.5",
|
|
@@ -71,8 +71,7 @@
|
|
|
71
71
|
"react-number-format": "^5.3.0",
|
|
72
72
|
"react-router-dom": "^5.3.4",
|
|
73
73
|
"react-select": "^5.10.2",
|
|
74
|
-
"styled-components": "^
|
|
75
|
-
"stylis": "^4.3.1",
|
|
74
|
+
"styled-components": "^5.2.1",
|
|
76
75
|
"styled-system": "^5.1.5"
|
|
77
76
|
},
|
|
78
77
|
"devDependencies": {
|