@preply/ds-web-core 11.0.0 → 11.1.0
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/actions/style/mixins.less +4 -12
- package/dist/generated/breakpoints.less +1 -1
- package/dist/generated/breakpoints.scss +1 -1
- package/dist/generated/hover.less +1 -1
- package/dist/generated/hover.scss +1 -1
- package/dist/generated/options.less +1 -1
- package/dist/generated/options.scss +1 -1
- package/dist/generated/tokens.less +1 -1
- package/dist/generated/tokens.scss +1 -1
- package/dist/index.js +14 -14
- package/package.json +7 -7
|
@@ -4,28 +4,20 @@
|
|
|
4
4
|
@import '../../theme/style/declarations.mixins.less';
|
|
5
5
|
@import '../../gradient-border/mixin.less';
|
|
6
6
|
|
|
7
|
-
.computedVerticalPadding(@size) {
|
|
8
|
-
padding-top: 6px;
|
|
9
|
-
padding-bottom: 6px;
|
|
10
|
-
|
|
11
|
-
line-height: 1.33333333;
|
|
12
|
-
|
|
13
|
-
& when (@size =small) {
|
|
14
|
-
line-height: 1.14285714;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
7
|
.action-sizes() {
|
|
19
8
|
.responsive({
|
|
20
9
|
each(@BUTTON_SIZE_OPTIONS, {
|
|
21
10
|
|
|
22
11
|
&--size-@{value} {
|
|
12
|
+
padding-top: 6px;
|
|
13
|
+
padding-bottom: 6px;
|
|
14
|
+
|
|
23
15
|
@token: 'size-@{value}';
|
|
24
16
|
.min-height('action', @token);
|
|
25
|
-
.computedVerticalPadding(@value);
|
|
26
17
|
.horizontalPadding('action', @token);
|
|
27
18
|
.font-size('action', @token);
|
|
28
19
|
.letter-spacing('action', @token);
|
|
20
|
+
.line-height('action', @token);
|
|
29
21
|
}
|
|
30
22
|
|
|
31
23
|
&--is-icon-button-size-@{value} {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/breakpoints/web-core-breakpoints-less.ts @
|
|
1
|
+
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/breakpoints/web-core-breakpoints-less.ts @Tue Mar 24 2026 10:02:20 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
@breakpoints: {
|
|
4
4
|
narrow-l: 400px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/breakpoints/web-core-breakpoints-scss.ts @
|
|
1
|
+
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/breakpoints/web-core-breakpoints-scss.ts @Tue Mar 24 2026 10:02:20 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
$breakpoints: (
|
|
4
4
|
narrow-l: 400px,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/hover/web-core-hover-less.ts @
|
|
1
|
+
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/hover/web-core-hover-less.ts @Tue Mar 24 2026 10:02:20 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
.onHover(@styles) {
|
|
4
4
|
@media (hover: hover) and (pointer: fine) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/hover/web-core-hover-scss.ts @
|
|
1
|
+
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/hover/web-core-hover-scss.ts @Tue Mar 24 2026 10:02:20 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
@mixin onHover {
|
|
4
4
|
@media (hover: hover) and (pointer: fine) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/types/web-core-options-less.ts @
|
|
1
|
+
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/types/web-core-options-less.ts @Tue Mar 24 2026 10:02:19 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
@ACTION_LINK_VARIANT_ACTIVE_COLOR_OPTIONS: accentDark, accentDarkInverted, neutral, neutralInverted,
|
|
4
4
|
unsetColors;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/types/web-core-options-scss.ts @
|
|
1
|
+
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/types/web-core-options-scss.ts @Tue Mar 24 2026 10:02:19 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
$ACTION_LINK_VARIANT_ACTIVE_COLOR_OPTIONS:
|
|
4
4
|
accentDark, accentDarkInverted, neutral, neutralInverted, unsetColors;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/tokens/web-core-tokens-less.ts @
|
|
1
|
+
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/tokens/web-core-tokens-less.ts @Tue Mar 24 2026 10:02:19 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
@text-typeface: var(--42e7c5);
|
|
4
4
|
@text-fontFamily: var(--51aa6f);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/tokens/web-core-tokens-scss.ts @
|
|
1
|
+
/* AUTO GENERATED by support/tools/src/tool/code-generator/output/tokens/web-core-tokens-scss.ts @Tue Mar 24 2026 10:02:19 GMT+0000 (Coordinated Universal Time) */
|
|
2
2
|
|
|
3
3
|
$text-typeface: var(--42e7c5);
|
|
4
4
|
$text-fontFamily: var(--51aa6f);
|
package/dist/index.js
CHANGED
|
@@ -2,30 +2,30 @@ export { getDatasetProps, getExternalUrlProps } from './dom/props/index.js';
|
|
|
2
2
|
export { mapEdgeKeyToStandard } from './keyboard/index.js';
|
|
3
3
|
export { currentHostname, currentHref } from './location/index.js';
|
|
4
4
|
export { gradientBorder } from './gradient-border/index.js';
|
|
5
|
-
export { colorSchemes } from './color-scheme/colorSchemes.js';
|
|
6
5
|
export { ColorScheme } from './color-scheme/classes/ColorScheme.js';
|
|
7
6
|
export { ColorSchemeProvider } from './color-scheme/providers/ColorSchemeProvider.js';
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
7
|
+
export { HostnameContext } from './ssr/contexts/HostnameContext.js';
|
|
8
|
+
export { ServerStyleSheet } from './ssr/classes/ServerStyleSheet.js';
|
|
9
|
+
export { StyleExtractContext } from './ssr/contexts/StyleExtractContext.js';
|
|
10
|
+
export { Theme } from './theme/classes/Theme.js';
|
|
11
|
+
export { ThemeProvider } from './theme/providers/ThemeProvider.js';
|
|
12
|
+
export { ThemesProvider } from './theme/providers/ThemesProvider.js';
|
|
10
13
|
export { booleanClassNames, globalClassNames, longhandClassNames, moduleClassName, moduleClassNames, moduleLocals, stringClassNames } from './css-module/classNames.js';
|
|
11
|
-
export {
|
|
14
|
+
export { colorSchemes } from './color-scheme/colorSchemes.js';
|
|
15
|
+
export { getTokenVar } from './token/util/getTokenVar.js';
|
|
12
16
|
export { minWidth } from './responsive/sc/mixins.js';
|
|
13
17
|
export { onHover } from './hover/sc/mixins.js';
|
|
14
|
-
export { ServerStyleSheet } from './ssr/classes/ServerStyleSheet.js';
|
|
15
|
-
export { HostnameContext } from './ssr/contexts/HostnameContext.js';
|
|
16
|
-
export { StyleExtractContext } from './ssr/contexts/StyleExtractContext.js';
|
|
17
|
-
export { withStyleExtract } from './ssr/hocs/withStyleExtract.js';
|
|
18
18
|
export { useClassNameExtract } from './ssr/hooks/useClassNameExtract.js';
|
|
19
|
+
export { useColorScheme } from './color-scheme/hooks/useColorScheme.js';
|
|
20
|
+
export { useFocusEvents } from './events/hooks/useFocusEvents.js';
|
|
19
21
|
export { useHostname } from './ssr/hooks/useHostname.js';
|
|
22
|
+
export { useSetTheme } from './theme/hooks/useSetTheme.js';
|
|
20
23
|
export { useStyleExtract } from './ssr/hooks/useStyleExtract.js';
|
|
21
|
-
export { Theme } from './theme/classes/Theme.js';
|
|
22
|
-
export { ThemesProvider } from './theme/providers/ThemesProvider.js';
|
|
23
|
-
export { ThemeProvider } from './theme/providers/ThemeProvider.js';
|
|
24
24
|
export { useTheme } from './theme/hooks/useTheme.js';
|
|
25
25
|
export { useThemes } from './theme/hooks/useThemes.js';
|
|
26
|
-
export { useSetTheme } from './theme/hooks/useSetTheme.js';
|
|
27
|
-
export { withTheme } from './theme/hocs/withTheme.js';
|
|
28
|
-
export { getTokenVar } from './token/util/getTokenVar.js';
|
|
29
26
|
export { useToken } from './token/hooks/useToken.js';
|
|
27
|
+
export { withColorScheme } from './color-scheme/hocs/withColorScheme.js';
|
|
30
28
|
export { withGetToken } from './token/hocs/withGetToken.js';
|
|
29
|
+
export { withStyleExtract } from './ssr/hocs/withStyleExtract.js';
|
|
30
|
+
export { withTheme } from './theme/hocs/withTheme.js';
|
|
31
31
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@preply/ds-web-core",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
"browserslist": "last 2 versions",
|
|
14
14
|
"scripts": {
|
|
15
15
|
"clean": "rm -rf dist && rm -rf src/generated",
|
|
16
|
-
"test": "run
|
|
16
|
+
"test": "run --top-level vitest packages/web-core",
|
|
17
17
|
"check:types": "run --top-level tsc --noEmit",
|
|
18
18
|
"build": "NODE_ENV=production && run build:rollup",
|
|
19
19
|
"build:rollup": "run --top-level rollup -c rollup.config.cjs",
|
|
20
20
|
"dev": "run build:rollup -w"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@preply/ds-core": "11.
|
|
24
|
-
"@preply/ds-core-types": "11.
|
|
23
|
+
"@preply/ds-core": "11.1.0",
|
|
24
|
+
"@preply/ds-core-types": "11.1.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@preply/ds-core": "11.
|
|
28
|
-
"@preply/ds-core-types": "11.
|
|
27
|
+
"@preply/ds-core": "11.1.0",
|
|
28
|
+
"@preply/ds-core-types": "11.1.0",
|
|
29
29
|
"react": "^16 || ^18",
|
|
30
30
|
"react-dom": "^16 || ^18"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "36832cd685631ed0d25ebe21415f412eaa63d28a"
|
|
33
33
|
}
|