@digigov/react-experimental 2.0.8 → 2.0.9-platform-196.17-02-26-12-34

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.
@@ -0,0 +1 @@
1
+ module.exports = require('@digigov/cli-lint/prettierrc')();
@@ -0,0 +1,14 @@
1
+
2
+ > @digigov/react-experimental@2.0.9-platform-196.17-02-26-12-34 build /builds/devs/digigov/digigov-sdk/libs-ui/react-experimental
3
+ > digigov build
4
+
5
+  LOG  Running: rimraf dist
6
+ info build started...
7
+ ready built in 0.23 s
8
+ start generating declaration files... (esm)
9
+ ready declaration files generated in 3.03 s (esm)
10
+
11
+ 10 files generated in dist (esm)
12
+ Total size: 9.4 kB
13
+
14
+ ⏱️ "build" execution time: 4.086s
package/CHANGELOG.json ADDED
@@ -0,0 +1,171 @@
1
+ {
2
+ "name": "@digigov/react-experimental",
3
+ "entries": [
4
+ {
5
+ "date": "Tue, 17 Feb 2026 12:35:02 GMT",
6
+ "version": "2.0.9-platform-196.17-02-26-12-34",
7
+ "tag": "@digigov/react-experimental_v2.0.9-platform-196.17-02-26-12-34",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "sangelopoulos@admin.grnet.gr",
12
+ "package": "@digigov/react-experimental",
13
+ "commit": "58160ac319e725bc00e7299a63f8f195e823ced4",
14
+ "comment": "Migrate to pnpm catalog"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "version": "2.0.8",
21
+ "tag": "@digigov/react-experimental_v2.0.8",
22
+ "date": "Wed, 11 Feb 2026 14:46:37 GMT",
23
+ "comments": {}
24
+ },
25
+ {
26
+ "version": "2.0.7",
27
+ "tag": "@digigov/react-experimental_v2.0.7",
28
+ "date": "Tue, 10 Feb 2026 13:53:35 GMT",
29
+ "comments": {}
30
+ },
31
+ {
32
+ "version": "2.0.6",
33
+ "tag": "@digigov/react-experimental_v2.0.6",
34
+ "date": "Wed, 28 Jan 2026 13:14:05 GMT",
35
+ "comments": {}
36
+ },
37
+ {
38
+ "version": "2.0.5",
39
+ "tag": "@digigov/react-experimental_v2.0.5",
40
+ "date": "Tue, 27 Jan 2026 13:46:07 GMT",
41
+ "comments": {}
42
+ },
43
+ {
44
+ "version": "2.0.4",
45
+ "tag": "@digigov/react-experimental_v2.0.4",
46
+ "date": "Tue, 27 Jan 2026 13:12:04 GMT",
47
+ "comments": {}
48
+ },
49
+ {
50
+ "version": "2.0.3",
51
+ "tag": "@digigov/react-experimental_v2.0.3",
52
+ "date": "Wed, 21 Jan 2026 21:01:49 GMT",
53
+ "comments": {}
54
+ },
55
+ {
56
+ "version": "2.0.2",
57
+ "tag": "@digigov/react-experimental_v2.0.2",
58
+ "date": "Wed, 21 Jan 2026 15:58:34 GMT",
59
+ "comments": {
60
+ "patch": [
61
+ {
62
+ "comment": "update react version"
63
+ },
64
+ {
65
+ "comment": "move kitchensink components in experimental"
66
+ },
67
+ {
68
+ "comment": "export Kitchensink from react-experimental"
69
+ },
70
+ {
71
+ "comment": "Fix stories registry import"
72
+ },
73
+ {
74
+ "comment": "Update react experimental components test snapshots"
75
+ },
76
+ {
77
+ "comment": "Update package.json"
78
+ },
79
+ {
80
+ "comment": "Add support for React v18"
81
+ }
82
+ ],
83
+ "major": [
84
+ {
85
+ "comment": "Rename govgr classes namespace to ds"
86
+ },
87
+ {
88
+ "comment": "Make lib \"pure ESM\" & update clsx to v2"
89
+ }
90
+ ],
91
+ "none": [
92
+ {
93
+ "comment": "Update build script & remove unnecessary dependency"
94
+ },
95
+ {
96
+ "comment": "Fix linter errors"
97
+ },
98
+ {
99
+ "comment": "Fix type-error on build"
100
+ },
101
+ {
102
+ "comment": "Update @types/node"
103
+ },
104
+ {
105
+ "comment": "Replace jest with vitest & u"
106
+ }
107
+ ],
108
+ "minor": [
109
+ {
110
+ "comment": "Upgrade react peer dependency version to include ^19.1.0 along with ^18.3.0"
111
+ }
112
+ ]
113
+ }
114
+ },
115
+ {
116
+ "version": "1.1.2",
117
+ "tag": "@digigov/react-experimental_v1.1.2",
118
+ "date": "Fri, 16 Feb 2024 09:57:32 GMT",
119
+ "comments": {
120
+ "none": [
121
+ {
122
+ "comment": "Upgrade ESLint & Prettier"
123
+ }
124
+ ],
125
+ "dependency": [
126
+ {
127
+ "comment": "Updating dependency \"@digigov/cli-lint\" from `1.0.3` to `1.0.4`"
128
+ },
129
+ {
130
+ "comment": "Updating dependency \"@digigov/css\" from `1.1.1` to `1.2.0`"
131
+ },
132
+ {
133
+ "comment": "Updating dependency \"@digigov/react-experimental\" from `1.1.1` to `1.1.2`"
134
+ },
135
+ {
136
+ "comment": "Updating dependency \"@digigov/react-icons\" from `1.1.1` to `1.1.2`"
137
+ }
138
+ ]
139
+ }
140
+ },
141
+ {
142
+ "version": "1.1.1",
143
+ "tag": "@digigov/react-experimental_v1.1.1",
144
+ "date": "Mon, 29 Jan 2024 17:45:11 GMT",
145
+ "comments": {
146
+ "patch": [
147
+ {
148
+ "comment": "Add react-experimental folder"
149
+ }
150
+ ],
151
+ "dependency": [
152
+ {
153
+ "comment": "Updating dependency \"@digigov/cli-lint\" from `1.0.2` to `1.0.3`"
154
+ },
155
+ {
156
+ "comment": "Updating dependency \"@digigov/cli-build\" from `1.1.0` to `1.1.1`"
157
+ },
158
+ {
159
+ "comment": "Updating dependency \"@digigov/css\" from `1.1.0` to `1.1.1`"
160
+ },
161
+ {
162
+ "comment": "Updating dependency \"@digigov/react-experimental\" from `1.1.0` to `1.1.1`"
163
+ },
164
+ {
165
+ "comment": "Updating dependency \"@digigov/react-icons\" from `1.1.0` to `1.1.1`"
166
+ }
167
+ ]
168
+ }
169
+ }
170
+ ]
171
+ }
@@ -0,0 +1,3 @@
1
+ import config from '@digigov/cli-lint/eslint.config';
2
+
3
+ export default [...config];
package/package.json CHANGED
@@ -1,20 +1,61 @@
1
1
  {
2
2
  "name": "@digigov/react-experimental",
3
- "version": "2.0.8",
3
+ "version": "2.0.9-platform-196.17-02-26-12-34",
4
4
  "description": "@digigov react experimental components",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./src/*": "./src/*",
13
+ "./*": {
14
+ "types": [
15
+ "./dist/*.d.ts",
16
+ "./dist/*/index.d.ts"
17
+ ],
18
+ "import": [
19
+ "./dist/*.js",
20
+ "./dist/*/index.js"
21
+ ]
22
+ },
23
+ "./*.js": {
24
+ "types": "./dist/*.d.ts",
25
+ "import": "./dist/*.js"
26
+ }
27
+ },
7
28
  "type": "module",
8
29
  "peerDependencies": {
9
- "@digigov/css": "2.0.8",
10
- "@digigov/react-icons": "2.0.8",
11
- "@digigov/ui": "2.0.8",
12
- "@digigov/react-core": "2.0.8",
13
30
  "clsx": "2.1.1",
14
31
  "react": "^18.3.0 || ^19.1.0",
15
- "react-dom": "^18.3.0 || ^19.1.0"
32
+ "react-dom": "^18.3.0 || ^19.1.0",
33
+ "@digigov/css": "2.0.9-platform-196.17-02-26-12-34",
34
+ "@digigov/ui": "2.0.9-platform-196.17-02-26-12-34",
35
+ "@digigov/react-core": "2.0.9-platform-196.17-02-26-12-34",
36
+ "@digigov/react-icons": "2.0.9-platform-196.17-02-26-12-34"
37
+ },
38
+ "devDependencies": {
39
+ "typescript": "5.6.2",
40
+ "@types/node": "20.17.24",
41
+ "@types/react": "19.1.3",
42
+ "@types/react-dom": "19.1.3",
43
+ "eslint": "9.16.0",
44
+ "prettier": "3.4.2",
45
+ "publint": "0.1.8",
46
+ "vitest": "2.1.3",
47
+ "@testing-library/dom": "10.4.0",
48
+ "@testing-library/react": "16.2.0",
49
+ "@digigov/cli": "2.0.9-platform-196.17-02-26-12-34",
50
+ "@digigov/cli-lint": "2.0.9-platform-196.17-02-26-12-34",
51
+ "@digigov/cli-test": "2.0.9-platform-196.17-02-26-12-34",
52
+ "@digigov/cli-build": "2.0.9-platform-196.17-02-26-12-34"
16
53
  },
17
- "private": false,
18
- "main": "index.js",
19
- "module": "index.js"
54
+ "scripts": {
55
+ "publint": "publint dist",
56
+ "lint": "digigov lint",
57
+ "test": "digigov test",
58
+ "build": "digigov build",
59
+ "prepublish": "digigov build"
60
+ }
20
61
  }
package/tsconfig.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "@digigov/cli-build/tsconfig.base",
3
+ "compilerOptions": {
4
+ "outDir": "dist",
5
+ "types": ["node", "vitest/globals", "react"],
6
+ "paths": {
7
+ "@digigov/react-experimental": ["./src"],
8
+ "@digigov/react-experimental/*": ["./src/*"],
9
+ "@digigov/react-icons": ["node_modules/@digigov/react-icons/src"],
10
+ "@digigov/react-icons/*": ["node_modules/@digigov/react-icons/src/*"],
11
+ "@digigov/react-core": ["node_modules/@digigov/react-core/src"],
12
+ "@digigov/react-core/*": ["node_modules/@digigov/react-core/src/*"],
13
+ "@digigov/ui": ["node_modules/@digigov/ui/src"],
14
+ "@digigov/ui/*": ["node_modules/@digigov/ui/src/*"]
15
+ },
16
+ "baseUrl": "./"
17
+ },
18
+ "include": ["src"],
19
+ "exclude": ["node_modules", "dist"]
20
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["react"]
5
+ },
6
+ "exclude": ["node_modules", "dist", "./src/**/*.test.*", "./src/**/*.spec.*"]
7
+ }
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps } from '@digigov/react-core/Button';
3
- export interface FloatingButtonProps extends ButtonProps {
4
- /**
5
- * direction is optional.
6
- * direction sets the position of the button to either left or right side of the screen.
7
- * The default value is 'left'.
8
- * @value 'right'
9
- * @value 'left'
10
- * @default 'left'
11
- */
12
- direction?: 'right' | 'left';
13
- }
14
- /**
15
- *
16
- * A FloatingButton performs the primary, or most common, action on a screen.
17
- * Use it primary in mobile applications.
18
- * Avoid using text in this type of button, use icons instead.
19
- */
20
- export declare const FloatingButton: React.ForwardRefExoticComponent<Omit<FloatingButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
21
- export default FloatingButton;
@@ -1,16 +0,0 @@
1
- import react from "react";
2
- import clsx from "clsx";
3
- import Button from "@digigov/react-core/Button/index.js";
4
- const FloatingButton_FloatingButton = /*#__PURE__*/ react.forwardRef(function({ direction = 'right', className, children, ...props }, ref) {
5
- return /*#__PURE__*/ react.createElement(Button, {
6
- ref: ref,
7
- className: clsx(className, {
8
- 'ds-floating-btn': true,
9
- 'ds-floating-btn--right': 'right' === direction,
10
- 'ds-floating-btn--left': 'left' === direction
11
- }),
12
- ...props
13
- }, children);
14
- });
15
- const src_FloatingButton = FloatingButton_FloatingButton;
16
- export { FloatingButton_FloatingButton as FloatingButton, src_FloatingButton as default };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const AllComponents: () => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- import react from "react";
2
- import { KitchenSinkDashboard } from "./KitchensinkDashboard.js";
3
- import { stories } from "@digigov/ui/stories-registry";
4
- const AllComponents = ()=>/*#__PURE__*/ react.createElement(KitchenSinkDashboard, {
5
- stories: stories
6
- });
7
- export { AllComponents };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface KitchensinkByCategoryInterface {
3
- category: string;
4
- stories: React.ReactElement[];
5
- }
6
- export declare const KitchensinkByCategory: ({ category, stories, }: KitchensinkByCategoryInterface) => React.JSX.Element;
@@ -1,25 +0,0 @@
1
- import react from "react";
2
- import { KitchenSinkCategory } from "@digigov/react-core/KitchenSinkCategory/index.js";
3
- import { KitchenSinkHeading } from "@digigov/react-core/KitchenSinkHeading/index.js";
4
- import { KitchensinkByLetter } from "./KitchensinkByLetter.js";
5
- const KitchensinkByCategory = ({ category, stories })=>{
6
- const alphabeticalOrder = Object.keys(stories).reduce((abStories, componentStoriesKey)=>{
7
- const componentStories = stories[componentStoriesKey];
8
- if (!componentStories.default.component) throw new Error(`no component was found in ${componentStoriesKey}`);
9
- const name = componentStories.default.displayName;
10
- console.log('componentStories', componentStories, 'stories', stories);
11
- if (!name) throw new Error(`no name was found for ${componentStoriesKey}`);
12
- const letter = name[0];
13
- if (abStories[letter]) abStories[letter].push(componentStories);
14
- else abStories[letter] = [
15
- componentStories
16
- ];
17
- return abStories;
18
- }, {});
19
- return /*#__PURE__*/ react.createElement("div", null, /*#__PURE__*/ react.createElement(KitchenSinkHeading, null, category), /*#__PURE__*/ react.createElement(KitchenSinkCategory, null, Object.keys(alphabeticalOrder).sort().map((letter, index)=>/*#__PURE__*/ react.createElement(KitchensinkByLetter, {
20
- letter: letter,
21
- stories: alphabeticalOrder[letter],
22
- key: index
23
- }))));
24
- };
25
- export { KitchensinkByCategory };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface KitchensinkByLetterInterface {
3
- letter: string;
4
- stories: any;
5
- }
6
- export declare const KitchensinkByLetter: ({ letter, stories, }: KitchensinkByLetterInterface) => React.JSX.Element;
@@ -1,14 +0,0 @@
1
- import react from "react";
2
- import Heading from "@digigov/react-core/Heading/index.js";
3
- import { KitchenSinkLetterContent } from "@digigov/react-core/KitchenSinkLetterContent/index.js";
4
- import { KitchensinkComponent } from "./KitchensinkComponent.js";
5
- const KitchensinkByLetter = ({ letter, stories })=>/*#__PURE__*/ react.createElement("div", null, /*#__PURE__*/ react.createElement(Heading, null, letter), /*#__PURE__*/ react.createElement(KitchenSinkLetterContent, null, stories.map((story, index)=>/*#__PURE__*/ react.createElement(KitchensinkComponent, {
6
- tags: story.default.tags,
7
- title: story.default.displayName,
8
- description: story.default.description,
9
- link: story.default.link,
10
- width: story.default.defaultWidth,
11
- stories: story,
12
- key: index
13
- }))));
14
- export { KitchensinkByLetter };
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface KitchensinkComponentInterface {
3
- tags?: string[];
4
- title: string;
5
- description?: string;
6
- link?: string;
7
- stories: React.ReactElement[];
8
- width?: 'md' | 'lg';
9
- }
10
- export declare const KitchensinkComponent: ({ tags, title, description, link, stories, width, }: KitchensinkComponentInterface) => React.JSX.Element;
@@ -1,29 +0,0 @@
1
- import react from "react";
2
- import { KitchenSinkCard } from "@digigov/react-core/KitchenSinkCard/index.js";
3
- import { KitchenSinkContent } from "@digigov/react-core/KitchenSinkContent/index.js";
4
- import { KitchenSinkContentInfo } from "@digigov/react-core/KitchenSinkContentInfo/index.js";
5
- import { KitchenSinkContentTags } from "@digigov/react-core/KitchenSinkContentTags/index.js";
6
- import PhaseBanner, { PhaseBannerTag, PhaseBannerText } from "@digigov/ui/feedback/PhaseBanner/index.js";
7
- import SectionBreak from "@digigov/ui/layouts/SectionBreak/index.js";
8
- import Link from "@digigov/ui/navigation/Link/index.js";
9
- import { Paragraph } from "@digigov/ui/typography/index.js";
10
- import Heading from "@digigov/ui/typography/Heading/index.js";
11
- const KitchensinkComponent = ({ tags = [], title, description, link, stories, width = 'md' })=>/*#__PURE__*/ react.createElement(KitchenSinkContent, {
12
- wide: 'lg' === width
13
- }, /*#__PURE__*/ react.createElement(KitchenSinkContentInfo, null, /*#__PURE__*/ react.createElement(KitchenSinkContentTags, null, tags && tags.map((tag, index)=>/*#__PURE__*/ react.createElement(PhaseBanner, {
14
- key: index
15
- }, /*#__PURE__*/ react.createElement(PhaseBannerTag, null, tag), /*#__PURE__*/ react.createElement(PhaseBannerText, null, "Αυτή είναι μία νέα υπηρεσία – τα", ' ', /*#__PURE__*/ react.createElement(Link, {
16
- href: "#feedback"
17
- }, "σχόλιά"), " σας θα μας βοηθήσουν να τη βελτιώσουμε.")))), /*#__PURE__*/ react.createElement(Heading, {
18
- size: "lg"
19
- }, title), /*#__PURE__*/ react.createElement(Paragraph, null, description), link && /*#__PURE__*/ react.createElement(Link, {
20
- href: link
21
- }, "View on GOV.GR Design System"), /*#__PURE__*/ react.createElement(SectionBreak, null)), Object.keys(stories).filter((story)=>'default' !== story).map((story, index)=>{
22
- const Component = stories[story];
23
- return /*#__PURE__*/ react.createElement("div", {
24
- key: index
25
- }, /*#__PURE__*/ react.createElement(SectionBreak, null), /*#__PURE__*/ react.createElement(Heading, {
26
- size: "sm"
27
- }, story), /*#__PURE__*/ react.createElement(KitchenSinkCard, null, /*#__PURE__*/ react.createElement(Component, null)));
28
- }));
29
- export { KitchensinkComponent };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export interface KitchenSinkDashboardInterface {
3
- stories: any;
4
- }
5
- export declare const KitchenSinkDashboard: ({ stories, }: KitchenSinkDashboardInterface) => React.JSX.Element;
@@ -1,28 +0,0 @@
1
- import react from "react";
2
- import { KitchenSinkAllComponents } from "@digigov/react-core/KitchenSinkAllComponents/index.js";
3
- import Paragraph from "@digigov/react-core/Paragraph/index.js";
4
- import { KitchensinkByCategory } from "./KitchensinkByCategory.js";
5
- const KitchenSinkDashboard = ({ stories })=>{
6
- const categoryOrder = Object.keys(stories).reduce((catStories, componentStoriesKey)=>{
7
- const componentStories = stories[componentStoriesKey];
8
- if (componentStories.default.ignore) return catStories;
9
- if (!componentStories.default.component) throw new Error(`no component was found in ${componentStoriesKey}`);
10
- const title = componentStories.default.title.split('/')[1];
11
- if (!title) throw new Error(`no title was found for ${componentStoriesKey}`);
12
- const category = title;
13
- if (catStories[category]) catStories[category].push(componentStories);
14
- else catStories[category] = [
15
- componentStories
16
- ];
17
- return catStories;
18
- }, {});
19
- return /*#__PURE__*/ react.createElement("div", null, /*#__PURE__*/ react.createElement(Paragraph, {
20
- fontSize: 72,
21
- fontWeight: "bold"
22
- }, "Components"), /*#__PURE__*/ react.createElement(KitchenSinkAllComponents, null, Object.keys(categoryOrder).sort((a, b)=>a > b ? -1 : 1).map((category, index)=>/*#__PURE__*/ react.createElement(KitchensinkByCategory, {
23
- category: category,
24
- stories: categoryOrder[category],
25
- key: index
26
- }))));
27
- };
28
- export { KitchenSinkDashboard };
@@ -1,5 +0,0 @@
1
- export * from './AllComponents.js';
2
- export * from './KitchensinkByCategory.js';
3
- export * from './KitchensinkByLetter.js';
4
- export * from './KitchensinkComponent.js';
5
- export * from './KitchensinkDashboard.js';
@@ -1,5 +0,0 @@
1
- export * from "./AllComponents.js";
2
- export * from "./KitchensinkByCategory.js";
3
- export * from "./KitchensinkByLetter.js";
4
- export * from "./KitchensinkComponent.js";
5
- export * from "./KitchensinkDashboard.js";
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface OptionButtonBaseProps extends BaseProps<'button'> {
4
- /**
5
- * selected is optional.
6
- * Use selected prop to set selected styling.
7
- * @value true
8
- * @value false
9
- * @default false
10
- */
11
- selected?: boolean;
12
- }
13
- /**
14
- *
15
- * OptionButtonBases can be used to represent small blocks of information.
16
- * OptionButtonBase component must be inside OptionButtonBaseSection component.
17
- */
18
- export declare const OptionButtonBase: React.ForwardRefExoticComponent<Omit<OptionButtonBaseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
- export default OptionButtonBase;
@@ -1,17 +0,0 @@
1
- import react from "react";
2
- import clsx from "clsx";
3
- import Base from "@digigov/react-core/Base/index.js";
4
- const OptionButtonBase_OptionButtonBase = /*#__PURE__*/ react.forwardRef(function({ selected = false, className, children, ...props }, ref) {
5
- return /*#__PURE__*/ react.createElement(Base, {
6
- as: "button",
7
- ref: ref,
8
- className: clsx(className, {
9
- 'ds-btn': true,
10
- 'ds-option-btn': true,
11
- 'ds-option-btn--selected': selected
12
- }),
13
- ...props
14
- }, children);
15
- });
16
- const src_OptionButtonBase = OptionButtonBase_OptionButtonBase;
17
- export { OptionButtonBase_OptionButtonBase as OptionButtonBase, src_OptionButtonBase as default };
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface OptionButtonStepsProps extends BaseProps<'div'> {
4
- /**
5
- * @value 0
6
- * @value 1
7
- * @value 2
8
- * @value 3
9
- * @value 4
10
- * @default 0
11
- */
12
- steps?: stepsProps;
13
- /**
14
- * @default 0
15
- */
16
- activeStep?: number;
17
- }
18
- export type stepsProps = 0 | 1 | 2 | 3 | 4;
19
- /**
20
- *
21
- * OptionButtonSteps can be used to represent small blocks of information.
22
- * OptionButtonSteps component must be inside OptionButtonStepsSection component.
23
- */
24
- export declare const OptionButtonSteps: React.ForwardRefExoticComponent<Omit<OptionButtonStepsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
- export default OptionButtonSteps;
@@ -1,22 +0,0 @@
1
- import react from "react";
2
- import clsx from "clsx";
3
- import Base from "@digigov/react-core/Base/index.js";
4
- const OptionButtonSteps_OptionButtonSteps = /*#__PURE__*/ react.forwardRef(function({ steps = 0, activeStep = 0, className, ...props }, ref) {
5
- const renderStep = (step)=>/*#__PURE__*/ react.createElement(Base, {
6
- as: "div",
7
- className: clsx(className, {
8
- 'ds-option-btn__step': true,
9
- 'ds-option-btn__step--active': activeStep >= step
10
- })
11
- });
12
- return /*#__PURE__*/ react.createElement(Base, {
13
- as: "div",
14
- ref: ref,
15
- className: clsx(className, {
16
- 'ds-option-btn__steps': true
17
- }),
18
- ...props
19
- }, steps >= 1 && renderStep(1), steps >= 2 && renderStep(2), steps >= 3 && renderStep(3), steps >= 4 && renderStep(4));
20
- });
21
- const src_OptionButtonSteps = OptionButtonSteps_OptionButtonSteps;
22
- export { OptionButtonSteps_OptionButtonSteps as OptionButtonSteps, src_OptionButtonSteps as default };
package/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './FloatingButton/index.js';
2
- export * from './OptionButtonBase/index.js';
3
- export * from './OptionButtonSteps/index.js';
4
- export * from './Kitchensink/index.js';
package/index.js DELETED
@@ -1,9 +0,0 @@
1
- /** @license Digigov v2.0.8
2
- *
3
- * This source code is licensed under the BSD-2-Clause license found in the
4
- * LICENSE file in the root directory of this source tree.
5
- */
6
- export * from "./FloatingButton/index.js";
7
- export * from "./OptionButtonBase/index.js";
8
- export * from "./OptionButtonSteps/index.js";
9
- export * from "./Kitchensink/index.js";