@sveltia/ui 0.19.1 → 0.19.3

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.
@@ -264,6 +264,6 @@ button:global(.danger) {
264
264
  button :global(.label) {
265
265
  padding: 0 4px;
266
266
  }
267
- button:has([slot=start-icon] + [slot=end-icon]) {
267
+ button:global(:has([slot="start-icon"] + [slot="end-icon"])) {
268
268
  gap: 0;
269
269
  }</style>
@@ -148,6 +148,7 @@
148
148
  background-color: var(--sui-primary-accent-color-dark);
149
149
  }
150
150
  .checkbox :global(button) {
151
+ flex: none;
151
152
  align-items: center;
152
153
  justify-content: center;
153
154
  overflow: hidden;
@@ -114,7 +114,7 @@
114
114
  color: var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));
115
115
  background-color: var(--sui-menuitem-background-color, transparent);
116
116
  font-size: var(--sui-menuitem-font-size, var(--sui-option-font-size));
117
- font-weight: var(--sui-menuitem-font-weight, var(--sui-option-font-weight, normal));
117
+ font-weight: var(--sui-menuitem-font-weight, var(--sui-option-font-weight, var(--sui-font-weight-normal, normal)));
118
118
  }
119
119
  .menuitem :global(button[aria-checked="true"]) :global(.icon) {
120
120
  color: var(--sui-primary-accent-color-text);
@@ -125,6 +125,7 @@
125
125
  color: var(--sui-primary-accent-color-dark);
126
126
  }
127
127
  .radio :global(button) {
128
+ flex: none;
128
129
  justify-content: center;
129
130
  overflow: hidden;
130
131
  margin: 0 !important;
@@ -161,7 +161,7 @@
161
161
  border-radius: var(--sui-tab-border-radius, 0);
162
162
  font-family: var(--sui-tab-font-family, var(--sui-control-font-family, inherit));
163
163
  font-size: var(--sui-tab-font-size, var(--sui-control-font-size, inherit));
164
- font-weight: var(--sui-tab-font-weight, var(--sui-control-font-weight, normal));
164
+ font-weight: var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));
165
165
  }
166
166
 
167
167
  .inner {
@@ -138,7 +138,10 @@ const onEditorUpdate = (editor) => {
138
138
  editor.getRootElement()?.dispatchEvent(
139
139
  new CustomEvent('Update', {
140
140
  detail: {
141
- value: convertToMarkdownString(TRANSFORMERS),
141
+ value: convertToMarkdownString(
142
+ // Use underscores for italic text in Markdown instead of asterisks
143
+ TRANSFORMERS.filter((/** @type {any} */ { tag }) => tag !== '*'),
144
+ ),
142
145
  selectionBlockType,
143
146
  selectionInlineTypes,
144
147
  },
@@ -167,7 +167,7 @@ input::placeholder,
167
167
  font-family: var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));
168
168
  font-size: var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));
169
169
  line-height: var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));
170
- font-weight: var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, normal));
170
+ font-weight: var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));
171
171
  text-align: var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));
172
172
  text-indent: var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));
173
173
  letter-spacing: var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.19.1",
3
+ "version": "0.19.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -28,50 +28,50 @@
28
28
  "test:unit": "vitest"
29
29
  },
30
30
  "dependencies": {
31
- "@lexical/code": "^0.18.0",
32
- "@lexical/dragon": "^0.18.0",
33
- "@lexical/history": "^0.18.0",
34
- "@lexical/link": "^0.18.0",
35
- "@lexical/list": "^0.18.0",
36
- "@lexical/markdown": "^0.18.0",
37
- "@lexical/rich-text": "^0.18.0",
38
- "@lexical/selection": "^0.18.0",
39
- "@lexical/table": "^0.18.0",
40
- "@lexical/utils": "^0.18.0",
31
+ "@lexical/code": "^0.19.0",
32
+ "@lexical/dragon": "^0.19.0",
33
+ "@lexical/history": "^0.19.0",
34
+ "@lexical/link": "^0.19.0",
35
+ "@lexical/list": "^0.19.0",
36
+ "@lexical/markdown": "^0.19.0",
37
+ "@lexical/rich-text": "^0.19.0",
38
+ "@lexical/selection": "^0.19.0",
39
+ "@lexical/table": "^0.19.0",
40
+ "@lexical/utils": "^0.19.0",
41
41
  "@sveltia/utils": "^0.5.0",
42
- "lexical": "^0.18.0"
42
+ "lexical": "^0.19.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "svelte": "^5.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@playwright/test": "^1.48.1",
49
- "@sveltejs/adapter-auto": "^3.2.5",
50
- "@sveltejs/kit": "^2.7.1",
51
- "@sveltejs/package": "^2.3.5",
52
- "@sveltejs/vite-plugin-svelte": "4.0.0-next.8",
53
- "cspell": "^8.15.4",
48
+ "@playwright/test": "^1.48.2",
49
+ "@sveltejs/adapter-auto": "^3.3.1",
50
+ "@sveltejs/kit": "^2.7.3",
51
+ "@sveltejs/package": "^2.3.7",
52
+ "@sveltejs/vite-plugin-svelte": "4.0.0",
53
+ "cspell": "^8.15.5",
54
54
  "eslint": "^8.57.1",
55
55
  "eslint-config-airbnb-base": "^15.0.0",
56
56
  "eslint-config-prettier": "^9.1.0",
57
57
  "eslint-plugin-import": "^2.31.0",
58
58
  "eslint-plugin-jsdoc": "^50.4.3",
59
- "eslint-plugin-svelte": "^2.45.1",
59
+ "eslint-plugin-svelte": "^2.46.0",
60
60
  "postcss": "^8.4.47",
61
61
  "postcss-html": "^1.7.0",
62
62
  "prettier": "^3.3.3",
63
63
  "prettier-plugin-svelte": "^3.2.7",
64
- "sass": "^1.80.2",
64
+ "sass": "^1.80.5",
65
65
  "stylelint": "^16.10.0",
66
66
  "stylelint-config-recommended-scss": "^14.1.0",
67
67
  "stylelint-scss": "^6.8.1",
68
- "svelte": "5.0.0-next.269",
68
+ "svelte": "5.1.6",
69
69
  "svelte-check": "^4.0.5",
70
- "svelte-i18n": "^4.0.0",
70
+ "svelte-i18n": "^4.0.1",
71
71
  "svelte-preprocess": "^6.0.3",
72
72
  "tslib": "^2.8.0",
73
- "vite": "^5.4.9",
74
- "vitest": "^2.1.3"
73
+ "vite": "^5.4.10",
74
+ "vitest": "^2.1.4"
75
75
  },
76
76
  "exports": {
77
77
  ".": {