Skip to content

Commit

Permalink
feat: add many new Wicket components
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Nov 29, 2024
1 parent d18497b commit 830d816
Show file tree
Hide file tree
Showing 67 changed files with 1,562 additions and 88 deletions.
200 changes: 200 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 31 additions & 1 deletion wicket/components-wicket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,41 @@
"devDependencies": {
"@nl-design-system-unstable/voorbeeld-design-tokens": "3.1.0",
"@nl-design-system-candidate/paragraph-css": "1.0.2",
"@utrecht/alert-css": "2.2.0",
"@utrecht/badge-list-css": "2.2.0",
"@utrecht/body-css": "1.1.0",
"@utrecht/button-css": "1.1.0",
"@utrecht/button-group-css": "1.4.0",
"@utrecht/column-layout-css": "1.5.0",
"@utrecht/custom-checkbox-css": "1.1.1",
"@utrecht/form-field-css": "1.5.0",
"@utrecht/form-field-description-css": "1.5.0",
"@utrecht/form-field-error-message-css": "1.5.0",
"@utrecht/form-label-css": "1.1.0",
"@utrecht/heading-1-css": "1.1.0",
"@utrecht/heading-2-css": "1.1.0",
"@utrecht/heading-3-css": "1.1.0",
"@utrecht/heading-4-css": "1.1.0",
"@utrecht/heading-5-css": "1.1.0",
"@utrecht/heading-6-css": "1.1.0"
"@utrecht/heading-6-css": "1.1.0",
"@utrecht/heading-group-css": "1.4.0",
"@utrecht/html-content-css": "1.3.0",
"@utrecht/icon": "1.3.0",
"@utrecht/link-css": "1.1.0",
"@utrecht/logo-css": "1.4.0",
"@utrecht/nav-bar-css": "1.4.0",
"@utrecht/number-badge-css": "2.3.0",
"@utrecht/ordered-list-css": "1.4.0",
"@utrecht/page-body-css": "0.1.0",
"@utrecht/page-footer-css": "2.1.0",
"@utrecht/page-header-css": "1.5.0",
"@utrecht/page-layout-css": "1.1.0",
"@utrecht/paragraph-css": "1.1.0",
"@utrecht/root-css": "1.1.0",
"@utrecht/separator-css": "1.4.0",
"@utrecht/table-css": "1.1.0",
"@utrecht/textarea-css": "1.1.0",
"@utrecht/textbox-css": "1.1.0",
"@utrecht/unordered-list-css": "1.4.0"
}
}
9 changes: 2 additions & 7 deletions wicket/components-wicket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,9 @@
<filtering>false</filtering>
<directory>node_modules/</directory>
<includes>
<include>@utrecht/heading-1-css/dist/*.css</include>
<include>@utrecht/heading-2-css/dist/*.css</include>
<include>@utrecht/heading-3-css/dist/*.css</include>
<include>@utrecht/heading-4-css/dist/*.css</include>
<include>@utrecht/heading-5-css/dist/*.css</include>
<include>@utrecht/heading-6-css/dist/*.css</include>
<include>@nl-design-system-unstable/voorbeeld-design-tokens/dist/theme.css</include>
<include>@nl-design-system-candidate/paragraph-css/dist/paragraph.css</include>
<include>@utrecht/*-css/dist/*.css</include>
</includes>
<targetPath>css</targetPath>
</resource>
Expand All @@ -107,4 +102,4 @@
</resource>
</resources>
</build>
</project>
</project>
22 changes: 22 additions & 0 deletions wicket/components-wicket/src/main/java/css/HTMLUtil.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package css;

import java.util.Arrays;
import java.util.stream.Collectors;

public class HTMLUtil {

public static String className(String... classes) {
return joinTokens(classes);
}

public static String idRefs(String... classes) {
return joinTokens(classes);
}

public static String joinTokens(String... classes) {
return Arrays.asList(classes)
.stream()
.filter(className -> className != null && !className.trim().isEmpty())
.collect(Collectors.joining(" "));
}
}
Loading

0 comments on commit 830d816

Please sign in to comment.