@dt-dds/react-segmented-control 1.0.0-beta.32 → 1.0.0-beta.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.
- package/CHANGELOG.md +25 -0
- package/dist/index.d.mts +29 -0
- package/dist/index.js +3 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @dt-ui/react-segmented-control
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.34
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: replace rounded with sharp icons
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @dt-dds/themes@1.0.0-beta.6
|
|
13
|
+
- @dt-dds/react-icon@1.0.0-beta.47
|
|
14
|
+
- @dt-dds/react-core@1.0.0-beta.46
|
|
15
|
+
- @dt-dds/react-tooltip@1.0.0-beta.54
|
|
16
|
+
|
|
17
|
+
## 1.0.0-beta.33
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- chore(dependencies): upgrade builders versions
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @dt-dds/react-core@1.0.0-beta.45
|
|
24
|
+
- @dt-dds/react-icon@1.0.0-beta.46
|
|
25
|
+
- @dt-dds/react-tooltip@1.0.0-beta.53
|
|
26
|
+
- @dt-dds/themes@1.0.0-beta.5
|
|
27
|
+
|
|
3
28
|
## 1.0.0-beta.32
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CustomTheme } from '@dt-dds/themes';
|
|
2
|
+
import { Code } from '@dt-dds/icons';
|
|
3
|
+
import { BaseProps } from '@dt-dds/react-core';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
6
|
+
|
|
7
|
+
interface SegmentedControlProps$1 extends BaseProps {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
iconCode?: Code;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface SegmentedControlProps extends ComponentPropsWithoutRef<'div'>, BaseProps {
|
|
15
|
+
selectedValue?: string | undefined;
|
|
16
|
+
showLabel?: boolean;
|
|
17
|
+
onChangeControl?: (value: string) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const SegmentedControl: {
|
|
20
|
+
({ dataTestId, children, showLabel, selectedValue, onChangeControl, ...props }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
Option: ({ label, iconCode, value, disabled, }: SegmentedControlProps$1) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
declare module '@emotion/react' {
|
|
25
|
+
interface Theme extends CustomTheme {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { SegmentedControl };
|
package/dist/index.js
CHANGED
|
@@ -57,11 +57,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
57
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
58
|
|
|
59
59
|
// index.ts
|
|
60
|
-
var
|
|
61
|
-
__export(
|
|
60
|
+
var index_exports = {};
|
|
61
|
+
__export(index_exports, {
|
|
62
62
|
SegmentedControl: () => SegmentedControl
|
|
63
63
|
});
|
|
64
|
-
module.exports = __toCommonJS(
|
|
64
|
+
module.exports = __toCommonJS(index_exports);
|
|
65
65
|
|
|
66
66
|
// src/components/SegmentedControlOption.tsx
|
|
67
67
|
var import_react_icon = require("@dt-dds/react-icon");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-segmented-control",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.34",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"test:update:snapshot": "jest -u"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
24
|
-
"@dt-dds/react-icon": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/react-tooltip": "1.0.0-beta.
|
|
26
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-core": "1.0.0-beta.46",
|
|
24
|
+
"@dt-dds/react-icon": "1.0.0-beta.47",
|
|
25
|
+
"@dt-dds/react-tooltip": "1.0.0-beta.54",
|
|
26
|
+
"@dt-dds/themes": "1.0.0-beta.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "^7.22.9",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react": "^18.1.0",
|
|
45
45
|
"react-dom": "^18.2.0",
|
|
46
46
|
"tsconfig": "*",
|
|
47
|
-
"tsup": "^
|
|
47
|
+
"tsup": "^8.5.0",
|
|
48
48
|
"typescript": "^4.5.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|