@dso-toolkit/react 89.0.0 → 90.0.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.
@@ -105,12 +105,12 @@ export function nestedSections({ accordionTemplate }) {
105
105
  export const addonsSections = [
106
106
  {
107
107
  ...section1,
108
- icon: "user-line",
108
+ icon: "user-outline",
109
109
  },
110
110
  {
111
111
  ...section1,
112
112
  status: "error",
113
- icon: "user-line",
113
+ icon: "user-outline",
114
114
  open: true,
115
115
  },
116
116
  {
@@ -135,16 +135,16 @@ export const addonsSections = [
135
135
  export const alignmentSections = [
136
136
  {
137
137
  ...section1,
138
- icon: "user-line",
138
+ icon: "user-outline",
139
139
  open: true,
140
140
  },
141
141
  {
142
142
  ...section2,
143
- icon: "user-line",
143
+ icon: "user-outline",
144
144
  },
145
145
  {
146
146
  ...section3,
147
- icon: "user-line",
147
+ icon: "user-outline",
148
148
  },
149
149
  ];
150
150
  export const renvooiSections = [
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  const closeButton = ({ iconTemplate }) => {
3
3
  return (React.createElement("button", { type: "button", className: "dso-tertiary", onClick: () => null },
4
4
  React.createElement("span", { className: "sr-only" }, "Sluiten"),
5
- iconTemplate({ icon: "times" })));
5
+ iconTemplate({ icon: "cross" })));
6
6
  };
7
7
  export const warningRichContent = (templates) => (React.createElement(React.Fragment, null,
8
8
  React.createElement("div", { className: "dso-rich-content" },
@@ -6,7 +6,7 @@ export const decorator = (story, icons) => {
6
6
  if (!React.isValidElement(s)) {
7
7
  throw new Error("Expected a valid JSX element");
8
8
  }
9
- return (React.createElement("li", null,
9
+ return (React.createElement("li", { key: icon },
10
10
  s,
11
11
  React.createElement("br", null),
12
12
  React.createElement("code", null, icon)));
@@ -1,8 +1,8 @@
1
1
  import { iconMeta, iconStories } from "dso-toolkit";
2
+ import icons from "dso-toolkit/storybook-assets/icons.json";
2
3
  import { templateContainer } from "../../templates";
3
4
  import { decorator } from "./icon-overview.decorator";
4
5
  import readme from "./readme.md?raw";
5
- const icons = import.meta.env?.VITE_ICONS?.split(",") || [];
6
6
  const meta = {
7
7
  ...iconMeta({ readme }),
8
8
  title: "Icon",
@@ -21,7 +21,7 @@ export const reactTable = {
21
21
  React.createElement("tr", null, content.head.map((col, cellIndex) => "sortable" in col ? (React.createElement("th", { scope: "col", key: cellIndex, "aria-sort": col.sorting },
22
22
  React.createElement("button", { type: "button", "aria-roledescription": getAriaRoledescription(col.sorting), className: clsx("dso-tertiary dso-sort", { "dso-sort-active": !!col.sorting }) },
23
23
  React.createElement("span", null, col.label),
24
- React.createElement(DsoIcon, { icon: col.sorting ? "sort-" + col.sorting : "sort" })))) : (React.createElement("th", { scope: "col", key: cellIndex }, col.label))))),
24
+ React.createElement(DsoIcon, { icon: col.sorting === "ascending" ? "sort-ascending" : "sort-descending" })))) : (React.createElement("th", { scope: "col", key: cellIndex }, col.label))))),
25
25
  React.createElement("tbody", null, content.rows.map((row, index) => (React.createElement("tr", { key: index }, row.map((col, cellIndex) => index === 0 ? (typeof col === "string" ? (React.createElement("th", { key: cellIndex, scope: "row", dangerouslySetInnerHTML: { __html: col } })) : (React.createElement("th", { key: cellIndex, scope: "row" }, col))) : typeof col === "string" ? (React.createElement("td", { key: cellIndex, dangerouslySetInnerHTML: { __html: col } })) : (React.createElement("td", { key: cellIndex }, col))))))))));
26
26
  },
27
27
  };
@@ -57,6 +57,7 @@ import { DsoProjectItem as DsoProjectItemElement, defineCustomElement as defineD
57
57
  import { DsoRenvooi as DsoRenvooiElement, defineCustomElement as defineDsoRenvooi } from "@dso-toolkit/core/dist/components/dso-renvooi.js";
58
58
  import { DsoResponsiveElement as DsoResponsiveElementElement, defineCustomElement as defineDsoResponsiveElement } from "@dso-toolkit/core/dist/components/dso-responsive-element.js";
59
59
  import { DsoScrollable as DsoScrollableElement, defineCustomElement as defineDsoScrollable } from "@dso-toolkit/core/dist/components/dso-scrollable.js";
60
+ import { DsoSegmentedButton as DsoSegmentedButtonElement, defineCustomElement as defineDsoSegmentedButton } from "@dso-toolkit/core/dist/components/dso-segmented-button.js";
60
61
  import { DsoSelectable as DsoSelectableElement, defineCustomElement as defineDsoSelectable } from "@dso-toolkit/core/dist/components/dso-selectable.js";
61
62
  import { DsoSkiplink as DsoSkiplinkElement, defineCustomElement as defineDsoSkiplink } from "@dso-toolkit/core/dist/components/dso-skiplink.js";
62
63
  import { DsoSlideToggle as DsoSlideToggleElement, defineCustomElement as defineDsoSlideToggle } from "@dso-toolkit/core/dist/components/dso-slide-toggle.js";
@@ -594,6 +595,14 @@ export const DsoScrollable = /*@__PURE__*/ createComponent({
594
595
  events: { onDsoScrollEnd: 'dsoScrollEnd' },
595
596
  defineCustomElement: defineDsoScrollable
596
597
  });
598
+ export const DsoSegmentedButton = /*@__PURE__*/ createComponent({
599
+ tagName: 'dso-segmented-button',
600
+ elementClass: DsoSegmentedButtonElement,
601
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
602
+ react: React,
603
+ events: { onDsoChange: 'dsoChange' },
604
+ defineCustomElement: defineDsoSegmentedButton
605
+ });
597
606
  export const DsoSelectable = /*@__PURE__*/ createComponent({
598
607
  tagName: 'dso-selectable',
599
608
  elementClass: DsoSelectableElement,
@@ -2,7 +2,7 @@
2
2
  * This file was automatically generated by the Stencil React Output Target.
3
3
  * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
4
  */
5
- import { type AccordionSectionActiveChangeEvent, type AccordionSectionAnimationEndEvent, type AccordionSectionAnimationStartEvent, type AccordionSectionToggleClickEvent, type AdvancedSelectChangeEvent, type AdvancedSelectRedirectEvent, type AlertCloseEvent, type AnnotationActiveChangeEvent, type AnnotationKaartClickEvent, type BaseLayerChangeEvent, type CardClickEvent, type DatePickerBlurEvent, type DatePickerChangeEvent, type DatePickerFocusEvent, type DatePickerKeyboardEvent, type DocumentCardClickEvent, type DocumentComponentMarkItemHighlightEvent, type DocumentComponentOpenToggleEvent, type DocumentComponentOzonContentClickEvent, type DocumentComponentRecursiveToggleEvent, type DocumentComponentTableOfContentsClickEvent, type DocumentComponentToggleAnnotationEvent, type DsoAccordionSectionCustomEvent, type DsoAdvancedSelectCustomEvent, type DsoAlertCustomEvent, type DsoAnnotationActiviteitCustomEvent, type DsoAnnotationGebiedsaanwijzingCustomEvent, type DsoAnnotationKaartCustomEvent, type DsoAnnotationLocatieCustomEvent, type DsoAnnotationOmgevingsnormwaardeCustomEvent, type DsoAutosuggestCustomEvent, type DsoCardCustomEvent, type DsoDatePickerCustomEvent, type DsoDocumentCardCustomEvent, type DsoDocumentComponentCustomEvent, type DsoExpandableCustomEvent, type DsoHeaderCustomEvent, type DsoHistoryItemCustomEvent, type DsoIconButtonCustomEvent, type DsoInfoButtonCustomEvent, type DsoInfoCustomEvent, type DsoInputRangeCustomEvent, type DsoLabelCustomEvent, type DsoLegendCustomEvent, type DsoLegendGroupCustomEvent, type DsoLegendItemCustomEvent, type DsoListButtonCustomEvent, type DsoLogoCustomEvent, type DsoMapBaseLayersCustomEvent, type DsoMapControlsCustomEvent, type DsoMapLayerCustomEvent, type DsoMapLayerObjectCustomEvent, type DsoMapOverlaysCustomEvent, type DsoMarkBarCustomEvent, type DsoModalCustomEvent, type DsoOnboardingTipCustomEvent, type DsoOzonContentCustomEvent, type DsoPaginationCustomEvent, type DsoPanelCustomEvent, type DsoPlekinfoCardCustomEvent, type DsoRenvooiCustomEvent, type DsoResponsiveElementCustomEvent, type DsoScrollEndEvent, type DsoScrollableCustomEvent, type DsoSelectableCustomEvent, type DsoSkiplinkCustomEvent, type DsoSlideToggleCustomEvent, type DsoSurveyRatingCustomEvent, type DsoTabCustomEvent, type DsoTreeViewCustomEvent, type DsoViewerGridCustomEvent, type DsotDocumentComponentDemoCustomEvent, type ExpandableAnimationEndEvent, type ExpandableAnimationStartEvent, type HeaderEvent, type HistoryItemClickEvent, type IconButtonClickEvent, type InfoButtonToggleEvent, type InputRangeChangeEvent, type LegendCloseEvent, type LegendContentSwitchEvent, type LegendGroupModeChangeEvent, type LegendItemActiveChangeEvent, type LegendItemDeleteEvent, type ListButtonChangeEvent, type ListButtonSelectedEvent, type LogoClickEvent, type LogoLabelClickEvent, type MapControlsToggleEvent, type MapLayerActiveChangeEvent, type MapLayerObjectActiveChangeEvent, type MarkBarClearEvent, type MarkBarInputEvent, type MarkBarPaginationEvent, type ModalCloseEvent, type OnboardingTipCloseEvent, type OverlayChangeEvent, type OzonContentClickEvent, type OzonContentMarkItemHighlightEvent, type PaginationSelectPageEvent, type PanelCloseEvent, type PlekinfoCardClickEvent, type RenvooiMarkItemHighlightEvent, type ResponsiveElementSize, type SelectableChangeEvent, type SkiplinkClickEvent, type SlideToggleActiveEvent, type Suggestion, type SurveyRatingCloseEvent, type SurveyRatingSubmitEvent, type TabsSwitchEvent, type TreeViewItem, type TreeViewPointerEvent, type ViewerGridActiveTabSwitchEvent, type ViewerGridChangeSizeAnimationEndEvent, type ViewerGridChangeSizeEvent, type ViewerGridCloseFilterPanelEvent, type ViewerGridCloseOverlayEvent, type ViewerGridMainToggleEvent } from "@dso-toolkit/core";
5
+ import { type AccordionSectionActiveChangeEvent, type AccordionSectionAnimationEndEvent, type AccordionSectionAnimationStartEvent, type AccordionSectionToggleClickEvent, type AdvancedSelectChangeEvent, type AdvancedSelectRedirectEvent, type AlertCloseEvent, type AnnotationActiveChangeEvent, type AnnotationKaartClickEvent, type BaseLayerChangeEvent, type CardClickEvent, type DatePickerBlurEvent, type DatePickerChangeEvent, type DatePickerFocusEvent, type DatePickerKeyboardEvent, type DocumentCardClickEvent, type DocumentComponentMarkItemHighlightEvent, type DocumentComponentOpenToggleEvent, type DocumentComponentOzonContentClickEvent, type DocumentComponentRecursiveToggleEvent, type DocumentComponentTableOfContentsClickEvent, type DocumentComponentToggleAnnotationEvent, type DsoAccordionSectionCustomEvent, type DsoAdvancedSelectCustomEvent, type DsoAlertCustomEvent, type DsoAnnotationActiviteitCustomEvent, type DsoAnnotationGebiedsaanwijzingCustomEvent, type DsoAnnotationKaartCustomEvent, type DsoAnnotationLocatieCustomEvent, type DsoAnnotationOmgevingsnormwaardeCustomEvent, type DsoAutosuggestCustomEvent, type DsoCardCustomEvent, type DsoDatePickerCustomEvent, type DsoDocumentCardCustomEvent, type DsoDocumentComponentCustomEvent, type DsoExpandableCustomEvent, type DsoHeaderCustomEvent, type DsoHistoryItemCustomEvent, type DsoIconButtonCustomEvent, type DsoInfoButtonCustomEvent, type DsoInfoCustomEvent, type DsoInputRangeCustomEvent, type DsoLabelCustomEvent, type DsoLegendCustomEvent, type DsoLegendGroupCustomEvent, type DsoLegendItemCustomEvent, type DsoListButtonCustomEvent, type DsoLogoCustomEvent, type DsoMapBaseLayersCustomEvent, type DsoMapControlsCustomEvent, type DsoMapLayerCustomEvent, type DsoMapLayerObjectCustomEvent, type DsoMapOverlaysCustomEvent, type DsoMarkBarCustomEvent, type DsoModalCustomEvent, type DsoOnboardingTipCustomEvent, type DsoOzonContentCustomEvent, type DsoPaginationCustomEvent, type DsoPanelCustomEvent, type DsoPlekinfoCardCustomEvent, type DsoRenvooiCustomEvent, type DsoResponsiveElementCustomEvent, type DsoScrollEndEvent, type DsoScrollableCustomEvent, type DsoSegmentedButtonCustomEvent, type DsoSelectableCustomEvent, type DsoSkiplinkCustomEvent, type DsoSlideToggleCustomEvent, type DsoSurveyRatingCustomEvent, type DsoTabCustomEvent, type DsoTreeViewCustomEvent, type DsoViewerGridCustomEvent, type DsotDocumentComponentDemoCustomEvent, type ExpandableAnimationEndEvent, type ExpandableAnimationStartEvent, type HeaderEvent, type HistoryItemClickEvent, type IconButtonClickEvent, type InfoButtonToggleEvent, type InputRangeChangeEvent, type LegendCloseEvent, type LegendContentSwitchEvent, type LegendGroupModeChangeEvent, type LegendItemActiveChangeEvent, type LegendItemDeleteEvent, type ListButtonChangeEvent, type ListButtonSelectedEvent, type LogoClickEvent, type LogoLabelClickEvent, type MapControlsToggleEvent, type MapLayerActiveChangeEvent, type MapLayerObjectActiveChangeEvent, type MarkBarClearEvent, type MarkBarInputEvent, type MarkBarPaginationEvent, type ModalCloseEvent, type OnboardingTipCloseEvent, type OverlayChangeEvent, type OzonContentClickEvent, type OzonContentMarkItemHighlightEvent, type PaginationSelectPageEvent, type PanelCloseEvent, type PlekinfoCardClickEvent, type RenvooiMarkItemHighlightEvent, type ResponsiveElementSize, type SegmentedButtonChangeEvent, type SelectableChangeEvent, type SkiplinkClickEvent, type SlideToggleActiveEvent, type Suggestion, type SurveyRatingCloseEvent, type SurveyRatingSubmitEvent, type TabsSwitchEvent, type TreeViewItem, type TreeViewPointerEvent, type ViewerGridActiveTabSwitchEvent, type ViewerGridChangeSizeAnimationEndEvent, type ViewerGridChangeSizeEvent, type ViewerGridCloseFilterPanelEvent, type ViewerGridCloseOverlayEvent, type ViewerGridMainToggleEvent } from "@dso-toolkit/core";
6
6
  import { DsoAccordionSection as DsoAccordionSectionElement } from "@dso-toolkit/core/dist/components/dso-accordion-section.js";
7
7
  import { DsoAccordion as DsoAccordionElement } from "@dso-toolkit/core/dist/components/dso-accordion.js";
8
8
  import { DsoActionListItem as DsoActionListItemElement } from "@dso-toolkit/core/dist/components/dso-action-list-item.js";
@@ -61,6 +61,7 @@ import { DsoProjectItem as DsoProjectItemElement } from "@dso-toolkit/core/dist/
61
61
  import { DsoRenvooi as DsoRenvooiElement } from "@dso-toolkit/core/dist/components/dso-renvooi.js";
62
62
  import { DsoResponsiveElement as DsoResponsiveElementElement } from "@dso-toolkit/core/dist/components/dso-responsive-element.js";
63
63
  import { DsoScrollable as DsoScrollableElement } from "@dso-toolkit/core/dist/components/dso-scrollable.js";
64
+ import { DsoSegmentedButton as DsoSegmentedButtonElement } from "@dso-toolkit/core/dist/components/dso-segmented-button.js";
64
65
  import { DsoSelectable as DsoSelectableElement } from "@dso-toolkit/core/dist/components/dso-selectable.js";
65
66
  import { DsoSkiplink as DsoSkiplinkElement } from "@dso-toolkit/core/dist/components/dso-skiplink.js";
66
67
  import { DsoSlideToggle as DsoSlideToggleElement } from "@dso-toolkit/core/dist/components/dso-slide-toggle.js";
@@ -303,6 +304,10 @@ export type DsoScrollableEvents = {
303
304
  onDsoScrollEnd: EventName<DsoScrollableCustomEvent<DsoScrollEndEvent>>;
304
305
  };
305
306
  export declare const DsoScrollable: StencilReactComponent<DsoScrollableElement, DsoScrollableEvents>;
307
+ export type DsoSegmentedButtonEvents = {
308
+ onDsoChange: EventName<DsoSegmentedButtonCustomEvent<SegmentedButtonChangeEvent>>;
309
+ };
310
+ export declare const DsoSegmentedButton: StencilReactComponent<DsoSegmentedButtonElement, DsoSegmentedButtonEvents>;
306
311
  export type DsoSelectableEvents = {
307
312
  onDsoChange: EventName<DsoSelectableCustomEvent<SelectableChangeEvent>>;
308
313
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dso-toolkit/react",
3
3
  "type": "module",
4
- "version": "89.0.0",
4
+ "version": "90.0.0",
5
5
  "description": "React specific wrapper for @dso-toolkit/core web components",
6
6
  "homepage": "https://www.dso-toolkit.nl/",
7
7
  "repository": {
@@ -30,7 +30,7 @@
30
30
  "@types/lodash.startcase": "^4.4.9",
31
31
  "@types/react": "^19.2.14",
32
32
  "@types/react-dom": "^19.2.3",
33
- "dso-toolkit": "^89.0.0",
33
+ "dso-toolkit": "^90.0.0",
34
34
  "eslint": "^9.39.2",
35
35
  "eslint-plugin-storybook": "10.2.8",
36
36
  "http-proxy-middleware": "^3.0.5",
@@ -45,7 +45,7 @@
45
45
  "wait-on": "^9.0.4"
46
46
  },
47
47
  "peerDependencies": {
48
- "@dso-toolkit/core": "89.0.0",
48
+ "@dso-toolkit/core": "90.0.0",
49
49
  "react": "^18.3.0 || ^19.0.0",
50
50
  "react-dom": "^18.3.0 || ^19.0.0"
51
51
  },