@amboss/design-system 1.14.5 → 1.14.6
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/README.md +17 -10
- package/build/cjs/build-tokens/visualConfig.js +20 -185
- package/build/cjs/scss/themes/dark.scss +102 -102
- package/build/cjs/scss/themes/light.scss +102 -102
- package/build/cjs/src/components/Form/Toggle/Toggle.js +6 -6
- package/build/cjs/src/components/Form/ToggleButton/ToggleButton.js +8 -8
- package/build/cjs/src/components/LoadingSpinner/LoadingSpinner.js +4 -4
- package/build/cjs/src/components/MediaItem/MediaItem.js +5 -10
- package/build/cjs/src/components/Tabs/Tabs.js +3 -3
- package/build/esm/build-tokens/_breakpoints.json +17 -0
- package/build/esm/build-tokens/_colors.json +868 -0
- package/build/esm/build-tokens/_icon_sizes_map.json +7 -0
- package/build/esm/build-tokens/_sizes.json +782 -0
- package/build/esm/build-tokens/_zindex.json +17 -0
- package/build/esm/build-tokens/assets/icons.json +141 -0
- package/build/esm/build-tokens/assets/icons16.json +153 -0
- package/build/esm/build-tokens/assets/logo.json +3 -0
- package/build/esm/build-tokens/visualConfig.d.ts +10 -175
- package/build/esm/build-tokens/visualConfig.js +20 -185
- package/build/esm/build-tokens/visualConfig.js.map +1 -1
- package/build/esm/scss/themes/dark.scss +102 -102
- package/build/esm/scss/themes/light.scss +102 -102
- package/build/esm/src/components/Form/Toggle/Toggle.js +6 -6
- package/build/esm/src/components/Form/Toggle/Toggle.js.map +1 -1
- package/build/esm/src/components/Form/ToggleButton/ToggleButton.js +8 -8
- package/build/esm/src/components/Form/ToggleButton/ToggleButton.js.map +1 -1
- package/build/esm/src/components/LoadingSpinner/LoadingSpinner.js +4 -4
- package/build/esm/src/components/LoadingSpinner/LoadingSpinner.js.map +1 -1
- package/build/esm/src/components/MediaItem/MediaItem.d.ts +0 -7
- package/build/esm/src/components/MediaItem/MediaItem.js +5 -10
- package/build/esm/src/components/MediaItem/MediaItem.js.map +1 -1
- package/build/esm/src/components/Tabs/Tabs.js +3 -3
- package/build/esm/src/components/Tabs/Tabs.js.map +1 -1
- package/build/esm/src/types/index.d.ts +1 -1
- package/package.json +21 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sources":["../../../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["/* eslint-disable react/jsx-props-no-spreading */\n\nimport styled from \"@emotion/styled\";\nimport React from \"react\";\n\nimport { mq } from \"../../shared/mediaQueries\";\nimport { MQ, SpaceSizes } from \"../../types\";\nimport { Icon, IconName } from \"../Icon/Icon\";\nimport { Stack } from \"../Stack/Stack\";\n\nconst BORDER_BOTTOM_WIDTH = 4;\n\nconst StyledContainer = styled.div<{\n horizontalPadding: SpaceSizes | MQ<SpaceSizes>;\n}>(({ theme, horizontalPadding }) => ({\n display: \"flex\",\n flexDirection: \"row\",\n ...mq({\n gap: [[\"m\", \"l\", \"l\"], theme.variables.size.spacing],\n paddingInline: [horizontalPadding, theme.variables.size.spacing],\n }),\n\n paddingTop: theme.variables.size.spacing.m,\n borderBottom: `1px solid ${theme.values.color.border.secondary.default}`,\n\n whiteSpace: \"nowrap\",\n\n // Scrollbar\n overflow: \"auto\",\n scrollbarWidth: \"none\", // Firefox\n msOverflowStyle: \"none\", // IE 10+\n \"::-webkit-scrollbar\": {\n display: \"none\", // Chrome\n },\n}));\n\nconst StyledTab = styled.button<{ active: boolean }>(({ theme, active }) => ({\n display: \"flex\",\n gap: theme.variables.size.spacing.xxs,\n alignItems: \"center\",\n\n background: 0,\n border: 0,\n boxSizing: \"border-box\",\n color: theme.values.color.text.secondary.default,\n padding: 0,\n fontFamily: theme.variables.fontFamily.lato,\n fontWeight: theme.variables.weight.bold,\n fontSize: theme.variables.size.font.text.s,\n lineHeight: theme.variables.size.lineHeight.text.s,\n transition: \"background-color 0.15s\",\n textDecoration: \"none\",\n\n // Required to maintain consistent height for the selected tab\n borderBottom: `${BORDER_BOTTOM_WIDTH}px solid transparent`,\n paddingBottom: `calc(${theme.variables.size.spacing.m} - ${BORDER_BOTTOM_WIDTH}px)`,\n\n ...(active && {\n color: theme.values.color.text.accent.default,\n borderBottom: `${BORDER_BOTTOM_WIDTH}px solid ${theme.values.color.background.accent.default}`,\n }),\n ...(!active && {\n cursor: \"pointer\",\n \"&:hover\": {\n color: theme.values.color.text.primary.default,\n borderBottom: `${BORDER_BOTTOM_WIDTH}px solid ${theme.values.color.background.transparent.hover}`,\n },\n \"&:active\": {\n color: theme.values.color.text.primary.default,\n borderBottom: `${BORDER_BOTTOM_WIDTH}px solid ${theme.values.color.background.
|
|
1
|
+
{"version":3,"file":"Tabs.js","sources":["../../../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["/* eslint-disable react/jsx-props-no-spreading */\n\nimport styled from \"@emotion/styled\";\nimport React from \"react\";\n\nimport { mq } from \"../../shared/mediaQueries\";\nimport { MQ, SpaceSizes } from \"../../types\";\nimport { Icon, IconName } from \"../Icon/Icon\";\nimport { Stack } from \"../Stack/Stack\";\n\nconst BORDER_BOTTOM_WIDTH = 4;\n\nconst StyledContainer = styled.div<{\n horizontalPadding: SpaceSizes | MQ<SpaceSizes>;\n}>(({ theme, horizontalPadding }) => ({\n display: \"flex\",\n flexDirection: \"row\",\n ...mq({\n gap: [[\"m\", \"l\", \"l\"], theme.variables.size.spacing],\n paddingInline: [horizontalPadding, theme.variables.size.spacing],\n }),\n\n paddingTop: theme.variables.size.spacing.m,\n borderBottom: `1px solid ${theme.values.color.border.secondary.default}`,\n\n whiteSpace: \"nowrap\",\n\n // Scrollbar\n overflow: \"auto\",\n scrollbarWidth: \"none\", // Firefox\n msOverflowStyle: \"none\", // IE 10+\n \"::-webkit-scrollbar\": {\n display: \"none\", // Chrome\n },\n}));\n\nconst StyledTab = styled.button<{ active: boolean }>(({ theme, active }) => ({\n display: \"flex\",\n gap: theme.variables.size.spacing.xxs,\n alignItems: \"center\",\n\n background: 0,\n border: 0,\n boxSizing: \"border-box\",\n color: theme.values.color.text.secondary.default,\n padding: 0,\n fontFamily: theme.variables.fontFamily.lato,\n fontWeight: theme.variables.weight.bold,\n fontSize: theme.variables.size.font.text.s,\n lineHeight: theme.variables.size.lineHeight.text.s,\n transition: \"background-color 0.15s\",\n textDecoration: \"none\",\n\n // Required to maintain consistent height for the selected tab\n borderBottom: `${BORDER_BOTTOM_WIDTH}px solid transparent`,\n paddingBottom: `calc(${theme.variables.size.spacing.m} - ${BORDER_BOTTOM_WIDTH}px)`,\n\n ...(active && {\n color: theme.values.color.text.accent.default,\n borderBottom: `${BORDER_BOTTOM_WIDTH}px solid ${theme.values.color.background.accent.default}`,\n }),\n ...(!active && {\n cursor: \"pointer\",\n \"&:hover\": {\n color: theme.values.color.text.primary.default,\n borderBottom: `${BORDER_BOTTOM_WIDTH}px solid ${theme.values.color.background.transparent.hover}`,\n },\n \"&:active\": {\n color: theme.values.color.text.primary.default,\n borderBottom: `${BORDER_BOTTOM_WIDTH}px solid ${theme.values.color.background.highlight.default}`,\n },\n }),\n}));\n\nconst addSubtitle = (text: string) => (text ? `(${text})` : ``);\n\n/**\n * @param label - The text to display in the tab\n * @param sublabel - A subtext, encased in parentheses\n * @param icon - An icon to display to the left of the label\n * @param as - The element to render the tab as, defaults to `button`\n */\ntype Tab = {\n label: string;\n sublabel?: string;\n icon?: IconName;\n as?: \"a\" | \"button\" | React.ComponentType;\n} & Partial<React.ComponentProps<\"button\">> &\n Partial<React.ComponentProps<\"a\">>;\n\nexport type TabsProps = {\n children?: React.ReactElement;\n /** The index of the active tab */\n activeTab?: number;\n onTabSelect?: (selectedTab: number) => void;\n /** An array of tabs, contains `header`, `subtitle`, `iconLeft`, `as` (defining the tab as a button or a link) */\n tabs: Tab[];\n /** Horizontal padding space for the tab container, suited for tabs within a Card element */\n horizontalPadding?: SpaceSizes | MQ<SpaceSizes>; // 'm' | ['m', 'l', 'l']\n \"data-e2e-test-id\"?: string;\n};\n\nexport function Tabs({\n tabs,\n horizontalPadding,\n activeTab = 0,\n children,\n onTabSelect,\n \"data-e2e-test-id\": dataE2eTestId,\n}: TabsProps): React.ReactElement {\n return (\n <Stack data-e2e-test-id={dataE2eTestId} data-ds-id=\"Tabs\">\n <StyledContainer horizontalPadding={horizontalPadding}>\n {tabs.map(({ label, sublabel, icon, as = \"button\", ...rest }, i) => (\n <StyledTab\n type={as !== \"button\" ? undefined : \"button\"}\n as={as}\n key={label}\n active={activeTab === i}\n onClick={() => onTabSelect && onTabSelect(i)}\n {...rest}\n >\n {icon && <Icon size=\"s\" name={icon} />}\n {label} {addSubtitle(sublabel)}\n </StyledTab>\n ))}\n </StyledContainer>\n {children}\n </Stack>\n );\n}\n"],"names":["BORDER_BOTTOM_WIDTH","StyledContainer","_styled","process","env","NODE_ENV","target","label","_ref","theme","horizontalPadding","display","flexDirection","mq","gap","variables","size","spacing","paddingInline","paddingTop","m","borderBottom","values","color","border","secondary","default","whiteSpace","overflow","scrollbarWidth","msOverflowStyle","StyledTab","_ref2","active","xxs","alignItems","background","boxSizing","text","padding","fontFamily","lato","fontWeight","weight","bold","fontSize","font","s","lineHeight","transition","textDecoration","paddingBottom","accent","cursor","primary","transparent","hover","highlight","addSubtitle","Tabs","_ref3","tabs","activeTab","children","onTabSelect","dataE2eTestId","React","createElement","Stack","map","_ref4","i","sublabel","icon","as","rest","_extends","type","undefined","key","onClick","Icon","name"],"mappings":";;;;;;;AAUA,MAAMA,mBAAmB,GAAG,CAAC,CAAA;AAE7B,MAAMC,eAAe,gBAAGC,OAAA,CAAA,KAAA,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,KAAA,YAAA,GAAA;EAAAC,MAAA,EAAA,QAAA;AAAA,CAAA,GAAA;EAAAA,MAAA,EAAA,QAAA;EAAAC,KAAA,EAAA,iBAAA;AAAA,CAAA,CAAA,CAErBC,IAAA,IAAA;EAAA,IAAC;IAAEC,KAAK;AAAEC,IAAAA,iBAAAA;AAAkB,GAAC,GAAAF,IAAA,CAAA;EAAA,OAAM;AACpCG,IAAAA,OAAO,E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AAA;AAACS,IAAAA,iBAAiB,EAAEA,iBAAAA;AAAkB,GAAA,EACnDmD,IAAI,CAACQ,GAAG,CAAC,CAAAC,KAAA,EAAoDC,CAAC,KAAA;IAAA,IAApD;MAAEhE,KAAK;MAAEiE,QAAQ;MAAEC,IAAI;AAAEC,MAAAA,EAAE,GAAG,QAAQ;MAAE,GAAGC,IAAAA;AAAK,KAAC,GAAAL,KAAA,CAAA;AAAA,IAAA,oBAC1DJ,KAAA,CAAAC,aAAA,CAACpC,SAAS,EAAA6C,QAAA,CAAA;AACRC,MAAAA,IAAI,EAAEH,EAAE,KAAK,QAAQ,GAAGI,SAAS,GAAG,QAAS;AAC7CJ,MAAAA,EAAE,EAAEA,EAAG;AACPK,MAAAA,GAAG,EAAExE,KAAM;MACX0B,MAAM,EAAE6B,SAAS,KAAKS,CAAE;AACxBS,MAAAA,OAAO,EAAEA,MAAMhB,WAAW,IAAIA,WAAW,CAACO,CAAC,CAAA;KACvCI,EAAAA,IAAI,GAEPF,IAAI,iBAAIP,KAAA,CAAAC,aAAA,CAACc,IAAI,EAAA;AAACjE,MAAAA,IAAI,EAAC,GAAG;AAACkE,MAAAA,IAAI,EAAET,IAAAA;KAAO,CAAC,EACrClE,KAAK,EAAC,GAAC,EAACmD,WAAW,CAACc,QAAQ,CACpB,CAAC,CAAA;AAAA,GACb,CACc,CAAC,EACjBT,QACI,CAAC,CAAA;AAEZ;;;;"}
|
|
@@ -28,7 +28,7 @@ declare const TextColorsRuntype: Union<[Union<[Union<[Literal<"primary">, Litera
|
|
|
28
28
|
export declare type TextColors = Static<typeof TextColorsRuntype>;
|
|
29
29
|
declare const TextVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"info">, Literal<"error">, Literal<"warning">]>;
|
|
30
30
|
export declare type TextVariations = Static<typeof TextVariationsRuntype>;
|
|
31
|
-
declare const IconsColorsRuntime: Union<[Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"accent">]>, Literal<"info">, Literal<"error">, Literal<"warning">, Literal<"inherit">, Literal<"brand">]>;
|
|
31
|
+
declare const IconsColorsRuntime: Union<[Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"accent">]>, Literal<"info">, Literal<"error">, Literal<"warning">, Literal<"inherit">, Literal<"brand">, Literal<"quaternary">]>;
|
|
32
32
|
export declare type IconsColors = Static<typeof IconsColorsRuntime>;
|
|
33
33
|
declare const IconsVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"info">, Literal<"error">, Literal<"warning">, Literal<"inherit">, Literal<"brand">]>;
|
|
34
34
|
export declare type IconsVariations = Static<typeof IconsVariationsRuntype>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amboss/design-system",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.6",
|
|
4
4
|
"description": "the design system for AMBOSS products",
|
|
5
5
|
"author": "Bagrat Gobedashvili",
|
|
6
6
|
"license": "ISC",
|
|
@@ -55,17 +55,19 @@
|
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf build build-tokens",
|
|
57
57
|
"build": "./scripts/build.sh",
|
|
58
|
-
"prestart": "npm run tokens",
|
|
58
|
+
"prestart": "npm run tokens:web",
|
|
59
59
|
"start": "npm run tokens:watch & npm run storybook",
|
|
60
60
|
"static": "http-server storybook-static/ -p 6006",
|
|
61
61
|
"storybook": "storybook dev -p 6006",
|
|
62
|
-
"build-storybook": "npm run tokens && storybook build",
|
|
62
|
+
"build-storybook": "npm run tokens:web && storybook build",
|
|
63
63
|
"test": "jest",
|
|
64
64
|
"test:watch": "jest --watch",
|
|
65
65
|
"test:coverage": "TZ=Europe/Berlin jest --coverage",
|
|
66
66
|
"test:ci": "NODE_OPTIONS=\"--max-old-space-size=6144\" npm run test:coverage -- --ci --maxWorkers=2 --reporters=jest-junit",
|
|
67
|
-
"tokens": "node style-dictionary/
|
|
68
|
-
"tokens:
|
|
67
|
+
"tokens:web": "node style-dictionary/web/web.build.js",
|
|
68
|
+
"tokens:android": "node style-dictionary/android/android.build.js",
|
|
69
|
+
"tokens:ios": "node style-dictionary/ios/ios.build.js",
|
|
70
|
+
"tokens:watch": "chokidar \"tokens/**/*.json\" \"style-dictionary/**/*.*\" -c \"npm run tokens:web\"",
|
|
69
71
|
"tokens:prettier": "prettier --write \"build-tokens/*.(t|j)s*\"",
|
|
70
72
|
"chromatic": "npx chromatic --project-token ${CHROMATIC_TOKEN} --exit-zero-on-changes --only-changed",
|
|
71
73
|
"chromatic:ci": "npx chromatic --project-token ${CHROMATIC_TOKEN} --skip 'dependabot/**' --exit-zero-on-changes --only-changed",
|
|
@@ -89,7 +91,7 @@
|
|
|
89
91
|
"typescript"
|
|
90
92
|
],
|
|
91
93
|
"dependencies": {
|
|
92
|
-
"@babel/runtime": "^7.
|
|
94
|
+
"@babel/runtime": "^7.22.10",
|
|
93
95
|
"react-is": "^17.0.1",
|
|
94
96
|
"runtypes": "^6.3.0"
|
|
95
97
|
},
|
|
@@ -123,16 +125,16 @@
|
|
|
123
125
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
124
126
|
"@rollup/plugin-json": "^6.0.0",
|
|
125
127
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
126
|
-
"@storybook/addon-a11y": "^7.
|
|
127
|
-
"@storybook/addon-essentials": "^7.
|
|
128
|
-
"@storybook/addon-interactions": "^7.
|
|
129
|
-
"@storybook/addon-links": "^7.
|
|
130
|
-
"@storybook/addon-storysource": "^7.2
|
|
131
|
-
"@storybook/blocks": "^7.
|
|
132
|
-
"@storybook/manager-api": "^7.
|
|
133
|
-
"@storybook/react": "^7.
|
|
134
|
-
"@storybook/react-webpack5": "^7.
|
|
135
|
-
"@storybook/theming": "^7.
|
|
128
|
+
"@storybook/addon-a11y": "^7.3.2",
|
|
129
|
+
"@storybook/addon-essentials": "^7.3.2",
|
|
130
|
+
"@storybook/addon-interactions": "^7.3.2",
|
|
131
|
+
"@storybook/addon-links": "^7.3.2",
|
|
132
|
+
"@storybook/addon-storysource": "^7.3.2",
|
|
133
|
+
"@storybook/blocks": "^7.3.2",
|
|
134
|
+
"@storybook/manager-api": "^7.3.2",
|
|
135
|
+
"@storybook/react": "^7.3.2",
|
|
136
|
+
"@storybook/react-webpack5": "^7.3.2",
|
|
137
|
+
"@storybook/theming": "^7.3.2",
|
|
136
138
|
"@testing-library/jest-dom": "^5.11.5",
|
|
137
139
|
"@testing-library/react": "^11.1.0",
|
|
138
140
|
"@testing-library/user-event": "^13.0.1",
|
|
@@ -169,13 +171,15 @@
|
|
|
169
171
|
"jest-environment-jsdom": "^29.6.2",
|
|
170
172
|
"jest-junit": "^16.0.0",
|
|
171
173
|
"lint-staged": "^13.2.2",
|
|
174
|
+
"lodash": "^4.17.21",
|
|
172
175
|
"prettier": "^2.2.1",
|
|
173
176
|
"react": "^17.0.1",
|
|
174
177
|
"react-dom": "^17.0.1",
|
|
175
178
|
"rollup": "^3.21.0",
|
|
176
179
|
"slackify-markdown": "^4.1.0",
|
|
177
|
-
"storybook": "^7.
|
|
180
|
+
"storybook": "^7.3.2",
|
|
178
181
|
"style-dictionary": "^3.8.0",
|
|
182
|
+
"tinycolor2": "^1.6.0",
|
|
179
183
|
"ts-jest": "^29.1.1",
|
|
180
184
|
"typescript": "^4.1.2",
|
|
181
185
|
"webpack": "^5.73.0",
|