Skip to content

Commit 922d5f4

Browse files
authored
feat: update to oruga v0.13 (#219)
1 parent c2933ce commit 922d5f4

File tree

7 files changed

+61
-75
lines changed

7 files changed

+61
-75
lines changed

package-lock.json

Lines changed: 45 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@
4747
"update": "ncu -u"
4848
},
4949
"peerDependencies": {
50-
"@oruga-ui/oruga-next": "^0.12.0"
50+
"@oruga-ui/oruga-next": "^0.13.0-pre.2"
5151
},
5252
"dependencies": {
5353
"bulma": "1.0.4"
5454
},
5555
"devDependencies": {
5656
"@eslint/compat": "^2.0.2",
5757
"@eslint/js": "^10.0.1",
58-
"@oruga-ui/examples": "^0.12.6",
59-
"@oruga-ui/oruga-next": "^0.12.6",
58+
"@oruga-ui/examples": "^0.13.0-pre.2",
59+
"@oruga-ui/oruga-next": "^0.13.0-pre.2",
6060
"@tsconfig/node22": "^22.0.5",
6161
"@types/node": "^24.11.0",
6262
"@vitejs/plugin-vue": "6.0.4",

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Oruga from "@oruga-ui/oruga-next";
77
import Examples from "@oruga-ui/examples";
88

99
// add examples styles
10-
import "@oruga-ui/examples/dist/examples.css";
10+
import "@oruga-ui/examples/index.css";
1111
// import main bundle, either separated or combined
1212
// these imports are for testing different ways of including theme/bulma styles
1313
// use one or the other. do not use both.
@@ -20,6 +20,7 @@ import { bulmaConfig } from "./plugins/theme";
2020
createApp(App)
2121
.use(router)
2222
.use(Oruga, {
23+
globalComponents: true,
2324
iconPack: "fas",
2425
iconComponent: "vue-fontawesome",
2526
customIconPacks: {

src/plugins/theme.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { OrugaOptions } from "@oruga-ui/oruga-next";
1+
import type { OrugaConfig } from "@oruga-ui/oruga-next";
22
import { isTrueish } from "@oruga-ui/oruga-next";
33

4-
const bulmaConfig: OrugaOptions = {
4+
const bulmaConfig: OrugaConfig = {
55
field: {
66
override: true,
77
rootClass: "field",
@@ -104,7 +104,7 @@ const bulmaConfig: OrugaOptions = {
104104
activeClass: "is-active",
105105
mobileClass: undefined,
106106
teleportClass: "is-teleported",
107-
fullScreenClass: "is-fullscreen",
107+
fullscreenClass: "is-fullscreen",
108108
backdropClass: undefined,
109109
wrapperClass: "modal-content modal-card",
110110
textPositionClass: (position: string) => {
@@ -180,7 +180,7 @@ const bulmaConfig: OrugaOptions = {
180180
},
181181
sizeClass: "is-",
182182
simpleClass: "is-simple",
183-
orderClass: "is-",
183+
positionClass: "is-",
184184
roundedClass: "is-rounded",
185185
listClass: "pagination-list",
186186
buttonClass: "pagination-link",
@@ -244,14 +244,13 @@ const bulmaConfig: OrugaOptions = {
244244
trSelectedClass: "is-selected",
245245
trDetailedClass: "is-detailed",
246246
thSortableClass: "is-sortable",
247-
thCurrentSortClass: "is-current-sort",
247+
thSortedClass: "is-current-sort",
248248
thSortIconClass: "sort-icon",
249-
thUnselectableClass: "is-unselectable",
250249
thStickyClass: "is-sticky",
251250
tdStickyClass: "is-sticky",
252251
thCheckboxClass: "th-checkbox",
253252
thDetailedClass: "th-chevron-cell",
254-
tdDetailedChevronClass: "chevron-cell",
253+
tdDetailClass: "chevron-cell",
255254
thPositionClass: "is-",
256255
tdPositionClass: "has-text-",
257256
mobileClass: "is-mobile",
@@ -452,7 +451,6 @@ const bulmaConfig: OrugaOptions = {
452451
itemDisabledClass: "is-disabled",
453452
itemFocusedClass: "is-focused",
454453
itemSelectedClass: "is-active",
455-
itemClickableClass: "is-clickable",
456454
filterClass: "list-item panel-block",
457455
emptyClass: "list-item panel-block is-disabled",
458456
headerClass: "list-item panel-block",

src/router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const routes: Array<RouteRecordRaw> = [
1616
component: Home,
1717
},
1818
...components.map((component) => ({
19-
path: "/components/" + component.toLocaleLowerCase(),
19+
path: "/components/" + component.toLocaleLowerCase() + ".html",
2020
name: component,
2121
props: { component },
2222
component: Component,

tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"paths": {
66
"@/*": ["./src/*"]
77
},
8+
89
"types": ["vite/client", "@oruga-ui/oruga-next/volar"]
910
},
1011
"include": [

tsconfig.node.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
{
2-
"extends": ["@vue/tsconfig/tsconfig.json", "@tsconfig/node22/tsconfig.json"],
2+
"extends": ["@tsconfig/node22/tsconfig.json", "@vue/tsconfig/tsconfig.json"],
33
"compilerOptions": {
44
"composite": true,
55
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
6-
"module": "ESNext",
7-
"moduleResolution": "Bundler",
6+
87
"types": ["node"]
98
},
10-
"include": [
11-
"commitlint.config.*",
12-
"eslint.config.*",
13-
"stylelint.config.*",
14-
"prettier.config.*",
15-
"vite.config.*",
16-
"vitest.config.*",
17-
"cypress.config.*",
18-
"nightwatch.conf.*",
19-
"playwright.config.*"
20-
]
9+
"include": ["*.config.*"]
2110
}

0 commit comments

Comments
 (0)