@obosbbl/grunnmuren-react 1.6.0 → 1.6.2
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.
|
@@ -10,4 +10,4 @@ export interface CheckboxProps extends React.ComponentPropsWithRef<'input'> {
|
|
|
10
10
|
/** Disables the built in HTML5 validation. If using custom validation for an entire form, consider setting `noValidate` on the form element instead. @default false */
|
|
11
11
|
disableValidation?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const Checkbox: import("react").ForwardRefExoticComponent<Pick<CheckboxProps, "form" | "error" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "value" | "list" | "step" | "autoComplete" | "accept" | "alt" | "autoFocus" | "capture" | "checked" | "disabled" | "multiple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "src" | "crossOrigin" | "height" | "width" | "name" | "type" | "enterKeyHint" | "max" | "min" | "readOnly" | "required" | "size" | "disableValidation"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
13
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Pick<CheckboxProps, "form" | "error" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "value" | "list" | "step" | "autoComplete" | "accept" | "alt" | "autoFocus" | "capture" | "checked" | "disabled" | "multiple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "src" | "crossOrigin" | "height" | "width" | "name" | "type" | "enterKeyHint" | "max" | "min" | "readOnly" | "required" | "size" | "disableValidation"> & import("react").RefAttributes<HTMLInputElement>>;
|
package/dist/grunnmuren.es.js
CHANGED
|
@@ -98,14 +98,14 @@ const LoadingSpinner = (props) => /* @__PURE__ */ jsx("svg", __spreadProps2(__sp
|
|
|
98
98
|
width: "1.25em",
|
|
99
99
|
height: "1.25em",
|
|
100
100
|
fill: "none",
|
|
101
|
-
viewBox: "0 0
|
|
101
|
+
viewBox: "0 0 30 30",
|
|
102
102
|
role: "img",
|
|
103
103
|
"aria-hidden": props["aria-label"] == null
|
|
104
104
|
}, props), {
|
|
105
105
|
children: /* @__PURE__ */ jsx("path", {
|
|
106
106
|
fill: "currentColor",
|
|
107
107
|
fillRule: "evenodd",
|
|
108
|
-
d: "
|
|
108
|
+
d: "M14.4018 0.0119327C16.9653 -0.0903685 19.5121 0.466497 21.7989 1.6293C24.0856 2.79211 26.036 4.522 27.4635 6.65362C28.8909 8.78525 29.7479 11.2474 29.9523 13.8047C30.1567 16.3619 29.7019 18.9289 28.6312 21.2603C27.5605 23.5916 25.9097 25.6094 23.8367 27.1207C22.7211 27.9341 21.1572 27.6891 20.3438 26.5734C19.5304 25.4577 19.7755 23.8939 20.8912 23.0805C22.2732 22.0729 23.3737 20.7277 24.0874 19.1735C24.8012 17.6193 25.1045 15.908 24.9682 14.2031C24.8319 12.4982 24.2606 10.8568 23.309 9.43575C22.3573 8.01466 21.0571 6.86141 19.5326 6.0862C18.008 5.311 16.3102 4.93975 14.6012 5.00796C12.8923 5.07616 11.2294 5.58152 9.7715 6.47575C8.3136 7.36998 7.10942 8.62318 6.27403 10.1156C5.43865 11.608 5 13.2897 5 15C5 16.3807 3.88071 17.5 2.5 17.5C1.11929 17.5 0 16.3807 0 15C0 12.4346 0.657978 9.91198 1.91105 7.67337C3.16412 5.43477 4.97041 3.55497 7.15726 2.21362C9.34411 0.872282 11.8384 0.114234 14.4018 0.0119327ZM14.5 30C15.8807 30 17 28.8807 17 27.5C17 26.1193 15.8807 25 14.5 25C13.1193 25 12 26.1193 12 27.5C12 28.8807 13.1193 30 14.5 30Z",
|
|
109
109
|
clipRule: "evenodd"
|
|
110
110
|
})
|
|
111
111
|
}));
|
|
@@ -568,7 +568,7 @@ const CardContent = (props) => {
|
|
|
568
568
|
"className"
|
|
569
569
|
]);
|
|
570
570
|
return /* @__PURE__ */ jsx("div", __spreadValues({
|
|
571
|
-
className: cx(className, "p-8 md:
|
|
571
|
+
className: cx(className, "p-8 md:px-10")
|
|
572
572
|
}, rest));
|
|
573
573
|
};
|
|
574
574
|
const CardLinkOverlay = forwardRef((props, ref) => {
|
|
@@ -1060,7 +1060,7 @@ const NavbarItem = forwardRef((props, ref) => {
|
|
|
1060
1060
|
return /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({
|
|
1061
1061
|
"aria-current": active ? "page" : void 0,
|
|
1062
1062
|
className: cx(className, "border-b border-[#0156E0] py-3 no-underline md:border-b-2 md:border-transparent md:py-2 md:hover:border-white", {
|
|
1063
|
-
"
|
|
1063
|
+
"md:bg-blue-dark font-bold md:-mx-3 md:rounded-t-lg md:px-3": active
|
|
1064
1064
|
}),
|
|
1065
1065
|
ref
|
|
1066
1066
|
}, rest), {
|
|
@@ -1314,7 +1314,7 @@ const StepListItem = (props) => {
|
|
|
1314
1314
|
"bullet"
|
|
1315
1315
|
]);
|
|
1316
1316
|
return /* @__PURE__ */ jsxs("li", __spreadProps(__spreadValues({
|
|
1317
|
-
className: cx(className, "group relative flex gap-4 pb-8 text-sm last:pb-0 md:gap-8 md:pb-12 md:text-base")
|
|
1317
|
+
className: cx(className, "group relative flex items-center gap-4 pb-8 text-sm last:pb-0 md:gap-8 md:pb-12 md:text-base")
|
|
1318
1318
|
}, rest), {
|
|
1319
1319
|
children: [/* @__PURE__ */ jsx(StepListBullet, {
|
|
1320
1320
|
children: bullet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obosbbl/grunnmuren-react",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "OBOS Grunnmuren design system React components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/core": "7.19.6",
|
|
21
|
-
"@obosbbl/grunnmuren-tailwind": "0.8.0",
|
|
22
21
|
"@storybook/addon-controls": "6.5.13",
|
|
23
22
|
"@storybook/addon-docs": "6.5.13",
|
|
24
23
|
"@storybook/addon-postcss": "2.0.0",
|
|
25
24
|
"@storybook/builder-webpack5": "6.5.13",
|
|
26
25
|
"@storybook/manager-webpack5": "6.5.13",
|
|
27
26
|
"@storybook/react": "6.5.13",
|
|
28
|
-
"@types/react": "18.0.
|
|
27
|
+
"@types/react": "18.0.25",
|
|
29
28
|
"@types/react-dom": "18.0.8",
|
|
30
29
|
"@vitejs/plugin-react": "1.3.2",
|
|
31
30
|
"postcss": "8.4.18",
|
|
@@ -33,19 +32,20 @@
|
|
|
33
32
|
"react-dom": "18.2.0",
|
|
34
33
|
"require-from-string": "2.0.2",
|
|
35
34
|
"rimraf": "3.0.2",
|
|
36
|
-
"tailwindcss": "3.2.
|
|
35
|
+
"tailwindcss": "3.2.4",
|
|
37
36
|
"vite": "2.9.15",
|
|
38
|
-
"webpack": "5.74.0"
|
|
37
|
+
"webpack": "5.74.0",
|
|
38
|
+
"@obosbbl/grunnmuren-tailwind": "0.8.3"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@obosbbl/grunnmuren-icons": "^0.5.0",
|
|
42
41
|
"@seznam/compose-react-refs": "1.0.6",
|
|
43
42
|
"clsx": "1.2.1",
|
|
44
43
|
"react-collapsed": "3.5.0",
|
|
45
|
-
"react-use": "17.4.0"
|
|
44
|
+
"react-use": "17.4.0",
|
|
45
|
+
"@obosbbl/grunnmuren-icons": "^0.5.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@obosbbl/grunnmuren-tailwind": "^0.8",
|
|
48
|
+
"@obosbbl/grunnmuren-tailwind": "^0.8.3",
|
|
49
49
|
"react": "^18"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|