@semantic-ui/core
Advanced tools
Comparing version 0.0.17 to 0.0.27
{ | ||
"name": "@semantic-ui/core", | ||
"version": "0.0.17", | ||
"version": "0.0.27", | ||
"title": "Semantic UI Next", | ||
@@ -88,5 +88,5 @@ "description": "Semantic empowers designers and developers by creating a shared vocabulary for UI.", | ||
"husky": "^9.0.11", | ||
"inquirer": "^9.2.23", | ||
"jsdom": "^24.0.0", | ||
"lint-staged": "^15.2.2", | ||
"opencommit": "^3.0.12", | ||
"underscore": "^1.13.6", | ||
@@ -107,3 +107,6 @@ "vitest": "^1.4.0", | ||
"**/*.js": "npx dprint fmt" | ||
}, | ||
"dependencies": { | ||
"@pagefind/modular-ui": "^1.1.0" | ||
} | ||
} |
@@ -22,12 +22,2 @@ import { createComponent } from '@semantic-ui/component'; | ||
}, | ||
getClasses() { | ||
const classes = []; | ||
if(!settings.inverted && (settings.emphasis)) { | ||
classes.push('inverted'); | ||
} | ||
return classes.length > 0 | ||
? ' ' + classes.join(' ') | ||
: '' | ||
; | ||
}, | ||
isDisabled() { | ||
@@ -34,0 +24,0 @@ return settings.state == 'disabled'; |
@@ -7,2 +7,6 @@ import { createComponent } from '@semantic-ui/component'; | ||
const onCreated = ({data}) => { | ||
}; | ||
const events = { | ||
@@ -20,2 +24,3 @@ 'touchstart .menu'({event, tpl, $}) { | ||
events: events, | ||
onCreated, | ||
componentSpec: MenuItemComponentSpec, | ||
@@ -22,0 +27,0 @@ template: MenuItemTemplate, |
import { createComponent } from '@semantic-ui/component'; | ||
import { MenuComponentSpec } from '@semantic-ui/specs';; | ||
import { MenuComponentSpec } from '@semantic-ui/specs'; | ||
@@ -7,9 +7,22 @@ import CSS from './css/menu-shadow.css?raw'; | ||
const createInstance = ({settings, dispatchEvent}) => ({ | ||
const createInstance = ({settings, tpl, dispatchEvent}) => ({ | ||
setValue(value) { | ||
settings.value = value; | ||
dispatchEvent('change', value); | ||
dispatchEvent('change', { value }); | ||
}, | ||
getValue(item) { | ||
return item.value || item.href; | ||
}, | ||
isValueActive(activeValue, item) { | ||
if(item.active) { | ||
return true; | ||
} | ||
if(activeValue !== undefined) { | ||
return activeValue == tpl.getValue(item); | ||
} | ||
return false; | ||
} | ||
}); | ||
@@ -26,3 +39,3 @@ | ||
'click menu-item'({tpl, data}) { | ||
tpl.setValue(data.id); | ||
tpl.setValue(data.value); | ||
} | ||
@@ -29,0 +42,0 @@ }; |
@@ -0,3 +1,13 @@ | ||
/* Structural */ | ||
export { UIContainer } from './components/container/index.js'; | ||
export { UIRail } from './components/rail/index.js'; | ||
/* Primitives */ | ||
export { UIButton, UIButtons } from './components/button/index.js'; | ||
export { UIIcon } from './components/icon/index.js'; | ||
export { UIMenu } from './components/menu/index.js'; | ||
export { UIMenu, MenuItem } from './components/menu/index.js'; | ||
export { UIInput } from './components/input/index.js'; | ||
export { UILabel } from './components/label/index.js'; | ||
export { UISegment } from './components/segment/index.js'; | ||
export { UIModal } from './components/modal/index.js'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7639032
517
23662
2
+ Added@pagefind/modular-ui@^1.1.0
+ Added@pagefind/modular-ui@1.2.0(transitive)