@yakad/ui 1.3.113 → 1.3.115

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.
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import "./card.css";
2
3
  export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
4
  align?: "start" | "space" | "center" | "end";
4
5
  blur?: boolean;
6
+ level?: "low" | "mid" | "high";
5
7
  children?: React.ReactNode;
6
8
  }
7
9
  export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
package/dist/Card/Card.js CHANGED
@@ -14,8 +14,16 @@ import { forwardRef } from "react";
14
14
  import classNames from "classnames";
15
15
  import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Card.module.css";
17
+ import "./card.css";
17
18
  export const Card = forwardRef(function Card(_a, ref) {
18
- var { align, blur, className, children } = _a, restProps = __rest(_a, ["align", "blur", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, "fullWidthLover", styles.card, { [styles.blur]: blur }, className);
19
+ var { align, blur, level, className, children } = _a, restProps = __rest(_a, ["align", "blur", "level", "className", "children"]);
20
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { fullWidthLover: true }, styles.card,
21
+ // { [styles.blur]: blur },
22
+ {
23
+ yakadCardAutoLevel: level === undefined,
24
+ yakadCardLowLevel: level === "low",
25
+ yakadCardMidLevel: level === "mid",
26
+ yakadCardHighLevel: level === "high",
27
+ }, className);
20
28
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
29
  });
@@ -3,7 +3,6 @@
3
3
  border-radius: 2rem;
4
4
  box-shadow: 0px 3px 3px -2px rgb(0 0 0 / 20%),
5
5
  0px 3px 4px 0px rgb(0 0 0 / 14%), 0px 1px 8px 0px rgb(0 0 0 / 12%);
6
- background: rgb(var(--surfaceContainerHighestColor, 230 224 233));
7
6
  color: rgb(var(--onSurfaceColor, 28 27 31));
8
7
  fill: rgb(var(--onSurfaceColor, 28 27 31));
9
8
  overflow: hidden;
@@ -0,0 +1,21 @@
1
+ .yakadCardBlur {
2
+ }
3
+
4
+ .yakadCard,
5
+ .yakadCardLowLevel {
6
+ background: rgb(var(--surfaceContainerColor, 230 224 233));
7
+ }
8
+
9
+ .yakadCard .yakadCard,
10
+ .yakadCardLowLevel .yakadCard,
11
+ .yakadCardMidLevel {
12
+ background: rgb(var(--surfaceContainerHighColor, 230 224 233));
13
+ }
14
+
15
+ .yakadCard .yakadCard .yakadCard,
16
+ .yakadCardLowLevel .yakadCard .yakadCard,
17
+ .yakadCardMidLevel .yakadCard,
18
+ .yakadCardHighLevel,
19
+ .yakadCardHighLevel .yakadCard {
20
+ background: rgb(var(--surfaceContainerHighestColor, 230 224 233));
21
+ }
@@ -16,6 +16,6 @@ import { Symbol } from "@yakad/symbols";
16
16
  import styles from "./CheckBox.module.css";
17
17
  export const CheckBox = forwardRef(function CheckBox(_a, ref) {
18
18
  var { label, className, style } = _a, restProps = __rest(_a, ["label", "className", "style"]);
19
- const joinedClassNames = classNames(label && "fullWidthLover", styles.label, { [styles.labeled]: label }, { [styles.disabled]: restProps.disabled }, className);
19
+ const joinedClassNames = classNames({ fullWidthLover: label }, styles.label, { [styles.labeled]: label }, { [styles.disabled]: restProps.disabled }, className);
20
20
  return (_jsxs("label", { className: joinedClassNames, style: style, children: [label, _jsx("input", Object.assign({ ref: ref }, restProps, { className: styles.input, type: "checkbox" })), _jsxs("div", { className: styles.symbolContainer, children: [_jsx(Symbol, { className: styles.symbolChecked, icon: "check_box" }), _jsx(Symbol, { className: styles.symbolUnChecked, icon: "check_box_outline_blank" })] })] }));
21
21
  });
@@ -17,6 +17,6 @@ import { Button, Card } from "..";
17
17
  import styles from "./CodeBox.module.css";
18
18
  export const CodeBox = forwardRef(function CodeBox(_a, ref) {
19
19
  var { copyButton, className, children } = _a, restProps = __rest(_a, ["copyButton", "className", "children"]);
20
- const joinedClassNames = classNames("fullWidthLover", styles.ZZZZZZZZZZ, className);
20
+ const joinedClassNames = classNames({ fullWidthLover: true }, styles.ZZZZZZZZZZ, className);
21
21
  return (_jsxs(Card, Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: [_jsx("pre", { children: children }), copyButton && _jsx(Button, { icon: _jsx(Symbol, { icon: "copy_all" }) })] })));
22
22
  });
@@ -32,7 +32,7 @@ function removeUnNumberChars(inputElement) {
32
32
  }
33
33
  export const CodeField = forwardRef(function CodeField(_a, ref) {
34
34
  var { length = 6, onFilled, autoComplete, pattern, onInput, className, style } = _a, restProps = __rest(_a, ["length", "onFilled", "autoComplete", "pattern", "onInput", "className", "style"]);
35
- const joinedClassNames = classNames("fullWidthLover", styles.input, className);
35
+ const joinedClassNames = classNames({ fullWidthLover: true }, styles.input, className);
36
36
  const joinedStyles = Object.assign(Object.assign({}, style), { width: `calc(1.5ch * ${length})` });
37
37
  return (_jsx("input", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: joinedStyles, type: "number", minLength: length, maxLength: length, autoComplete: autoComplete || "off", pattern: pattern || "[0-9]", onInput: (event) => {
38
38
  isInputFilled(event, length) && onFilled;
@@ -15,6 +15,6 @@ import classNames from "classnames";
15
15
  import styles from "./Display.module.css";
16
16
  export const Display = forwardRef(function Display(_a, ref) {
17
17
  var { minWidth, maxWidth, className, children } = _a, restProps = __rest(_a, ["minWidth", "maxWidth", "className", "children"]);
18
- const joinedClassNames = classNames("fullWidthLover", { [styles[`${minWidth}MinWidth`]]: minWidth }, { [styles[`${maxWidth}MaxWidth`]]: maxWidth }, className);
18
+ const joinedClassNames = classNames({ fullWidthLover: true }, { [styles[`${minWidth}MinWidth`]]: minWidth }, { [styles[`${maxWidth}MaxWidth`]]: maxWidth }, className);
19
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
20
20
  });
package/dist/Form/Form.js CHANGED
@@ -16,6 +16,6 @@ import styles from "./Form.module.css";
16
16
  import boxingStyles from "../boxing.module.css";
17
17
  export const Form = forwardRef(function Form(_a, ref) {
18
18
  var { align, className, children } = _a, restProps = __rest(_a, ["align", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, "fullWidthLover", styles.form, className);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { fullWidthLover: true }, styles.form, className);
20
20
  return (_jsx("form", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -16,5 +16,5 @@ import styles from "./InputField.module.css";
16
16
  export const InputField = forwardRef(function InputField(_a, ref) {
17
17
  var { variant = "outlined", boxSize = "normal", placeholder, className } = _a, restProps = __rest(_a, ["variant", "boxSize", "placeholder", "className"]);
18
18
  const joinedClassNames = classNames(styles.input, styles[variant], styles[boxSize], placeholder && styles.havePlaceHolder, className);
19
- return (_jsxs("div", { className: classNames("fullWidthLover", styles.div), children: [_jsx("input", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, placeholder: " " })), placeholder && (_jsx("label", { className: styles.label, children: placeholder }))] }));
19
+ return (_jsxs("div", { className: classNames({ fullWidthLover: true }, styles.div), children: [_jsx("input", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, placeholder: " " })), placeholder && (_jsx("label", { className: styles.label, children: placeholder }))] }));
20
20
  });
package/dist/List/List.js CHANGED
@@ -15,6 +15,6 @@ import classNames from "classnames";
15
15
  import styles from "./List.module.css";
16
16
  export const List = forwardRef(function List(_a, ref) {
17
17
  var { direction = "row", collapsed, className, children } = _a, restProps = __rest(_a, ["direction", "collapsed", "className", "children"]);
18
- const joinedClassNames = classNames("fullWidthLover", styles.list, styles[direction], { [styles.collapsed]: collapsed }, className);
18
+ const joinedClassNames = classNames({ fullWidthLover: true }, styles.list, styles[direction], { [styles.collapsed]: collapsed }, className);
19
19
  return (_jsx("ul", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
20
20
  });
package/dist/Row/Row.js CHANGED
@@ -16,6 +16,6 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Row.module.css";
17
17
  export const Row = forwardRef(function Row(_a, ref) {
18
18
  var { align, overflow = "shrink", size = "xl", className, children } = _a, restProps = __rest(_a, ["align", "overflow", "size", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexRowBox, { [boxingStyles[align]]: align }, boxingStyles[overflow], styles.row, overflow === "shrink" && "fullWidthLover", styles[size], className);
19
+ const joinedClassNames = classNames(boxingStyles.flexRowBox, { [boxingStyles[align]]: align }, boxingStyles[overflow], styles.row, { fullWidthLover: overflow === "shrink" }, styles[size], className);
20
20
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -17,5 +17,5 @@ import inputStyles from "../InputField/InputField.module.css";
17
17
  export const Select = forwardRef(function Select(_a, ref) {
18
18
  var { variant = "outlined", boxsize = "normal", placeholder, className, children } = _a, restProps = __rest(_a, ["variant", "boxsize", "placeholder", "className", "children"]);
19
19
  const joinedClassNames = classNames(styles.select, inputStyles.input, inputStyles[variant], inputStyles[boxsize], { [inputStyles.havePlaceHolder]: placeholder }, className);
20
- return (_jsxs("div", { className: classNames("fullWidthLover", inputStyles.div), children: [_jsx("select", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })), placeholder ? (_jsx("label", { className: inputStyles.label, children: placeholder })) : null] }));
20
+ return (_jsxs("div", { className: classNames({ fullWidthLover: true }, inputStyles.div), children: [_jsx("select", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })), placeholder ? (_jsx("label", { className: inputStyles.label, children: placeholder })) : null] }));
21
21
  });
@@ -16,6 +16,6 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Stack.module.css";
17
17
  export const Stack = forwardRef(function Stack(_a, ref) {
18
18
  var { align, className, children } = _a, restProps = __rest(_a, ["align", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, "fullWidthLover", styles.stack, className);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { fullWidthLover: true }, styles.stack, className);
20
20
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -15,7 +15,7 @@ import classNames from "classnames";
15
15
  import styles from "./Table.module.css";
16
16
  export const Table = forwardRef(function Table(_a, ref) {
17
17
  var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
18
- const joinedClassNames = classNames("fullWidthLover", styles.table, className);
18
+ const joinedClassNames = classNames({ fullWidthLover: true }, styles.table, className);
19
19
  return (_jsx("table", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
20
20
  });
21
21
  export const Thead = forwardRef(function Thead(_a, ref) {
@@ -28,7 +28,7 @@
28
28
  --LightSurfaceContainerLowestColor: 255 255 255;
29
29
  --LightSurfaceContainerLowColor: 247 242 250;
30
30
  --LightSurfaceContainerColor: 243 237 247;
31
- --LightSurfaceContainerHightColor: 236 230 240;
31
+ --LightSurfaceContainerHighColor: 236 230 240;
32
32
  --LightSurfaceContainerHighestColor: 230 224 233;
33
33
  --LightOnSurfaceColor: 28 27 31;
34
34
  --LightOnSurfaceVariantColor: 73 69 78;
@@ -57,7 +57,7 @@
57
57
  --DarkSurfaceContainerLowestColor: 15 13 19;
58
58
  --DarkSurfaceContainerLowColor: 29 27 32;
59
59
  --DarkSurfaceContainerColor: 33 31 38;
60
- --DarkSurfaceContainerHightColor: 43 41 48;
60
+ --DarkSurfaceContainerHighColor: 43 41 48;
61
61
  --DarkSurfaceContainerHighestColor: 54 52 59;
62
62
  --DarkOnSurfaceColor: 230 225 229;
63
63
  --DarkOnSurfaceVariantColor: 202 196 208;
@@ -87,7 +87,7 @@
87
87
  --LightSurfaceContainerLowestColor: 255 255 255;
88
88
  --LightSurfaceContainerLowColor: 247 242 250;
89
89
  --LightSurfaceContainerColor: 243 237 247;
90
- --LightSurfaceContainerHightColor: 236 230 240;
90
+ --LightSurfaceContainerHighColor: 236 230 240;
91
91
  --LightSurfaceContainerHighestColor: 230 224 233;
92
92
  --LightOnSurfaceColor: 28 27 31;
93
93
  --LightOnSurfaceVariantColor: 73 69 78;
@@ -116,7 +116,7 @@
116
116
  --DarkSurfaceContainerLowestColor: 15 13 19;
117
117
  --DarkSurfaceContainerLowColor: 29 27 32;
118
118
  --DarkSurfaceContainerColor: 33 31 38;
119
- --DarkSurfaceContainerHightColor: 43 41 48;
119
+ --DarkSurfaceContainerHighColor: 43 41 48;
120
120
  --DarkSurfaceContainerHighestColor: 54 52 59;
121
121
  --DarkOnSurfaceColor: 230 225 229;
122
122
  --DarkOnSurfaceVariantColor: 202 196 208;
@@ -147,7 +147,7 @@
147
147
  --LightSurfaceContainerLowestColor: 255 255 255;
148
148
  --LightSurfaceContainerLowColor: 247 242 250;
149
149
  --LightSurfaceContainerColor: 243 237 247;
150
- --LightSurfaceContainerHightColor: 236 230 240;
150
+ --LightSurfaceContainerHighColor: 236 230 240;
151
151
  --LightSurfaceContainerHighestColor: 230 224 233;
152
152
  --LightOnSurfaceColor: 28 27 31;
153
153
  --LightOnSurfaceVariantColor: 73 69 78;
@@ -176,7 +176,7 @@
176
176
  --DarkSurfaceContainerLowestColor: 15 13 19;
177
177
  --DarkSurfaceContainerLowColor: 29 27 32;
178
178
  --DarkSurfaceContainerColor: 33 31 38;
179
- --DarkSurfaceContainerHightColor: 43 41 48;
179
+ --DarkSurfaceContainerHighColor: 43 41 48;
180
180
  --DarkSurfaceContainerHighestColor: 54 52 59;
181
181
  --DarkOnSurfaceColor: 230 225 229;
182
182
  --DarkOnSurfaceVariantColor: 202 196 208;
@@ -207,7 +207,7 @@
207
207
  --LightSurfaceContainerLowestColor: 255 255 255;
208
208
  --LightSurfaceContainerLowColor: 247 242 250;
209
209
  --LightSurfaceContainerColor: 243 237 247;
210
- --LightSurfaceContainerHightColor: 236 230 240;
210
+ --LightSurfaceContainerHighColor: 236 230 240;
211
211
  --LightSurfaceContainerHighestColor: 230 224 233;
212
212
  --LightOnSurfaceColor: 28 27 31;
213
213
  --LightOnSurfaceVariantColor: 73 69 78;
@@ -236,7 +236,7 @@
236
236
  --DarkSurfaceContainerLowestColor: 15 13 19;
237
237
  --DarkSurfaceContainerLowColor: 29 27 32;
238
238
  --DarkSurfaceContainerColor: 33 31 38;
239
- --DarkSurfaceContainerHightColor: 43 41 48;
239
+ --DarkSurfaceContainerHighColor: 43 41 48;
240
240
  --DarkSurfaceContainerHighestColor: 54 52 59;
241
241
  --DarkOnSurfaceColor: 230 225 229;
242
242
  --DarkOnSurfaceVariantColor: 202 196 208;
@@ -269,7 +269,7 @@
269
269
  --LightSurfaceContainerLowestColor: 255 255 255;
270
270
  --LightSurfaceContainerLowColor: 247 242 250;
271
271
  --LightSurfaceContainerColor: 243 237 247;
272
- --LightSurfaceContainerHightColor: 236 230 240;
272
+ --LightSurfaceContainerHighColor: 236 230 240;
273
273
  --LightSurfaceContainerHighestColor: 230 224 233;
274
274
  --LightOnSurfaceColor: 28 27 31;
275
275
  --LightOnSurfaceVariantColor: 73 69 78;
@@ -300,7 +300,7 @@
300
300
  --DarkSurfaceContainerLowestColor: 15 13 19;
301
301
  --DarkSurfaceContainerLowColor: 29 27 32;
302
302
  --DarkSurfaceContainerColor: 33 31 38;
303
- --DarkSurfaceContainerHightColor: 43 41 48;
303
+ --DarkSurfaceContainerHighColor: 43 41 48;
304
304
  --DarkSurfaceContainerHighestColor: 54 52 59;
305
305
  --DarkOnSurfaceColor: 230 225 229;
306
306
  --DarkOnSurfaceVariantColor: 202 196 208;
@@ -331,7 +331,7 @@
331
331
  --surfaceContainerLowestColor: var(--LightSurfaceContainerLowestColor);
332
332
  --surfaceContainerLowColor: var(--LightSurfaceContainerLowColor);
333
333
  --surfaceContainerColor: var(--LightSurfaceContainerColor);
334
- --surfaceContainerHightColor: var(--LightSurfaceContainerHightColor);
334
+ --surfaceContainerHighColor: var(--LightSurfaceContainerHighColor);
335
335
  --surfaceContainerHighestColor: var(--LightSurfaceContainerHighestColor);
336
336
  --onSurfaceColor: var(--LightOnSurfaceColor);
337
337
  --onSurfaceRGBColor: var(--LightOnSurfaceRGBColor);
@@ -361,7 +361,7 @@
361
361
  --surfaceContainerLowestColor: var(--DarkSurfaceContainerLowestColor);
362
362
  --surfaceContainerLowColor: var(--DarkSurfaceContainerLowColor);
363
363
  --surfaceContainerColor: var(--DarkSurfaceContainerColor);
364
- --surfaceContainerHightColor: var(--DarkSurfaceContainerHightColor);
364
+ --surfaceContainerHighColor: var(--DarkSurfaceContainerHighColor);
365
365
  --surfaceContainerHighestColor: var(--DarkSurfaceContainerHighestColor);
366
366
  --onSurfaceColor: var(--DarkOnSurfaceColor);
367
367
  --onSurfaceRGBColor: var(--DarkOnSurfaceRGBColor);
@@ -392,7 +392,7 @@
392
392
  --surfaceContainerLowestColor: var(--DarkSurfaceContainerLowestColor);
393
393
  --surfaceContainerLowColor: var(--DarkSurfaceContainerLowColor);
394
394
  --surfaceContainerColor: var(--DarkSurfaceContainerColor);
395
- --surfaceContainerHightColor: var(--DarkSurfaceContainerHightColor);
395
+ --surfaceContainerHighColor: var(--DarkSurfaceContainerHighColor);
396
396
  --surfaceContainerHighestColor: var(--DarkSurfaceContainerHighestColor);
397
397
  --onSurfaceColor: var(--DarkOnSurfaceColor);
398
398
  --onSurfaceRGBColor: var(--DarkOnSurfaceRGBColor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.3.113",
3
+ "version": "1.3.115",
4
4
  "private": false,
5
5
  "author": "Natiq",
6
6
  "description": "UI components for NextJS/React",