@worknice/whiteboard 0.65.0 → 0.66.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/dist/icons/components/AssignmentCertificate.js +2 -2
- package/dist/icons/components/AssignmentDocument.js +2 -2
- package/dist/icons/components/AssignmentForm.js +2 -2
- package/dist/icons/components/AssignmentQuestionnaire.js +2 -2
- package/dist/inputs/NumberInput.d.ts +2 -1
- package/dist/inputs/NumberInput.js +2 -1
- package/dist/inputs/SelectInput.d.ts +2 -1
- package/dist/inputs/SelectInput.js +2 -1
- package/dist/presentation/IconBadge.d.ts +2 -1
- package/dist/presentation/IconBadge.js +2 -1
- package/dist/presentation/IconBadge.module.js +1 -0
- package/dist/presentation/IconBadge.stories.d.ts +44 -0
- package/dist/presentation/IconBadge.stories.js +135 -0
- package/dist/presentation/IconBadge_module.css +5 -0
- package/dist/presentation/ProgressBar.d.ts +4 -2
- package/dist/presentation/ProgressBar.js +6 -2
- package/dist/presentation/ProgressBar.module.js +2 -1
- package/dist/presentation/ProgressBar.stories.d.ts +3 -1
- package/dist/presentation/ProgressBar_module.css +4 -0
- package/dist/presentation/RichList/RichList.js +1 -0
- package/dist/presentation/RichList/RichListRow.d.ts +7 -1
- package/dist/presentation/RichList/RichListRow.js +3 -2
- package/dist/presentation/RichList/RichListRow.module.js +1 -0
- package/dist/presentation/RichList/RichListRow_module.css +4 -0
- package/dist/presentation/RichList/RichList_module.css +2 -3
- package/dist/presentation/RichList/types.d.ts +17 -0
- package/dist/static/svg/AssignmentCertificate.svg +2 -2
- package/dist/static/svg/AssignmentDocument.svg +2 -2
- package/dist/static/svg/AssignmentForm.svg +2 -2
- package/dist/static/svg/AssignmentQuestionnaire.svg +2 -2
- package/package.json +2 -2
|
@@ -2,12 +2,12 @@ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/j
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__createIcon_js_4dc54f83__ from "../createIcon.js";
|
|
3
3
|
const AssignmentCertificateSvg = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
viewBox: "0 0
|
|
5
|
+
viewBox: "0 0 640 640",
|
|
6
6
|
fill: "currentColor",
|
|
7
7
|
"aria-hidden": "true",
|
|
8
8
|
...props,
|
|
9
9
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
|
|
10
|
-
d: "
|
|
10
|
+
d: "M224 112L336 112L336 200C336 239.8 368.2 272 408 272L496 272L496 512C496 520.8 488.8 528 480 528L288 528L288 576L480 576C515.3 576 544 547.3 544 512L544 250.5C544 233.5 537.3 217.2 525.3 205.2L402.7 82.7C390.7 70.7 374.5 64 357.5 64L224 64C188.7 64 160 92.7 160 128L160 208C176.6 208 192.7 210.3 208 214.6L208 128C208 119.2 215.2 112 224 112zM384 131.9L476.1 224L408 224C394.7 224 384 213.3 384 200L384 131.9zM288 384C288 313.3 230.7 256 160 256C89.3 256 32 313.3 32 384C32 424.4 50.7 460.5 80 483.9L80 589C80 599.5 88.5 608 99 608C102.3 608 105.5 607.1 108.4 605.5L160 576L211.6 605.5C214.5 607.1 217.7 608 221 608C231.5 608 240 599.5 240 589L240 483.9C269.3 460.4 288 424.4 288 384zM160 336C186.5 336 208 357.5 208 384C208 410.5 186.5 432 160 432C133.5 432 112 410.5 112 384C112 357.5 133.5 336 160 336z"
|
|
11
11
|
})
|
|
12
12
|
});
|
|
13
13
|
const AssignmentCertificate_rslib_entry_ = (0, __WEBPACK_EXTERNAL_MODULE__createIcon_js_4dc54f83__.createIcon)(AssignmentCertificateSvg);
|
|
@@ -2,12 +2,12 @@ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/j
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__createIcon_js_4dc54f83__ from "../createIcon.js";
|
|
3
3
|
const AssignmentDocumentSvg = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
viewBox: "0 0
|
|
5
|
+
viewBox: "0 0 640 640",
|
|
6
6
|
fill: "currentColor",
|
|
7
7
|
"aria-hidden": "true",
|
|
8
8
|
...props,
|
|
9
9
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
|
|
10
|
-
d: "
|
|
10
|
+
d: "M304 112L192 112C183.2 112 176 119.2 176 128L176 512C176 520.8 183.2 528 192 528L448 528C456.8 528 464 520.8 464 512L464 272L376 272C336.2 272 304 239.8 304 200L304 112zM444.1 224L352 131.9L352 200C352 213.3 362.7 224 376 224L444.1 224zM128 128C128 92.7 156.7 64 192 64L325.5 64C342.5 64 358.8 70.7 370.8 82.7L493.3 205.3C505.3 217.3 512 233.6 512 250.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM208 168C208 154.7 218.7 144 232 144L248 144C261.3 144 272 154.7 272 168C272 181.3 261.3 192 248 192L232 192C218.7 192 208 181.3 208 168zM208 248C208 234.7 218.7 224 232 224L248 224C261.3 224 272 234.7 272 248C272 261.3 261.3 272 248 272L232 272C218.7 272 208 261.3 208 248zM384 432L384 368L256 368L256 432L384 432zM208 440L208 360C208 337.9 225.9 320 248 320L392 320C414.1 320 432 337.9 432 360L432 440C432 462.1 414.1 480 392 480L248 480C225.9 480 208 462.1 208 440z"
|
|
11
11
|
})
|
|
12
12
|
});
|
|
13
13
|
const AssignmentDocument_rslib_entry_ = (0, __WEBPACK_EXTERNAL_MODULE__createIcon_js_4dc54f83__.createIcon)(AssignmentDocumentSvg);
|
|
@@ -2,12 +2,12 @@ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/j
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__createIcon_js_4dc54f83__ from "../createIcon.js";
|
|
3
3
|
const AssignmentFormSvg = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
viewBox: "0 0
|
|
5
|
+
viewBox: "0 0 640 640",
|
|
6
6
|
fill: "currentColor",
|
|
7
7
|
"aria-hidden": "true",
|
|
8
8
|
...props,
|
|
9
9
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
|
|
10
|
-
d: "
|
|
10
|
+
d: "M448 112C456.8 112 464 119.2 464 128L464 512C464 520.8 456.8 528 448 528L192 528C183.2 528 176 520.8 176 512L176 128C176 119.2 183.2 112 192 112L448 112zM192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 128C512 92.7 483.3 64 448 64L192 64zM208 192C208 209.7 222.3 224 240 224C257.7 224 272 209.7 272 192C272 174.3 257.7 160 240 160C222.3 160 208 174.3 208 192zM240 416C222.3 416 208 430.3 208 448C208 465.7 222.3 480 240 480C257.7 480 272 465.7 272 448C272 430.3 257.7 416 240 416zM304 192C304 205.3 314.7 216 328 216L408 216C421.3 216 432 205.3 432 192C432 178.7 421.3 168 408 168L328 168C314.7 168 304 178.7 304 192zM336 320C336 333.3 346.7 344 360 344L408 344C421.3 344 432 333.3 432 320C432 306.7 421.3 296 408 296L360 296C346.7 296 336 306.7 336 320zM304 448C304 461.3 314.7 472 328 472L408 472C421.3 472 432 461.3 432 448C432 434.7 421.3 424 408 424L328 424C314.7 424 304 434.7 304 448zM303.4 283.5C309.8 275 308 263 299.6 256.6C291.2 250.2 279.1 252 272.7 260.4L240 304L231.4 292.5C225 284 213 282.3 204.5 288.6C196 294.9 194.3 307 200.6 315.5L224.6 347.5C228.2 352.3 233.9 355.2 240 355.2C246.1 355.2 251.7 352.4 255.4 347.5L303.4 283.5z"
|
|
11
11
|
})
|
|
12
12
|
});
|
|
13
13
|
const AssignmentForm_rslib_entry_ = (0, __WEBPACK_EXTERNAL_MODULE__createIcon_js_4dc54f83__.createIcon)(AssignmentFormSvg);
|
|
@@ -2,12 +2,12 @@ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/j
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__createIcon_js_4dc54f83__ from "../createIcon.js";
|
|
3
3
|
const AssignmentQuestionnaireSvg = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
viewBox: "
|
|
5
|
+
viewBox: "0 0 640 640",
|
|
6
6
|
fill: "currentColor",
|
|
7
7
|
"aria-hidden": "true",
|
|
8
8
|
...props,
|
|
9
9
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("path", {
|
|
10
|
-
d: "
|
|
10
|
+
d: "M360 160L280 160C266.7 160 256 149.3 256 136C256 122.7 266.7 112 280 112L360 112C373.3 112 384 122.7 384 136C384 149.3 373.3 160 360 160zM360 208C397.1 208 427.6 180 431.6 144L448 144C456.8 144 464 151.2 464 160L464 512C464 520.8 456.8 528 448 528L192 528C183.2 528 176 520.8 176 512L176 160C176 151.2 183.2 144 192 144L208.4 144C212.4 180 242.9 208 280 208L360 208zM419.9 96C407 76.7 385 64 360 64L280 64C255 64 233 76.7 220.1 96L192 96C156.7 96 128 124.7 128 160L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 160C512 124.7 483.3 96 448 96L419.9 96z"
|
|
11
11
|
})
|
|
12
12
|
});
|
|
13
13
|
const AssignmentQuestionnaire_rslib_entry_ = (0, __WEBPACK_EXTERNAL_MODULE__createIcon_js_4dc54f83__.createIcon)(AssignmentQuestionnaireSvg);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Dispatch } from "react";
|
|
2
2
|
type Props = {
|
|
3
3
|
autoFocus?: boolean;
|
|
4
|
+
ariaLabel?: string;
|
|
4
5
|
decimalPlaces?: number;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
id?: string;
|
|
@@ -12,5 +13,5 @@ type Props = {
|
|
|
12
13
|
prefix?: string;
|
|
13
14
|
suffix?: string;
|
|
14
15
|
};
|
|
15
|
-
declare const NumberInput: ({ autoFocus, decimalPlaces, disabled, id, format, maxLength, onChange, placeholder, value, prefix, suffix, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const NumberInput: ({ autoFocus, ariaLabel, decimalPlaces, disabled, id, format, maxLength, onChange, placeholder, value, prefix, suffix, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export default NumberInput;
|
|
@@ -5,7 +5,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__NumberInput_module_js_5606faf2__ from "./
|
|
|
5
5
|
const DEFAULT_MAX_LENGTH = 10;
|
|
6
6
|
const MAXIMUM_MAX_LENGTH = 15;
|
|
7
7
|
const INTEGER_REGEX = /^\d*$/;
|
|
8
|
-
const NumberInput = ({ autoFocus = false, decimalPlaces, disabled, id, format = "integer", maxLength = DEFAULT_MAX_LENGTH, onChange, placeholder, value, prefix, suffix })=>{
|
|
8
|
+
const NumberInput = ({ autoFocus = false, ariaLabel, decimalPlaces, disabled, id, format = "integer", maxLength = DEFAULT_MAX_LENGTH, onChange, placeholder, value, prefix, suffix })=>{
|
|
9
9
|
const ref = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
10
10
|
const actualMaxLength = Math.min(maxLength, MAXIMUM_MAX_LENGTH);
|
|
11
11
|
const [displayValue, setDisplayValue] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null === value ? "" : value.toString());
|
|
@@ -54,6 +54,7 @@ const NumberInput = ({ autoFocus = false, decimalPlaces, disabled, id, format =
|
|
|
54
54
|
}) : null,
|
|
55
55
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
|
|
56
56
|
ref: ref,
|
|
57
|
+
"aria-label": ariaLabel,
|
|
57
58
|
autoFocus: autoFocus,
|
|
58
59
|
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__NumberInput_module_js_5606faf2__["default"].input, {
|
|
59
60
|
[__WEBPACK_EXTERNAL_MODULE__NumberInput_module_js_5606faf2__["default"].inputWithPrefix]: void 0 !== prefix,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Dispatch } from "react";
|
|
2
2
|
type Props<Option, Value> = {
|
|
3
3
|
autoFocus?: boolean;
|
|
4
|
+
ariaLabel?: string;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
id: string;
|
|
6
7
|
includeValueInTracking?: boolean;
|
|
@@ -10,5 +11,5 @@ type Props<Option, Value> = {
|
|
|
10
11
|
optionToLabel: (option: Option | Value) => string;
|
|
11
12
|
value: Option | Value;
|
|
12
13
|
};
|
|
13
|
-
declare const SelectInput: <Option = any, Value = never>({ autoFocus, disabled, id, onChange, options, optionToId, optionToLabel, value, }: Props<Option, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const SelectInput: <Option = any, Value = never>({ autoFocus, ariaLabel, disabled, id, onChange, options, optionToId, optionToLabel, value, }: Props<Option, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export default SelectInput;
|
|
@@ -6,7 +6,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__icons_components_CheckMark_js_cfe325a8__
|
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_ChevronDown_js_606de891__ from "../icons/components/ChevronDown.js";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_ChevronUp_js_68c56b29__ from "../icons/components/ChevronUp.js";
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__SelectInput_module_js_3ac344a1__ from "./SelectInput.module.js";
|
|
9
|
-
const SelectInput = ({ autoFocus = false, disabled = false, id, onChange, options, optionToId, optionToLabel, value })=>{
|
|
9
|
+
const SelectInput = ({ autoFocus = false, ariaLabel, disabled = false, id, onChange, options, optionToId, optionToLabel, value })=>{
|
|
10
10
|
const optionsRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)([]);
|
|
11
11
|
const optionsContentRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(options.map((option)=>optionToLabel(option)));
|
|
12
12
|
const listBoxRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
@@ -59,6 +59,7 @@ const SelectInput = ({ autoFocus = false, disabled = false, id, onChange, option
|
|
|
59
59
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
|
|
60
60
|
children: [
|
|
61
61
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("button", {
|
|
62
|
+
"aria-label": ariaLabel,
|
|
62
63
|
autoFocus: autoFocus,
|
|
63
64
|
disabled: disabled || !hasOptions,
|
|
64
65
|
className: __WEBPACK_EXTERNAL_MODULE__SelectInput_module_js_3ac344a1__["default"].toggleButton,
|
|
@@ -3,6 +3,7 @@ type Props = {
|
|
|
3
3
|
icon: ReactNode;
|
|
4
4
|
id?: string;
|
|
5
5
|
color: "blue" | "green" | "grey" | "maroon" | "orange" | "purple" | "red" | "teal" | "yellow";
|
|
6
|
+
size?: "default" | "large";
|
|
6
7
|
};
|
|
7
|
-
declare const IconBadge: ({ icon, id, color }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const IconBadge: ({ icon, id, color, size }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default IconBadge;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__IconBadge_module_js_cbb5a845__ from "./IconBadge.module.js";
|
|
4
|
-
const IconBadge = ({ icon, id, color = "grey" })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
4
|
+
const IconBadge = ({ icon, id, color = "grey", size = "default" })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
5
5
|
id: id,
|
|
6
6
|
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__IconBadge_module_js_cbb5a845__["default"].badge, {
|
|
7
|
+
[__WEBPACK_EXTERNAL_MODULE__IconBadge_module_js_cbb5a845__["default"].large]: "large" === size,
|
|
7
8
|
[__WEBPACK_EXTERNAL_MODULE__IconBadge_module_js_cbb5a845__["default"].blue]: "blue" === color,
|
|
8
9
|
[__WEBPACK_EXTERNAL_MODULE__IconBadge_module_js_cbb5a845__["default"].green]: "green" === color,
|
|
9
10
|
[__WEBPACK_EXTERNAL_MODULE__IconBadge_module_js_cbb5a845__["default"].grey]: "grey" === color,
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/nextjs-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
component: ({ icon, id, color, size }: {
|
|
4
|
+
icon: import("react").ReactNode;
|
|
5
|
+
id?: string;
|
|
6
|
+
color: "blue" | "green" | "grey" | "maroon" | "orange" | "purple" | "red" | "teal" | "yellow";
|
|
7
|
+
size?: "default" | "large";
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
title: string;
|
|
10
|
+
args: {
|
|
11
|
+
color: "grey";
|
|
12
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
id: string;
|
|
14
|
+
size: "default";
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
color: {
|
|
18
|
+
control: "select";
|
|
19
|
+
options: ["blue", "green", "grey", "maroon", "orange", "purple", "red", "teal", "yellow"];
|
|
20
|
+
};
|
|
21
|
+
icon: {
|
|
22
|
+
control: false;
|
|
23
|
+
table: {
|
|
24
|
+
type: {
|
|
25
|
+
summary: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
control: "radio";
|
|
31
|
+
options: string[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
parameters: {
|
|
35
|
+
layout: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export default meta;
|
|
39
|
+
type Story = StoryObj<typeof meta>;
|
|
40
|
+
export declare const Default: Story;
|
|
41
|
+
/** Matches paperwork list leading icons (`PaperworkAssignmentIcon`). */
|
|
42
|
+
export declare const Large: Story;
|
|
43
|
+
export declare const Colors: Story;
|
|
44
|
+
export declare const PaperworkTypes: Story;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentCertificate_js_fa8a03f5__ from "../icons/components/AssignmentCertificate.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentDocument_js_77dafcc0__ from "../icons/components/AssignmentDocument.js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentForm_js_bea25b7b__ from "../icons/components/AssignmentForm.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentQuestionnaire_js_c3311bf3__ from "../icons/components/AssignmentQuestionnaire.js";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Paperwork_js_65e48fee__ from "../icons/components/Paperwork.js";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__HStack_js_cc26058d__ from "./HStack.js";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__IconBadge_js_a428a515__ from "./IconBadge.js";
|
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__VStack_js_02eb6792__ from "./VStack.js";
|
|
10
|
+
const COLORS = [
|
|
11
|
+
"blue",
|
|
12
|
+
"green",
|
|
13
|
+
"grey",
|
|
14
|
+
"maroon",
|
|
15
|
+
"orange",
|
|
16
|
+
"purple",
|
|
17
|
+
"red",
|
|
18
|
+
"teal",
|
|
19
|
+
"yellow"
|
|
20
|
+
];
|
|
21
|
+
const defaultIcon = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentForm_js_bea25b7b__["default"], {
|
|
22
|
+
tone: "muted"
|
|
23
|
+
});
|
|
24
|
+
const meta = {
|
|
25
|
+
component: __WEBPACK_EXTERNAL_MODULE__IconBadge_js_a428a515__["default"],
|
|
26
|
+
title: "Presentation/IconBadge",
|
|
27
|
+
args: {
|
|
28
|
+
color: "grey",
|
|
29
|
+
icon: defaultIcon,
|
|
30
|
+
id: "icon-badge-story",
|
|
31
|
+
size: "default"
|
|
32
|
+
},
|
|
33
|
+
argTypes: {
|
|
34
|
+
color: {
|
|
35
|
+
control: "select",
|
|
36
|
+
options: COLORS
|
|
37
|
+
},
|
|
38
|
+
icon: {
|
|
39
|
+
control: false,
|
|
40
|
+
table: {
|
|
41
|
+
type: {
|
|
42
|
+
summary: "ReactNode"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
control: "radio",
|
|
48
|
+
options: [
|
|
49
|
+
"default",
|
|
50
|
+
"large"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
parameters: {
|
|
55
|
+
layout: "padded"
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const IconBadge_stories_rslib_entry_ = meta;
|
|
59
|
+
const Default = {};
|
|
60
|
+
const Large = {
|
|
61
|
+
args: {
|
|
62
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentForm_js_bea25b7b__["default"], {
|
|
63
|
+
size: "large",
|
|
64
|
+
tone: "muted"
|
|
65
|
+
}),
|
|
66
|
+
size: "large"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const Colors = {
|
|
70
|
+
args: {},
|
|
71
|
+
render: ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__HStack_js_cc26058d__["default"], {
|
|
72
|
+
spacing: "n2",
|
|
73
|
+
children: COLORS.map((color)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__IconBadge_js_a428a515__["default"], {
|
|
74
|
+
color: color,
|
|
75
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentDocument_js_77dafcc0__["default"], {
|
|
76
|
+
tone: "muted"
|
|
77
|
+
}),
|
|
78
|
+
id: `icon-badge-${color}`
|
|
79
|
+
}, color))
|
|
80
|
+
})
|
|
81
|
+
};
|
|
82
|
+
const PaperworkTypes = {
|
|
83
|
+
args: {},
|
|
84
|
+
render: ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__VStack_js_02eb6792__["default"], {
|
|
85
|
+
spacing: "n2",
|
|
86
|
+
children: [
|
|
87
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__IconBadge_js_a428a515__["default"], {
|
|
88
|
+
color: "grey",
|
|
89
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentCertificate_js_fa8a03f5__["default"], {
|
|
90
|
+
size: "large",
|
|
91
|
+
tone: "muted"
|
|
92
|
+
}),
|
|
93
|
+
id: "icon-badge-certificate",
|
|
94
|
+
size: "large"
|
|
95
|
+
}),
|
|
96
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__IconBadge_js_a428a515__["default"], {
|
|
97
|
+
color: "grey",
|
|
98
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentDocument_js_77dafcc0__["default"], {
|
|
99
|
+
size: "large",
|
|
100
|
+
tone: "muted"
|
|
101
|
+
}),
|
|
102
|
+
id: "icon-badge-document",
|
|
103
|
+
size: "large"
|
|
104
|
+
}),
|
|
105
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__IconBadge_js_a428a515__["default"], {
|
|
106
|
+
color: "grey",
|
|
107
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentForm_js_bea25b7b__["default"], {
|
|
108
|
+
size: "large",
|
|
109
|
+
tone: "muted"
|
|
110
|
+
}),
|
|
111
|
+
id: "icon-badge-form",
|
|
112
|
+
size: "large"
|
|
113
|
+
}),
|
|
114
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__IconBadge_js_a428a515__["default"], {
|
|
115
|
+
color: "grey",
|
|
116
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentQuestionnaire_js_c3311bf3__["default"], {
|
|
117
|
+
size: "large",
|
|
118
|
+
tone: "muted"
|
|
119
|
+
}),
|
|
120
|
+
id: "icon-badge-questionnaire",
|
|
121
|
+
size: "large"
|
|
122
|
+
}),
|
|
123
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__IconBadge_js_a428a515__["default"], {
|
|
124
|
+
color: "grey",
|
|
125
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Paperwork_js_65e48fee__["default"], {
|
|
126
|
+
size: "large",
|
|
127
|
+
tone: "muted"
|
|
128
|
+
}),
|
|
129
|
+
id: "icon-badge-paperwork",
|
|
130
|
+
size: "large"
|
|
131
|
+
})
|
|
132
|
+
]
|
|
133
|
+
})
|
|
134
|
+
};
|
|
135
|
+
export { Colors, Default, Large, PaperworkTypes, IconBadge_stories_rslib_entry_ as default };
|
|
@@ -3,9 +3,11 @@ type Props = {
|
|
|
3
3
|
percentage: number;
|
|
4
4
|
/** Optional human-readable description of progress for assistive tech (e.g. "3/5 steps complete"). */
|
|
5
5
|
ariaValueText?: string;
|
|
6
|
+
/** Fill colour of the bar. @default "green" */
|
|
7
|
+
color?: "green" | "purple";
|
|
6
8
|
};
|
|
7
9
|
/**
|
|
8
|
-
* Renders a horizontal progress bar with a
|
|
10
|
+
* Renders a horizontal progress bar with rounded sides and a configurable fill colour.
|
|
9
11
|
*/
|
|
10
|
-
declare const ProgressBar: ({ percentage, ariaValueText }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const ProgressBar: ({ percentage, ariaValueText, color }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export default ProgressBar;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__ProgressBar_module_js_913c4023__ from "./ProgressBar.module.js";
|
|
3
|
-
const
|
|
3
|
+
const FILL_CLASS = {
|
|
4
|
+
green: __WEBPACK_EXTERNAL_MODULE__ProgressBar_module_js_913c4023__["default"].fill,
|
|
5
|
+
purple: __WEBPACK_EXTERNAL_MODULE__ProgressBar_module_js_913c4023__["default"].fillPurple
|
|
6
|
+
};
|
|
7
|
+
const ProgressBar = ({ percentage, ariaValueText, color = "green" })=>{
|
|
4
8
|
const clamped = Math.max(0, Math.min(1, percentage)) || 0;
|
|
5
9
|
const percent = 100 * clamped;
|
|
6
10
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
@@ -11,7 +15,7 @@ const ProgressBar = ({ percentage, ariaValueText })=>{
|
|
|
11
15
|
"aria-valuemax": 100,
|
|
12
16
|
"aria-valuetext": ariaValueText,
|
|
13
17
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
14
|
-
className:
|
|
18
|
+
className: FILL_CLASS[color],
|
|
15
19
|
style: {
|
|
16
20
|
width: `${percent}%`
|
|
17
21
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/nextjs-vite";
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: ({ percentage, ariaValueText }: {
|
|
3
|
+
component: ({ percentage, ariaValueText, color }: {
|
|
4
4
|
percentage: number;
|
|
5
5
|
ariaValueText?: string;
|
|
6
|
+
color?: "green" | "purple";
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
args: {
|
|
8
9
|
percentage: number;
|
|
@@ -21,6 +22,7 @@ declare const meta: {
|
|
|
21
22
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/nextjs-vite").ReactRenderer, {
|
|
22
23
|
percentage: number;
|
|
23
24
|
ariaValueText?: string | undefined;
|
|
25
|
+
color?: "green" | "purple" | undefined;
|
|
24
26
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
25
27
|
};
|
|
26
28
|
export default meta;
|
|
@@ -587,6 +587,7 @@ const RichList = ({ data, getRowId, leadingSlot, mainSlot, contentSlots = EMPTY_
|
|
|
587
587
|
normalizedPrimary: normalizedPrimary,
|
|
588
588
|
normalizedSecondary: normalizedSecondary,
|
|
589
589
|
mainSlotMaxWidthPx: mainSlot.size,
|
|
590
|
+
shouldFillMainSlot: mainSlot.fill ?? false,
|
|
590
591
|
normalizedContentSlots: normalizedContentSlots,
|
|
591
592
|
normalizedTrailingSlots: normalizedTrailingSlots,
|
|
592
593
|
isCompactContentSlots: isCompactContentSlots,
|
|
@@ -21,6 +21,12 @@ type Props<Type> = {
|
|
|
21
21
|
* From `mainSlot.size`: max width (px) of the main-slot grid column (`--richlist-primary-track`).
|
|
22
22
|
*/
|
|
23
23
|
mainSlotMaxWidthPx: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* From `mainSlot.fill`: when `true` (and no `mainSlotMaxWidthPx`), the main slot column
|
|
26
|
+
* grows to absorb the row's leftover width instead of being capped. See
|
|
27
|
+
* `RichListMainSlot.fill` in types.ts for the usage contract.
|
|
28
|
+
*/
|
|
29
|
+
shouldFillMainSlot: boolean;
|
|
24
30
|
normalizedContentSlots: Array<NormalizedSlot<Type>>;
|
|
25
31
|
normalizedTrailingSlots: Array<NormalizedSlot<Type>>;
|
|
26
32
|
/**
|
|
@@ -39,5 +45,5 @@ type Props<Type> = {
|
|
|
39
45
|
actionsForRow: Array<RichListRowAction<Type>>;
|
|
40
46
|
lastSelectedRowRef: MutableRefObject<Row<Type> | undefined>;
|
|
41
47
|
};
|
|
42
|
-
declare const RichListRow: <Type>({ row, table, groupEntry, enableRowSelection, href, onClick, normalizedLeadingSlots, normalizedPrimary, normalizedSecondary, mainSlotMaxWidthPx, normalizedContentSlots, normalizedTrailingSlots, isCompactContentSlots, rowMainHidesContentSlotColumns, contentSlotsJustifyContent, actionsForRow, lastSelectedRowRef, }: Props<Type>) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
declare const RichListRow: <Type>({ row, table, groupEntry, enableRowSelection, href, onClick, normalizedLeadingSlots, normalizedPrimary, normalizedSecondary, mainSlotMaxWidthPx, shouldFillMainSlot, normalizedContentSlots, normalizedTrailingSlots, isCompactContentSlots, rowMainHidesContentSlotColumns, contentSlotsJustifyContent, actionsForRow, lastSelectedRowRef, }: Props<Type>) => import("react/jsx-runtime").JSX.Element;
|
|
43
49
|
export default RichListRow;
|
|
@@ -20,7 +20,7 @@ function contentSlotAlignClass(align) {
|
|
|
20
20
|
return __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].contentSlotStart;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
const RichListRow = ({ row, table, groupEntry, enableRowSelection, href, onClick, normalizedLeadingSlots, normalizedPrimary, normalizedSecondary, mainSlotMaxWidthPx, normalizedContentSlots, normalizedTrailingSlots, isCompactContentSlots, rowMainHidesContentSlotColumns, contentSlotsJustifyContent, actionsForRow, lastSelectedRowRef })=>{
|
|
23
|
+
const RichListRow = ({ row, table, groupEntry, enableRowSelection, href, onClick, normalizedLeadingSlots, normalizedPrimary, normalizedSecondary, mainSlotMaxWidthPx, shouldFillMainSlot, normalizedContentSlots, normalizedTrailingSlots, isCompactContentSlots, rowMainHidesContentSlotColumns, contentSlotsJustifyContent, actionsForRow, lastSelectedRowRef })=>{
|
|
24
24
|
const { Link } = (0, __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_c6ca8eb1__["default"])();
|
|
25
25
|
const rowOriginal = row.original;
|
|
26
26
|
const hrefValue = href ? href(rowOriginal) : void 0;
|
|
@@ -113,6 +113,7 @@ const RichListRow = ({ row, table, groupEntry, enableRowSelection, href, onClick
|
|
|
113
113
|
const rowMainStyle = void 0 !== mainSlotMaxWidthPx ? {
|
|
114
114
|
["--richlist-primary-track"]: `${mainSlotMaxWidthPx}px`
|
|
115
115
|
} : void 0;
|
|
116
|
+
const shouldFillMainSlotColumn = shouldFillMainSlot && void 0 === mainSlotMaxWidthPx && !rowMainHidesContentSlotColumns;
|
|
116
117
|
const rowOverlay = hrefValue ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Link, {
|
|
117
118
|
className: __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].rowLink,
|
|
118
119
|
href: hrefValue,
|
|
@@ -177,7 +178,7 @@ const RichListRow = ({ row, table, groupEntry, enableRowSelection, href, onClick
|
|
|
177
178
|
children: slot.render(rowOriginal)
|
|
178
179
|
}, slot.id)),
|
|
179
180
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
180
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].rowMain, rowMainHidesContentSlotColumns && __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].rowMainCompact),
|
|
181
|
+
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].rowMain, rowMainHidesContentSlotColumns && __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].rowMainCompact, shouldFillMainSlotColumn && __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].rowMainFill),
|
|
181
182
|
style: rowMainStyle,
|
|
182
183
|
children: [
|
|
183
184
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
@@ -18,6 +18,7 @@ const RichListRow_module_rslib_entry_ = {
|
|
|
18
18
|
checkboxLaneActive: "checkboxLaneActive-SAAKUd",
|
|
19
19
|
slotCell: "slotCell-nFtJJc",
|
|
20
20
|
rowMainCompact: "rowMainCompact-FP1jUy",
|
|
21
|
+
rowMainFill: "rowMainFill-qeFQ1h",
|
|
21
22
|
mainSlot: "mainSlot-G9ZgMV",
|
|
22
23
|
contentSlots: "contentSlots-_4Kf6I",
|
|
23
24
|
contentSlotFixed: "contentSlotFixed-Saogio",
|
|
@@ -38,11 +38,10 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.listHeader-LmUwi0 {
|
|
41
|
-
border-bottom: solid var(--size-n5) var(--color-grey-
|
|
41
|
+
border-bottom: solid var(--size-n5) var(--color-grey-t08);
|
|
42
42
|
box-sizing: border-box;
|
|
43
43
|
min-height: var(--row-height);
|
|
44
|
-
padding
|
|
45
|
-
padding-inline: var(--richlist-padding-inline, var(--size-n1));
|
|
44
|
+
padding: var(--size-00);
|
|
46
45
|
flex-shrink: 0;
|
|
47
46
|
align-items: center;
|
|
48
47
|
width: 100%;
|
|
@@ -127,6 +127,23 @@ export type RichListMainSlot<Type> = {
|
|
|
127
127
|
* Omit to let the layout choose a width (see `RichListRow` / grid track fallback).
|
|
128
128
|
*/
|
|
129
129
|
size?: number;
|
|
130
|
+
/**
|
|
131
|
+
* When `true`, the main slot column **grows to absorb the row's leftover width** instead
|
|
132
|
+
* of being capped — the main slot takes `1fr` while the content track sizes to its content,
|
|
133
|
+
* so the main slot only truncates when it runs out of room.
|
|
134
|
+
*
|
|
135
|
+
* To keep the columns aligned across rows, pair this with:
|
|
136
|
+
* - **fixed-size content slots**, so the `auto` content track (which lives inside the main
|
|
137
|
+
* grid) stays a constant width; and
|
|
138
|
+
* - **fixed-size trailing slots**, so the row's leftover width — the `1fr` the main slot
|
|
139
|
+
* absorbs — is constant. (Trailing slots sit outside the main grid in the outer row flex,
|
|
140
|
+
* so they affect the leftover width rather than the content track.)
|
|
141
|
+
*
|
|
142
|
+
* Ignored when `size` is set (an explicit cap takes precedence), and in the compact
|
|
143
|
+
* (single-track) layout.
|
|
144
|
+
* @default `false`
|
|
145
|
+
*/
|
|
146
|
+
fill?: boolean;
|
|
130
147
|
};
|
|
131
148
|
/**
|
|
132
149
|
* Common fields shared by leading, content (`contentSlots`), and trailing slots in
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" fill="currentColor">
|
|
2
|
+
<path d="M224 112L336 112L336 200C336 239.8 368.2 272 408 272L496 272L496 512C496 520.8 488.8 528 480 528L288 528L288 576L480 576C515.3 576 544 547.3 544 512L544 250.5C544 233.5 537.3 217.2 525.3 205.2L402.7 82.7C390.7 70.7 374.5 64 357.5 64L224 64C188.7 64 160 92.7 160 128L160 208C176.6 208 192.7 210.3 208 214.6L208 128C208 119.2 215.2 112 224 112zM384 131.9L476.1 224L408 224C394.7 224 384 213.3 384 200L384 131.9zM288 384C288 313.3 230.7 256 160 256C89.3 256 32 313.3 32 384C32 424.4 50.7 460.5 80 483.9L80 589C80 599.5 88.5 608 99 608C102.3 608 105.5 607.1 108.4 605.5L160 576L211.6 605.5C214.5 607.1 217.7 608 221 608C231.5 608 240 599.5 240 589L240 483.9C269.3 460.4 288 424.4 288 384zM160 336C186.5 336 208 357.5 208 384C208 410.5 186.5 432 160 432C133.5 432 112 410.5 112 384C112 357.5 133.5 336 160 336z" />
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" fill="currentColor">
|
|
2
|
+
<path d="M304 112L192 112C183.2 112 176 119.2 176 128L176 512C176 520.8 183.2 528 192 528L448 528C456.8 528 464 520.8 464 512L464 272L376 272C336.2 272 304 239.8 304 200L304 112zM444.1 224L352 131.9L352 200C352 213.3 362.7 224 376 224L444.1 224zM128 128C128 92.7 156.7 64 192 64L325.5 64C342.5 64 358.8 70.7 370.8 82.7L493.3 205.3C505.3 217.3 512 233.6 512 250.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM208 168C208 154.7 218.7 144 232 144L248 144C261.3 144 272 154.7 272 168C272 181.3 261.3 192 248 192L232 192C218.7 192 208 181.3 208 168zM208 248C208 234.7 218.7 224 232 224L248 224C261.3 224 272 234.7 272 248C272 261.3 261.3 272 248 272L232 272C218.7 272 208 261.3 208 248zM384 432L384 368L256 368L256 432L384 432zM208 440L208 360C208 337.9 225.9 320 248 320L392 320C414.1 320 432 337.9 432 360L432 440C432 462.1 414.1 480 392 480L248 480C225.9 480 208 462.1 208 440z" />
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" fill="currentColor">
|
|
2
|
+
<path d="M448 112C456.8 112 464 119.2 464 128L464 512C464 520.8 456.8 528 448 528L192 528C183.2 528 176 520.8 176 512L176 128C176 119.2 183.2 112 192 112L448 112zM192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 128C512 92.7 483.3 64 448 64L192 64zM208 192C208 209.7 222.3 224 240 224C257.7 224 272 209.7 272 192C272 174.3 257.7 160 240 160C222.3 160 208 174.3 208 192zM240 416C222.3 416 208 430.3 208 448C208 465.7 222.3 480 240 480C257.7 480 272 465.7 272 448C272 430.3 257.7 416 240 416zM304 192C304 205.3 314.7 216 328 216L408 216C421.3 216 432 205.3 432 192C432 178.7 421.3 168 408 168L328 168C314.7 168 304 178.7 304 192zM336 320C336 333.3 346.7 344 360 344L408 344C421.3 344 432 333.3 432 320C432 306.7 421.3 296 408 296L360 296C346.7 296 336 306.7 336 320zM304 448C304 461.3 314.7 472 328 472L408 472C421.3 472 432 461.3 432 448C432 434.7 421.3 424 408 424L328 424C314.7 424 304 434.7 304 448zM303.4 283.5C309.8 275 308 263 299.6 256.6C291.2 250.2 279.1 252 272.7 260.4L240 304L231.4 292.5C225 284 213 282.3 204.5 288.6C196 294.9 194.3 307 200.6 315.5L224.6 347.5C228.2 352.3 233.9 355.2 240 355.2C246.1 355.2 251.7 352.4 255.4 347.5L303.4 283.5z" />
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="
|
|
2
|
-
<path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" fill="currentColor">
|
|
2
|
+
<path d="M360 160L280 160C266.7 160 256 149.3 256 136C256 122.7 266.7 112 280 112L360 112C373.3 112 384 122.7 384 136C384 149.3 373.3 160 360 160zM360 208C397.1 208 427.6 180 431.6 144L448 144C456.8 144 464 151.2 464 160L464 512C464 520.8 456.8 528 448 528L192 528C183.2 528 176 520.8 176 512L176 160C176 151.2 183.2 144 192 144L208.4 144C212.4 180 242.9 208 280 208L360 208zM419.9 96C407 76.7 385 64 360 64L280 64C255 64 233 76.7 220.1 96L192 96C156.7 96 128 124.7 128 160L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 160C512 124.7 483.3 96 448 96L419.9 96z" />
|
|
3
3
|
</svg>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worknice/whiteboard",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.66.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-markdown": "^10.1.0",
|
|
40
40
|
"utf8": "^3.0.0",
|
|
41
41
|
"zod": "^4.1.13",
|
|
42
|
-
"@worknice/utils": "^0.
|
|
42
|
+
"@worknice/utils": "^0.49.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@anolilab/semantic-release-pnpm": "^3.2.2",
|