@kvib/storybook
Advanced tools
Comparing version 1.0.0 to 1.0.1
module.exports = { | ||
staticDirs: ["../public"], | ||
stories: ["../stories/**/*.mdx", "../stories/**/*.stories.@(js|jsx|ts|tsx)"], | ||
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions"], | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
"@storybook/addon-a11y", | ||
], | ||
framework: { | ||
@@ -5,0 +11,0 @@ name: "@storybook/react-webpack5", |
@@ -1,2 +0,2 @@ | ||
import { KvibProvider } from "@kvib/react/src/KvibProvider"; | ||
import { KvibProvider } from "@kvib/react/src/provider/KvibProvider"; | ||
@@ -11,2 +11,16 @@ export const parameters = { | ||
}, | ||
options: { | ||
storySort: { | ||
method: "alphabetical", | ||
order: [ | ||
"Info", | ||
["Introduksjon", "Oppsett", "Bidra", ["Generelt", "Bygge", "Style", "Dokumentere", "Teste", "Publish"]], | ||
"Playground", | ||
"Design Fundament", | ||
"Hooks", | ||
"Komponenter", | ||
["Data Display", "Layout", "Typografi"], | ||
], | ||
}, | ||
}, | ||
}; | ||
@@ -21,1 +35,68 @@ | ||
]; | ||
const STORYBOOK_DISABLE_CONTROL = { table: { disable: true } }; | ||
export const argTypes = { | ||
as: STORYBOOK_DISABLE_CONTROL, | ||
htmlTranslate: STORYBOOK_DISABLE_CONTROL, | ||
_hover: STORYBOOK_DISABLE_CONTROL, | ||
_active: STORYBOOK_DISABLE_CONTROL, | ||
_focus: STORYBOOK_DISABLE_CONTROL, | ||
_highlighted: STORYBOOK_DISABLE_CONTROL, | ||
_focusWithin: STORYBOOK_DISABLE_CONTROL, | ||
_focusVisible: STORYBOOK_DISABLE_CONTROL, | ||
_disabled: STORYBOOK_DISABLE_CONTROL, | ||
_readOnly: STORYBOOK_DISABLE_CONTROL, | ||
_before: STORYBOOK_DISABLE_CONTROL, | ||
_after: STORYBOOK_DISABLE_CONTROL, | ||
_empty: STORYBOOK_DISABLE_CONTROL, | ||
_expanded: STORYBOOK_DISABLE_CONTROL, | ||
_checked: STORYBOOK_DISABLE_CONTROL, | ||
_grabbed: STORYBOOK_DISABLE_CONTROL, | ||
_pressed: STORYBOOK_DISABLE_CONTROL, | ||
_invalid: STORYBOOK_DISABLE_CONTROL, | ||
_valid: STORYBOOK_DISABLE_CONTROL, | ||
_loading: STORYBOOK_DISABLE_CONTROL, | ||
_selected: STORYBOOK_DISABLE_CONTROL, | ||
_hidden: STORYBOOK_DISABLE_CONTROL, | ||
_autofill: STORYBOOK_DISABLE_CONTROL, | ||
_even: STORYBOOK_DISABLE_CONTROL, | ||
_odd: STORYBOOK_DISABLE_CONTROL, | ||
_first: STORYBOOK_DISABLE_CONTROL, | ||
_firstLetter: STORYBOOK_DISABLE_CONTROL, | ||
_last: STORYBOOK_DISABLE_CONTROL, | ||
_notFirst: STORYBOOK_DISABLE_CONTROL, | ||
_notLast: STORYBOOK_DISABLE_CONTROL, | ||
_visited: STORYBOOK_DISABLE_CONTROL, | ||
_activeLink: STORYBOOK_DISABLE_CONTROL, | ||
_activeStep: STORYBOOK_DISABLE_CONTROL, | ||
_indeterminate: STORYBOOK_DISABLE_CONTROL, | ||
_groupHover: STORYBOOK_DISABLE_CONTROL, | ||
_peerHover: STORYBOOK_DISABLE_CONTROL, | ||
_groupFocus: STORYBOOK_DISABLE_CONTROL, | ||
_peerFocus: STORYBOOK_DISABLE_CONTROL, | ||
_groupFocusVisible: STORYBOOK_DISABLE_CONTROL, | ||
_peerFocusVisible: STORYBOOK_DISABLE_CONTROL, | ||
_groupActive: STORYBOOK_DISABLE_CONTROL, | ||
_peerActive: STORYBOOK_DISABLE_CONTROL, | ||
_groupDisabled: STORYBOOK_DISABLE_CONTROL, | ||
_peerDisabled: STORYBOOK_DISABLE_CONTROL, | ||
_groupInvalid: STORYBOOK_DISABLE_CONTROL, | ||
_peerInvalid: STORYBOOK_DISABLE_CONTROL, | ||
_groupChecked: STORYBOOK_DISABLE_CONTROL, | ||
_peerChecked: STORYBOOK_DISABLE_CONTROL, | ||
_groupFocusWithin: STORYBOOK_DISABLE_CONTROL, | ||
_peerFocusWithin: STORYBOOK_DISABLE_CONTROL, | ||
_peerPlaceholderShown: STORYBOOK_DISABLE_CONTROL, | ||
_placeholder: STORYBOOK_DISABLE_CONTROL, | ||
_placeholderShown: STORYBOOK_DISABLE_CONTROL, | ||
_fullScreen: STORYBOOK_DISABLE_CONTROL, | ||
_selection: STORYBOOK_DISABLE_CONTROL, | ||
_rtl: STORYBOOK_DISABLE_CONTROL, | ||
_ltr: STORYBOOK_DISABLE_CONTROL, | ||
_mediaDark: STORYBOOK_DISABLE_CONTROL, | ||
_mediaReduceMotion: STORYBOOK_DISABLE_CONTROL, | ||
_dark: STORYBOOK_DISABLE_CONTROL, | ||
_light: STORYBOOK_DISABLE_CONTROL, | ||
_vertical: STORYBOOK_DISABLE_CONTROL, | ||
_horizontal: STORYBOOK_DISABLE_CONTROL, | ||
}; |
@@ -6,6 +6,6 @@ import { create } from "@storybook/theming"; | ||
base: "light", | ||
brandTitle: "KVIB Components", | ||
brandUrl: "https://kartverket.no", | ||
brandTitle: "KVIB", | ||
brandUrl: "https://kartverket.github.io/kvib/storybook", | ||
brandImage: logo, | ||
brandTarget: "_self", | ||
}); |
{ | ||
"name": "@kvib/storybook", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -10,3 +10,5 @@ "main": "index.js", | ||
"build": "storybook build", | ||
"postbuild": "mv storybook-static/index.html storybook-static/storybook.html && cp index.html storybook-static/index.html" | ||
"build-storybook": "storybook build", | ||
"postbuild": "mv storybook-static/index.html storybook-static/storybook.html && cp index.html storybook-static/index.html", | ||
"test-storybook": "test-storybook" | ||
}, | ||
@@ -28,6 +30,9 @@ "keywords": [], | ||
"@storybook/react-webpack5": "^7.0.0-rc.4", | ||
"@storybook/test-runner": "^0.11.0", | ||
"@storybook/testing-library": "^0.0.14-next.1", | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11", | ||
"axe-playwright": "^1.2.3", | ||
"babel-loader": "^9.1.2", | ||
"chromatic": "^6.20.0", | ||
"react": "^18.2.0", | ||
@@ -37,3 +42,6 @@ "react-dom": "^18.2.0", | ||
"typescript": "^5.0.2" | ||
}, | ||
"dependencies": { | ||
"@storybook/addon-a11y": "^7.0.23" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
503280
164
7547
1
22
1
+ Added@storybook/addon-a11y@7.6.20(transitive)
+ Added@storybook/addon-highlight@7.6.20(transitive)
+ Added@storybook/global@5.0.0(transitive)
+ Addedaxe-core@4.10.2(transitive)