@seed-design/react 0.2.2 → 0.2.4
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/lib/components/Checkbox/Checkbox.cjs +35 -8
- package/lib/components/Checkbox/Checkbox.d.ts +17 -4
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +35 -8
- package/lib/components/Divider/Divider.cjs +23 -23
- package/lib/components/Divider/Divider.d.ts +2 -3
- package/lib/components/Divider/Divider.d.ts.map +1 -1
- package/lib/components/Divider/Divider.js +23 -23
- package/lib/components/LinkContent/LinkContent.d.ts +6 -0
- package/lib/components/LinkContent/LinkContent.d.ts.map +1 -1
- package/lib/components/List/List.cjs +57 -0
- package/lib/components/List/List.d.ts +27 -0
- package/lib/components/List/List.d.ts.map +1 -0
- package/lib/components/List/List.js +47 -0
- package/lib/components/List/List.namespace.cjs +15 -0
- package/lib/components/List/List.namespace.d.ts +2 -0
- package/lib/components/List/List.namespace.d.ts.map +1 -0
- package/lib/components/List/List.namespace.js +1 -0
- package/lib/components/List/index.cjs +17 -0
- package/lib/components/List/index.d.ts +3 -0
- package/lib/components/List/index.d.ts.map +1 -0
- package/lib/components/List/index.js +3 -0
- package/lib/components/RadioGroup/RadioGroup.cjs +80 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts +34 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/lib/components/RadioGroup/RadioGroup.js +71 -0
- package/lib/components/RadioGroup/RadioGroup.namespace.cjs +14 -0
- package/lib/components/RadioGroup/RadioGroup.namespace.d.ts +2 -0
- package/lib/components/RadioGroup/RadioGroup.namespace.d.ts.map +1 -0
- package/lib/components/RadioGroup/RadioGroup.namespace.js +1 -0
- package/lib/components/RadioGroup/index.cjs +16 -0
- package/lib/components/RadioGroup/index.d.ts +3 -0
- package/lib/components/RadioGroup/index.d.ts.map +1 -0
- package/lib/components/RadioGroup/index.js +3 -0
- package/lib/components/SelectBox/CheckSelectBox.cjs +0 -13
- package/lib/components/SelectBox/CheckSelectBox.d.ts +0 -10
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.js +1 -11
- package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +0 -3
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts +1 -1
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts.map +1 -1
- package/lib/components/SelectBox/CheckSelectBox.namespace.js +1 -1
- package/lib/components/SelectBox/RadioSelectBox.cjs +0 -13
- package/lib/components/SelectBox/RadioSelectBox.d.ts +0 -10
- package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
- package/lib/components/SelectBox/RadioSelectBox.js +1 -11
- package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +0 -3
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts +1 -1
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts.map +1 -1
- package/lib/components/SelectBox/RadioSelectBox.namespace.js +1 -1
- package/lib/components/SelectBox/index.cjs +0 -6
- package/lib/components/SelectBox/index.d.ts +2 -2
- package/lib/components/SelectBox/index.d.ts.map +1 -1
- package/lib/components/SelectBox/index.js +2 -2
- package/lib/components/Switch/Switch.cjs +2 -1
- package/lib/components/Switch/Switch.d.ts.map +1 -1
- package/lib/components/Switch/Switch.js +2 -1
- package/lib/components/index.cjs +23 -10
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +10 -4
- package/lib/index.cjs +23 -10
- package/lib/index.js +10 -4
- package/package.json +4 -4
- package/src/components/Checkbox/Checkbox.tsx +66 -10
- package/src/components/Divider/Divider.tsx +35 -34
- package/src/components/LinkContent/LinkContent.tsx +6 -0
- package/src/components/List/List.namespace.ts +16 -0
- package/src/components/List/List.tsx +79 -0
- package/src/components/List/index.ts +18 -0
- package/src/components/RadioGroup/RadioGroup.namespace.ts +14 -0
- package/src/components/RadioGroup/RadioGroup.tsx +133 -0
- package/src/components/RadioGroup/index.ts +16 -0
- package/src/components/SelectBox/CheckSelectBox.namespace.ts +0 -6
- package/src/components/SelectBox/CheckSelectBox.tsx +0 -19
- package/src/components/SelectBox/RadioSelectBox.namespace.ts +0 -6
- package/src/components/SelectBox/RadioSelectBox.tsx +0 -19
- package/src/components/SelectBox/index.ts +0 -12
- package/src/components/Switch/Switch.tsx +1 -0
- package/src/components/index.ts +3 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RadioVariantProps } from '@seed-design/css/recipes/radio';
|
|
2
|
+
import { RadiomarkVariantProps } from '@seed-design/css/recipes/radiomark';
|
|
3
|
+
import { RadioGroup as RadioGroupPrimitive } from '@seed-design/react-radio-group';
|
|
4
|
+
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
5
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
|
+
export interface RadioGroupRootProps extends RadioGroupPrimitive.RootProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const RadioGroupRoot: ForwardRefExoticComponent<RadioGroupPrimitive.RootProps & RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export interface RadioGroupItemProps extends RadioVariantProps, RadiomarkVariantProps, RadioGroupPrimitive.ItemProps {
|
|
10
|
+
}
|
|
11
|
+
export declare const RadioGroupItem: ForwardRefExoticComponent<RadioGroupItemProps & RefAttributes<HTMLLabelElement>> & {
|
|
12
|
+
Primitive: ForwardRefExoticComponent<RadioGroupPrimitive.ItemProps & RefAttributes<HTMLLabelElement>>;
|
|
13
|
+
};
|
|
14
|
+
export interface RadioGroupItemLabelProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
15
|
+
}
|
|
16
|
+
export declare const RadioGroupItemLabel: ForwardRefExoticComponent<RadioGroupItemLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
export interface RadioGroupItemControlProps extends RadiomarkVariantProps, RadioGroupPrimitive.ItemControlProps {
|
|
18
|
+
}
|
|
19
|
+
export declare const RadioGroupItemControl: ForwardRefExoticComponent<RadioGroupItemControlProps & RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export interface RadioGroupItemIndicatorProps extends React.SVGAttributes<SVGSVGElement> {
|
|
21
|
+
/**
|
|
22
|
+
* The icon to display when the radio is unchecked.
|
|
23
|
+
*/
|
|
24
|
+
unchecked?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* The icon to display when the radio is checked.
|
|
27
|
+
*/
|
|
28
|
+
checked?: React.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export declare const RadioGroupItemIndicator: ForwardRefExoticComponent<RadioGroupItemIndicatorProps & RefAttributes<SVGSVGElement>>;
|
|
31
|
+
export interface RadioGroupItemHiddenInputProps extends RadioGroupPrimitive.ItemHiddenInputProps {
|
|
32
|
+
}
|
|
33
|
+
export declare const RadioGroupItemHiddenInput: ForwardRefExoticComponent<RadioGroupPrimitive.ItemHiddenInputProps & RefAttributes<HTMLInputElement>>;
|
|
34
|
+
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3F,OAAO,EACL,UAAU,IAAI,mBAAmB,EAElC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiB9E,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB,CAAC,SAAS;CAAG;AAE7E,eAAO,MAAM,cAAc,0HAA2B,CAAC;AAIvD,MAAM,WAAW,mBACf,SAAQ,iBAAiB,EACvB,qBAAqB,EACrB,mBAAmB,CAAC,SAAS;CAAG;AAEpC,eAAO,MAAM,cAAc;;CAwB1B,CAAC;AAIF,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,mBAAmB,sHAG/B,CAAC;AAIF,MAAM,WAAW,0BACf,SAAQ,qBAAqB,EAC3B,mBAAmB,CAAC,gBAAgB;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAGQ,CAAC;AAI3C,MAAM,WAAW,4BAA6B,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IACtF;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,uBAAuB,wHA4BnC,CAAC;AAKF,MAAM,WAAW,8BAA+B,SAAQ,mBAAmB,CAAC,oBAAoB;CAAG;AAEnG,eAAO,MAAM,yBAAyB,uIAAsC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { radio } from '@seed-design/css/recipes/radio';
|
|
4
|
+
import { radiomark } from '@seed-design/css/recipes/radiomark';
|
|
5
|
+
import { mergeProps } from '@seed-design/dom-utils';
|
|
6
|
+
import { RadioGroup, useRadioGroupItemContext } from '@seed-design/react-radio-group';
|
|
7
|
+
import { Primitive } from '@seed-design/react-primitive';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import { forwardRef } from 'react';
|
|
10
|
+
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
11
|
+
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
12
|
+
import { InternalIcon } from '../private/Icon.js';
|
|
13
|
+
|
|
14
|
+
const { ClassNamesProvider, withContext } = createSlotRecipeContext(radio);
|
|
15
|
+
const {
|
|
16
|
+
withProvider: withRadiomarkProvider,
|
|
17
|
+
useClassNames: useRadiomarkClassNames,
|
|
18
|
+
PropsProvider: RadiomarkPropsProvider
|
|
19
|
+
} = createSlotRecipeContext(radiomark);
|
|
20
|
+
const withStateProps = createWithStateProps([useRadioGroupItemContext]);
|
|
21
|
+
const RadioGroupRoot = RadioGroup.Root;
|
|
22
|
+
const RadioGroupItem = Object.assign(
|
|
23
|
+
forwardRef(({ className, ...props }, ref) => {
|
|
24
|
+
const [radioVariantProps, __otherProps] = radio.splitVariantProps(props);
|
|
25
|
+
const [radiomarkVariantProps] = radiomark.splitVariantProps(props);
|
|
26
|
+
const [, otherProps] = radiomark.splitVariantProps(__otherProps);
|
|
27
|
+
const classNames = radio(radioVariantProps);
|
|
28
|
+
return /* @__PURE__ */ jsx(RadiomarkPropsProvider, { value: radiomarkVariantProps, children: /* @__PURE__ */ jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsx(
|
|
29
|
+
RadioGroup.Item,
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
className: clsx(classNames.root, className),
|
|
33
|
+
...otherProps
|
|
34
|
+
}
|
|
35
|
+
) }) });
|
|
36
|
+
}),
|
|
37
|
+
{
|
|
38
|
+
Primitive: RadioGroup.Item
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
const RadioGroupItemLabel = withContext(
|
|
42
|
+
withStateProps(Primitive.span),
|
|
43
|
+
"label"
|
|
44
|
+
);
|
|
45
|
+
const RadioGroupItemControl = withRadiomarkProvider(RadioGroup.ItemControl, "root");
|
|
46
|
+
const RadioGroupItemIndicator = forwardRef(
|
|
47
|
+
({ unchecked: uncheckedSvg, checked: checkedSvg, ...otherProps }, ref) => {
|
|
48
|
+
const { stateProps, checked } = useRadioGroupItemContext();
|
|
49
|
+
const classNames = useRadiomarkClassNames();
|
|
50
|
+
const mergedProps = mergeProps(
|
|
51
|
+
stateProps,
|
|
52
|
+
{ className: classNames.icon },
|
|
53
|
+
otherProps
|
|
54
|
+
);
|
|
55
|
+
if (checked)
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
InternalIcon,
|
|
58
|
+
{
|
|
59
|
+
ref,
|
|
60
|
+
svg: checkedSvg ?? /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }) }),
|
|
61
|
+
...mergedProps
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
if (uncheckedSvg) return /* @__PURE__ */ jsx(InternalIcon, { ref, svg: uncheckedSvg, ...mergedProps });
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
RadioGroupItemIndicator.displayName = "RadioGroupItemIndicator";
|
|
69
|
+
const RadioGroupItemHiddenInput = RadioGroup.ItemHiddenInput;
|
|
70
|
+
|
|
71
|
+
export { RadioGroupItem, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemLabel, RadioGroupRoot };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const RadioGroup = require('./RadioGroup.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Item = RadioGroup.RadioGroupItem;
|
|
10
|
+
exports.ItemControl = RadioGroup.RadioGroupItemControl;
|
|
11
|
+
exports.ItemHiddenInput = RadioGroup.RadioGroupItemHiddenInput;
|
|
12
|
+
exports.ItemIndicator = RadioGroup.RadioGroupItemIndicator;
|
|
13
|
+
exports.ItemLabel = RadioGroup.RadioGroupItemLabel;
|
|
14
|
+
exports.Root = RadioGroup.RadioGroupRoot;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { RadioGroupRoot as Root, RadioGroupItem as Item, RadioGroupItemLabel as ItemLabel, RadioGroupItemControl as ItemControl, RadioGroupItemIndicator as ItemIndicator, RadioGroupItemHiddenInput as ItemHiddenInput, type RadioGroupRootProps as RootProps, type RadioGroupItemProps as ItemProps, type RadioGroupItemLabelProps as ItemLabelProps, type RadioGroupItemControlProps as ItemControlProps, type RadioGroupItemIndicatorProps as ItemIndicatorProps, type RadioGroupItemHiddenInputProps as ItemHiddenInputProps, } from './RadioGroup';
|
|
2
|
+
//# sourceMappingURL=RadioGroup.namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,IAAI,EACtB,cAAc,IAAI,IAAI,EACtB,mBAAmB,IAAI,SAAS,EAChC,qBAAqB,IAAI,WAAW,EACpC,uBAAuB,IAAI,aAAa,EACxC,yBAAyB,IAAI,eAAe,EAC5C,KAAK,mBAAmB,IAAI,SAAS,EACrC,KAAK,mBAAmB,IAAI,SAAS,EACrC,KAAK,wBAAwB,IAAI,cAAc,EAC/C,KAAK,0BAA0B,IAAI,gBAAgB,EACnD,KAAK,4BAA4B,IAAI,kBAAkB,EACvD,KAAK,8BAA8B,IAAI,oBAAoB,GAC5D,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioGroupItem as Item, RadioGroupItemControl as ItemControl, RadioGroupItemHiddenInput as ItemHiddenInput, RadioGroupItemIndicator as ItemIndicator, RadioGroupItemLabel as ItemLabel, RadioGroupRoot as Root } from './RadioGroup.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const RadioGroup = require('./RadioGroup.cjs');
|
|
6
|
+
const RadioGroup_namespace = require('./RadioGroup.namespace.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.RadioGroupItem = RadioGroup.RadioGroupItem;
|
|
11
|
+
exports.RadioGroupItemControl = RadioGroup.RadioGroupItemControl;
|
|
12
|
+
exports.RadioGroupItemHiddenInput = RadioGroup.RadioGroupItemHiddenInput;
|
|
13
|
+
exports.RadioGroupItemIndicator = RadioGroup.RadioGroupItemIndicator;
|
|
14
|
+
exports.RadioGroupItemLabel = RadioGroup.RadioGroupItemLabel;
|
|
15
|
+
exports.RadioGroupRoot = RadioGroup.RadioGroupRoot;
|
|
16
|
+
exports.RadioGroup = RadioGroup_namespace;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { RadioGroupRoot, RadioGroupItem, RadioGroupItemLabel, RadioGroupItemControl, RadioGroupItemIndicator, RadioGroupItemHiddenInput, type RadioGroupRootProps, type RadioGroupItemProps, type RadioGroupItemLabelProps, type RadioGroupItemControlProps, type RadioGroupItemIndicatorProps, type RadioGroupItemHiddenInputProps, } from './RadioGroup';
|
|
2
|
+
export * as RadioGroup from './RadioGroup.namespace';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,GACpC,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { RadioGroupItem, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemIndicator, RadioGroupItemLabel, RadioGroupRoot } from './RadioGroup.js';
|
|
2
|
+
import * as RadioGroup_namespace from './RadioGroup.namespace.js';
|
|
3
|
+
export { RadioGroup_namespace as RadioGroup };
|
|
@@ -12,7 +12,6 @@ const React = require('react');
|
|
|
12
12
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
13
13
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
14
14
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
15
|
-
const Icon = require('../private/Icon.cjs');
|
|
16
15
|
|
|
17
16
|
const { withContext: withGroupContext } = createRecipeContext.createRecipeContext(selectBoxGroup.selectBoxGroup);
|
|
18
17
|
const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(selectBox.selectBox);
|
|
@@ -33,21 +32,9 @@ const CheckSelectBoxLabel = withContext(
|
|
|
33
32
|
"label"
|
|
34
33
|
);
|
|
35
34
|
const CheckSelectBoxDescription = withContext(withStateProps(reactPrimitive.Primitive.div), "description");
|
|
36
|
-
const CheckSelectBoxControl = withContext(
|
|
37
|
-
reactCheckbox.Checkbox.Control,
|
|
38
|
-
"checkboxControl"
|
|
39
|
-
);
|
|
40
|
-
const CheckSelectBoxIcon = withContext(
|
|
41
|
-
withStateProps(Icon.InternalIcon),
|
|
42
|
-
"checkboxIcon"
|
|
43
|
-
);
|
|
44
|
-
const CheckSelectBoxHiddenInput = reactCheckbox.Checkbox.HiddenInput;
|
|
45
35
|
|
|
46
36
|
exports.CheckSelectBoxContent = CheckSelectBoxContent;
|
|
47
|
-
exports.CheckSelectBoxControl = CheckSelectBoxControl;
|
|
48
37
|
exports.CheckSelectBoxDescription = CheckSelectBoxDescription;
|
|
49
38
|
exports.CheckSelectBoxGroup = CheckSelectBoxGroup;
|
|
50
|
-
exports.CheckSelectBoxHiddenInput = CheckSelectBoxHiddenInput;
|
|
51
|
-
exports.CheckSelectBoxIcon = CheckSelectBoxIcon;
|
|
52
39
|
exports.CheckSelectBoxLabel = CheckSelectBoxLabel;
|
|
53
40
|
exports.CheckSelectBoxRoot = CheckSelectBoxRoot;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Checkbox as CheckboxPrimitive } from '@seed-design/react-checkbox';
|
|
2
2
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
3
|
-
import { InternalIconProps } from '../private/Icon';
|
|
4
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
4
|
export interface CheckSelectBoxGroupProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
|
|
6
5
|
}
|
|
@@ -21,13 +20,4 @@ export declare const CheckSelectBoxLabel: ForwardRefExoticComponent<CheckSelectB
|
|
|
21
20
|
export interface CheckSelectBoxDescriptionProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
22
21
|
}
|
|
23
22
|
export declare const CheckSelectBoxDescription: ForwardRefExoticComponent<CheckSelectBoxDescriptionProps & RefAttributes<HTMLSpanElement>>;
|
|
24
|
-
export interface CheckSelectBoxControlProps extends CheckboxPrimitive.ControlProps {
|
|
25
|
-
}
|
|
26
|
-
export declare const CheckSelectBoxControl: ForwardRefExoticComponent<CheckSelectBoxControlProps & RefAttributes<HTMLDivElement>>;
|
|
27
|
-
export interface CheckSelectBoxIconProps extends InternalIconProps {
|
|
28
|
-
}
|
|
29
|
-
export declare const CheckSelectBoxIcon: ForwardRefExoticComponent<CheckSelectBoxIconProps & RefAttributes<SVGSVGElement>>;
|
|
30
|
-
export interface CheckSelectBoxHiddenInputProps extends CheckboxPrimitive.HiddenInputProps {
|
|
31
|
-
}
|
|
32
|
-
export declare const CheckSelectBoxHiddenInput: ForwardRefExoticComponent<CheckboxPrimitive.HiddenInputProps & RefAttributes<HTMLInputElement>>;
|
|
33
23
|
//# sourceMappingURL=CheckSelectBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckSelectBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/CheckSelectBox.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckSelectBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/CheckSelectBox.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAU9E,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qHAI/B,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB,CAAC,SAAS;CAAG;AAE/E,eAAO,MAAM,kBAAkB,sHAG9B,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAGjC,CAAC;AAEF,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,mBAAmB,sHAG/B,CAAC;AAEF,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,yBAAyB,4HAGS,CAAC"}
|
|
@@ -8,7 +8,6 @@ import { forwardRef } from 'react';
|
|
|
8
8
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
9
9
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
10
10
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
11
|
-
import { InternalIcon } from '../private/Icon.js';
|
|
12
11
|
|
|
13
12
|
const { withContext: withGroupContext } = createRecipeContext(selectBoxGroup);
|
|
14
13
|
const { withContext, withProvider } = createSlotRecipeContext(selectBox);
|
|
@@ -29,14 +28,5 @@ const CheckSelectBoxLabel = withContext(
|
|
|
29
28
|
"label"
|
|
30
29
|
);
|
|
31
30
|
const CheckSelectBoxDescription = withContext(withStateProps(Primitive.div), "description");
|
|
32
|
-
const CheckSelectBoxControl = withContext(
|
|
33
|
-
Checkbox.Control,
|
|
34
|
-
"checkboxControl"
|
|
35
|
-
);
|
|
36
|
-
const CheckSelectBoxIcon = withContext(
|
|
37
|
-
withStateProps(InternalIcon),
|
|
38
|
-
"checkboxIcon"
|
|
39
|
-
);
|
|
40
|
-
const CheckSelectBoxHiddenInput = Checkbox.HiddenInput;
|
|
41
31
|
|
|
42
|
-
export { CheckSelectBoxContent,
|
|
32
|
+
export { CheckSelectBoxContent, CheckSelectBoxDescription, CheckSelectBoxGroup, CheckSelectBoxLabel, CheckSelectBoxRoot };
|
|
@@ -7,10 +7,7 @@ const CheckSelectBox = require('./CheckSelectBox.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
exports.Content = CheckSelectBox.CheckSelectBoxContent;
|
|
10
|
-
exports.Control = CheckSelectBox.CheckSelectBoxControl;
|
|
11
10
|
exports.Description = CheckSelectBox.CheckSelectBoxDescription;
|
|
12
11
|
exports.Group = CheckSelectBox.CheckSelectBoxGroup;
|
|
13
|
-
exports.HiddenInput = CheckSelectBox.CheckSelectBoxHiddenInput;
|
|
14
|
-
exports.Icon = CheckSelectBox.CheckSelectBoxIcon;
|
|
15
12
|
exports.Label = CheckSelectBox.CheckSelectBoxLabel;
|
|
16
13
|
exports.Root = CheckSelectBox.CheckSelectBoxRoot;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CheckSelectBoxContent as Content,
|
|
1
|
+
export { CheckSelectBoxContent as Content, CheckSelectBoxDescription as Description, CheckSelectBoxGroup as Group, CheckSelectBoxLabel as Label, CheckSelectBoxRoot as Root, type CheckSelectBoxContentProps as ContentProps, type CheckSelectBoxDescriptionProps as DescriptionProps, type CheckSelectBoxGroupProps as GroupProps, type CheckSelectBoxLabelProps as LabelProps, type CheckSelectBoxRootProps as RootProps, } from './CheckSelectBox';
|
|
2
2
|
//# sourceMappingURL=CheckSelectBox.namespace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckSelectBox.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/CheckSelectBox.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,OAAO,EAChC,
|
|
1
|
+
{"version":3,"file":"CheckSelectBox.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/CheckSelectBox.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,OAAO,EAChC,yBAAyB,IAAI,WAAW,EACxC,mBAAmB,IAAI,KAAK,EAC5B,mBAAmB,IAAI,KAAK,EAC5B,kBAAkB,IAAI,IAAI,EAC1B,KAAK,0BAA0B,IAAI,YAAY,EAC/C,KAAK,8BAA8B,IAAI,gBAAgB,EACvD,KAAK,wBAAwB,IAAI,UAAU,EAC3C,KAAK,wBAAwB,IAAI,UAAU,EAC3C,KAAK,uBAAuB,IAAI,SAAS,GAC1C,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CheckSelectBoxContent as Content,
|
|
1
|
+
export { CheckSelectBoxContent as Content, CheckSelectBoxDescription as Description, CheckSelectBoxGroup as Group, CheckSelectBoxLabel as Label, CheckSelectBoxRoot as Root } from './CheckSelectBox.js';
|
|
@@ -10,7 +10,6 @@ const reactRadioGroup = require('@seed-design/react-radio-group');
|
|
|
10
10
|
const createRecipeContext = require('../../utils/createRecipeContext.cjs');
|
|
11
11
|
const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
|
|
12
12
|
const createWithStateProps = require('../../utils/createWithStateProps.cjs');
|
|
13
|
-
const Icon = require('../private/Icon.cjs');
|
|
14
13
|
|
|
15
14
|
const { withContext: withGroupContext } = createRecipeContext.createRecipeContext(selectBoxGroup.selectBoxGroup);
|
|
16
15
|
const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(selectBox.selectBox);
|
|
@@ -31,21 +30,9 @@ const RadioSelectBoxLabel = withContext(
|
|
|
31
30
|
"label"
|
|
32
31
|
);
|
|
33
32
|
const RadioSelectBoxDescription = withContext(withStateProps(reactPrimitive.Primitive.div), "description");
|
|
34
|
-
const RadioSelectBoxControl = withContext(
|
|
35
|
-
reactRadioGroup.RadioGroup.ItemControl,
|
|
36
|
-
"radioControl"
|
|
37
|
-
);
|
|
38
|
-
const RadioSelectBoxIcon = withContext(
|
|
39
|
-
withStateProps(Icon.InternalIcon),
|
|
40
|
-
"radioIcon"
|
|
41
|
-
);
|
|
42
|
-
const RadioSelectBoxHiddenInput = reactRadioGroup.RadioGroup.ItemHiddenInput;
|
|
43
33
|
|
|
44
34
|
exports.RadioSelectBoxContent = RadioSelectBoxContent;
|
|
45
|
-
exports.RadioSelectBoxControl = RadioSelectBoxControl;
|
|
46
35
|
exports.RadioSelectBoxDescription = RadioSelectBoxDescription;
|
|
47
|
-
exports.RadioSelectBoxHiddenInput = RadioSelectBoxHiddenInput;
|
|
48
|
-
exports.RadioSelectBoxIcon = RadioSelectBoxIcon;
|
|
49
36
|
exports.RadioSelectBoxItem = RadioSelectBoxItem;
|
|
50
37
|
exports.RadioSelectBoxLabel = RadioSelectBoxLabel;
|
|
51
38
|
exports.RadioSelectBoxRoot = RadioSelectBoxRoot;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PrimitiveProps } from '@seed-design/react-primitive';
|
|
2
2
|
import { RadioGroup as RadioGroupPrimitive } from '@seed-design/react-radio-group';
|
|
3
|
-
import { InternalIconProps } from '../private/Icon';
|
|
4
3
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
4
|
export interface RadioSelectBoxRootProps extends RadioGroupPrimitive.RootProps {
|
|
6
5
|
}
|
|
@@ -17,13 +16,4 @@ export declare const RadioSelectBoxLabel: ForwardRefExoticComponent<RadioSelectB
|
|
|
17
16
|
export interface RadioSelectBoxDescriptionProps extends PrimitiveProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
18
17
|
}
|
|
19
18
|
export declare const RadioSelectBoxDescription: ForwardRefExoticComponent<RadioSelectBoxDescriptionProps & RefAttributes<HTMLSpanElement>>;
|
|
20
|
-
export interface RadioSelectBoxControlProps extends RadioGroupPrimitive.ItemControlProps {
|
|
21
|
-
}
|
|
22
|
-
export declare const RadioSelectBoxControl: ForwardRefExoticComponent<RadioSelectBoxControlProps & RefAttributes<HTMLDivElement>>;
|
|
23
|
-
export interface RadioSelectBoxIconProps extends InternalIconProps {
|
|
24
|
-
}
|
|
25
|
-
export declare const RadioSelectBoxIcon: ForwardRefExoticComponent<RadioSelectBoxIconProps & RefAttributes<SVGSVGElement>>;
|
|
26
|
-
export interface RadioSelectBoxHiddenInputProps extends RadioGroupPrimitive.ItemHiddenInputProps {
|
|
27
|
-
}
|
|
28
|
-
export declare const RadioSelectBoxHiddenInput: ForwardRefExoticComponent<RadioGroupPrimitive.ItemHiddenInputProps & RefAttributes<HTMLInputElement>>;
|
|
29
19
|
//# sourceMappingURL=RadioSelectBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioSelectBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/RadioSelectBox.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,UAAU,IAAI,mBAAmB,EAElC,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioSelectBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/RadioSelectBox.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,UAAU,IAAI,mBAAmB,EAElC,MAAM,gCAAgC,CAAC;AASxC,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB,CAAC,SAAS;CAAG;AAEjF,eAAO,MAAM,kBAAkB,oHAE9B,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB,CAAC,SAAS;CAAG;AAEjF,eAAO,MAAM,kBAAkB,sHAG9B,CAAC;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,qBAAqB,uHAGjC,CAAC;AAEF,MAAM,WAAW,wBACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,mBAAmB,sHAG/B,CAAC;AAEF,MAAM,WAAW,8BACf,SAAQ,cAAc,EACpB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAE5C,eAAO,MAAM,yBAAyB,4HAGS,CAAC"}
|
|
@@ -6,7 +6,6 @@ import { RadioGroup, useRadioGroupItemContext } from '@seed-design/react-radio-g
|
|
|
6
6
|
import { createRecipeContext } from '../../utils/createRecipeContext.js';
|
|
7
7
|
import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
|
|
8
8
|
import { createWithStateProps } from '../../utils/createWithStateProps.js';
|
|
9
|
-
import { InternalIcon } from '../private/Icon.js';
|
|
10
9
|
|
|
11
10
|
const { withContext: withGroupContext } = createRecipeContext(selectBoxGroup);
|
|
12
11
|
const { withContext, withProvider } = createSlotRecipeContext(selectBox);
|
|
@@ -27,14 +26,5 @@ const RadioSelectBoxLabel = withContext(
|
|
|
27
26
|
"label"
|
|
28
27
|
);
|
|
29
28
|
const RadioSelectBoxDescription = withContext(withStateProps(Primitive.div), "description");
|
|
30
|
-
const RadioSelectBoxControl = withContext(
|
|
31
|
-
RadioGroup.ItemControl,
|
|
32
|
-
"radioControl"
|
|
33
|
-
);
|
|
34
|
-
const RadioSelectBoxIcon = withContext(
|
|
35
|
-
withStateProps(InternalIcon),
|
|
36
|
-
"radioIcon"
|
|
37
|
-
);
|
|
38
|
-
const RadioSelectBoxHiddenInput = RadioGroup.ItemHiddenInput;
|
|
39
29
|
|
|
40
|
-
export { RadioSelectBoxContent,
|
|
30
|
+
export { RadioSelectBoxContent, RadioSelectBoxDescription, RadioSelectBoxItem, RadioSelectBoxLabel, RadioSelectBoxRoot };
|
|
@@ -7,10 +7,7 @@ const RadioSelectBox = require('./RadioSelectBox.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
exports.Content = RadioSelectBox.RadioSelectBoxContent;
|
|
10
|
-
exports.Control = RadioSelectBox.RadioSelectBoxControl;
|
|
11
10
|
exports.Description = RadioSelectBox.RadioSelectBoxDescription;
|
|
12
|
-
exports.HiddenInput = RadioSelectBox.RadioSelectBoxHiddenInput;
|
|
13
|
-
exports.Icon = RadioSelectBox.RadioSelectBoxIcon;
|
|
14
11
|
exports.Item = RadioSelectBox.RadioSelectBoxItem;
|
|
15
12
|
exports.Label = RadioSelectBox.RadioSelectBoxLabel;
|
|
16
13
|
exports.Root = RadioSelectBox.RadioSelectBoxRoot;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { RadioSelectBoxContent as Content,
|
|
1
|
+
export { RadioSelectBoxContent as Content, RadioSelectBoxDescription as Description, RadioSelectBoxItem as Item, RadioSelectBoxLabel as Label, RadioSelectBoxRoot as Root, type RadioSelectBoxContentProps as ContentProps, type RadioSelectBoxDescriptionProps as DescriptionProps, type RadioSelectBoxItemProps as ItemProps, type RadioSelectBoxLabelProps as LabelProps, type RadioSelectBoxRootProps as RootProps, } from './RadioSelectBox';
|
|
2
2
|
//# sourceMappingURL=RadioSelectBox.namespace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioSelectBox.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/RadioSelectBox.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,OAAO,EAChC,
|
|
1
|
+
{"version":3,"file":"RadioSelectBox.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/RadioSelectBox.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,OAAO,EAChC,yBAAyB,IAAI,WAAW,EACxC,kBAAkB,IAAI,IAAI,EAC1B,mBAAmB,IAAI,KAAK,EAC5B,kBAAkB,IAAI,IAAI,EAC1B,KAAK,0BAA0B,IAAI,YAAY,EAC/C,KAAK,8BAA8B,IAAI,gBAAgB,EACvD,KAAK,uBAAuB,IAAI,SAAS,EACzC,KAAK,wBAAwB,IAAI,UAAU,EAC3C,KAAK,uBAAuB,IAAI,SAAS,GAC1C,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RadioSelectBoxContent as Content,
|
|
1
|
+
export { RadioSelectBoxContent as Content, RadioSelectBoxDescription as Description, RadioSelectBoxItem as Item, RadioSelectBoxLabel as Label, RadioSelectBoxRoot as Root } from './RadioSelectBox.js';
|
|
@@ -10,18 +10,12 @@ const RadioSelectBox_namespace = require('./RadioSelectBox.namespace.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.CheckSelectBoxContent = CheckSelectBox.CheckSelectBoxContent;
|
|
13
|
-
exports.CheckSelectBoxControl = CheckSelectBox.CheckSelectBoxControl;
|
|
14
13
|
exports.CheckSelectBoxDescription = CheckSelectBox.CheckSelectBoxDescription;
|
|
15
14
|
exports.CheckSelectBoxGroup = CheckSelectBox.CheckSelectBoxGroup;
|
|
16
|
-
exports.CheckSelectBoxHiddenInput = CheckSelectBox.CheckSelectBoxHiddenInput;
|
|
17
|
-
exports.CheckSelectBoxIcon = CheckSelectBox.CheckSelectBoxIcon;
|
|
18
15
|
exports.CheckSelectBoxLabel = CheckSelectBox.CheckSelectBoxLabel;
|
|
19
16
|
exports.CheckSelectBoxRoot = CheckSelectBox.CheckSelectBoxRoot;
|
|
20
17
|
exports.RadioSelectBoxContent = RadioSelectBox.RadioSelectBoxContent;
|
|
21
|
-
exports.RadioSelectBoxControl = RadioSelectBox.RadioSelectBoxControl;
|
|
22
18
|
exports.RadioSelectBoxDescription = RadioSelectBox.RadioSelectBoxDescription;
|
|
23
|
-
exports.RadioSelectBoxHiddenInput = RadioSelectBox.RadioSelectBoxHiddenInput;
|
|
24
|
-
exports.RadioSelectBoxIcon = RadioSelectBox.RadioSelectBoxIcon;
|
|
25
19
|
exports.RadioSelectBoxItem = RadioSelectBox.RadioSelectBoxItem;
|
|
26
20
|
exports.RadioSelectBoxLabel = RadioSelectBox.RadioSelectBoxLabel;
|
|
27
21
|
exports.RadioSelectBoxRoot = RadioSelectBox.RadioSelectBoxRoot;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CheckSelectBoxContent,
|
|
2
|
-
export { RadioSelectBoxContent,
|
|
1
|
+
export { CheckSelectBoxContent, CheckSelectBoxDescription, CheckSelectBoxGroup, CheckSelectBoxLabel, CheckSelectBoxRoot, type CheckSelectBoxContentProps, type CheckSelectBoxDescriptionProps, type CheckSelectBoxGroupProps, type CheckSelectBoxLabelProps, type CheckSelectBoxRootProps, } from './CheckSelectBox';
|
|
2
|
+
export { RadioSelectBoxContent, RadioSelectBoxDescription, RadioSelectBoxItem, RadioSelectBoxLabel, RadioSelectBoxRoot, type RadioSelectBoxContentProps, type RadioSelectBoxDescriptionProps, type RadioSelectBoxItemProps, type RadioSelectBoxLabelProps, type RadioSelectBoxRootProps, } from './RadioSelectBox';
|
|
3
3
|
export * as CheckSelectBox from './CheckSelectBox.namespace';
|
|
4
4
|
export * as RadioSelectBox from './RadioSelectBox.namespace';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CheckSelectBoxContent,
|
|
2
|
-
export { RadioSelectBoxContent,
|
|
1
|
+
export { CheckSelectBoxContent, CheckSelectBoxDescription, CheckSelectBoxGroup, CheckSelectBoxLabel, CheckSelectBoxRoot } from './CheckSelectBox.js';
|
|
2
|
+
export { RadioSelectBoxContent, RadioSelectBoxDescription, RadioSelectBoxItem, RadioSelectBoxLabel, RadioSelectBoxRoot } from './RadioSelectBox.js';
|
|
3
3
|
import * as CheckSelectBox_namespace from './CheckSelectBox.namespace.js';
|
|
4
4
|
export { CheckSelectBox_namespace as CheckSelectBox };
|
|
5
5
|
import * as RadioSelectBox_namespace from './RadioSelectBox.namespace.js';
|
|
@@ -18,7 +18,8 @@ const SwitchRoot = React.forwardRef(
|
|
|
18
18
|
({ size: propSize, className, ...otherProps }, ref) => {
|
|
19
19
|
const classNames = _switch.switchStyle({
|
|
20
20
|
// TODO: remove this mapping completely
|
|
21
|
-
size: propSize === "small" ? "16" : propSize === "medium" ? "32" : propSize
|
|
21
|
+
size: propSize === "small" ? "16" : propSize === "medium" ? "32" : propSize,
|
|
22
|
+
...otherProps
|
|
22
23
|
});
|
|
23
24
|
return /* @__PURE__ */ jsxRuntime.jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24
25
|
reactSwitch.Switch.Root,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAEvF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B;;GAEG;AACH,KAAK,gCAAgC,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,EACtC,eAAe,CAAC,SAAS;IAC3B,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,gCAAgC,CAAC;CACtE;AAED,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAEvF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B;;GAEG;AACH,KAAK,gCAAgC,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,EACtC,eAAe,CAAC,SAAS;IAC3B,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,gCAAgC,CAAC;CACtE;AAED,eAAO,MAAM,UAAU,0FAkBtB,CAAC;AAaF,MAAM,WAAW,kBAAmB,SAAQ,eAAe,CAAC,YAAY;CAAG;AAE3E,eAAO,MAAM,aAAa,2FAGzB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,eAAe,CAAC,UAAU;CAAG;AAEvE,eAAO,MAAM,WAAW,yFAGvB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAElG,eAAO,MAAM,WAAW,0FAGvB,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,eAAe,CAAC,gBAAgB;CAAG;AAEnF,eAAO,MAAM,iBAAiB,2GAA8B,CAAC"}
|
|
@@ -14,7 +14,8 @@ const SwitchRoot = React__default.forwardRef(
|
|
|
14
14
|
({ size: propSize, className, ...otherProps }, ref) => {
|
|
15
15
|
const classNames = switchStyle({
|
|
16
16
|
// TODO: remove this mapping completely
|
|
17
|
-
size: propSize === "small" ? "16" : propSize === "medium" ? "32" : propSize
|
|
17
|
+
size: propSize === "small" ? "16" : propSize === "medium" ? "32" : propSize,
|
|
18
|
+
...otherProps
|
|
18
19
|
});
|
|
19
20
|
return /* @__PURE__ */ jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsx(
|
|
20
21
|
Switch.Root,
|
package/lib/components/index.cjs
CHANGED
|
@@ -33,10 +33,10 @@ const ExtendedActionSheet = require('./ExtendedActionSheet/ExtendedActionSheet.c
|
|
|
33
33
|
const ExtendedActionSheet_namespace = require('./ExtendedActionSheet/ExtendedActionSheet.namespace.cjs');
|
|
34
34
|
const ExtendedFab = require('./ExtendedFab/ExtendedFab.cjs');
|
|
35
35
|
const Fab = require('./Fab/Fab.cjs');
|
|
36
|
-
const FloatingActionButton = require('./FloatingActionButton/FloatingActionButton.cjs');
|
|
37
|
-
const FloatingActionButton_namespace = require('./FloatingActionButton/FloatingActionButton.namespace.cjs');
|
|
38
36
|
const Flex = require('./Flex/Flex.cjs');
|
|
39
37
|
const Float = require('./Float/Float.cjs');
|
|
38
|
+
const FloatingActionButton = require('./FloatingActionButton/FloatingActionButton.cjs');
|
|
39
|
+
const FloatingActionButton_namespace = require('./FloatingActionButton/FloatingActionButton.namespace.cjs');
|
|
40
40
|
const HelpBubble = require('./HelpBubble/HelpBubble.cjs');
|
|
41
41
|
const HelpBubble_namespace = require('./HelpBubble/HelpBubble.namespace.cjs');
|
|
42
42
|
const Icon = require('./Icon/Icon.cjs');
|
|
@@ -46,6 +46,8 @@ const Inline = require('./Inline/Inline.cjs');
|
|
|
46
46
|
const InlineBanner = require('./InlineBanner/InlineBanner.cjs');
|
|
47
47
|
const InlineBanner_namespace = require('./InlineBanner/InlineBanner.namespace.cjs');
|
|
48
48
|
const LinkContent = require('./LinkContent/LinkContent.cjs');
|
|
49
|
+
const List = require('./List/List.cjs');
|
|
50
|
+
const List_namespace = require('./List/List.namespace.cjs');
|
|
49
51
|
const LoadingIndicator = require('./LoadingIndicator/LoadingIndicator.cjs');
|
|
50
52
|
const MannerTemp = require('./MannerTemp/MannerTemp.cjs');
|
|
51
53
|
const MannerTempEmote = require('./MannerTemp/MannerTempEmote.cjs');
|
|
@@ -60,6 +62,8 @@ const ProgressCircle = require('./ProgressCircle/ProgressCircle.cjs');
|
|
|
60
62
|
const ProgressCircle_namespace = require('./ProgressCircle/ProgressCircle.namespace.cjs');
|
|
61
63
|
const PullToRefresh = require('./PullToRefresh/PullToRefresh.cjs');
|
|
62
64
|
const PullToRefresh_namespace = require('./PullToRefresh/PullToRefresh.namespace.cjs');
|
|
65
|
+
const RadioGroup = require('./RadioGroup/RadioGroup.cjs');
|
|
66
|
+
const RadioGroup_namespace = require('./RadioGroup/RadioGroup.namespace.cjs');
|
|
63
67
|
const ReactionButton = require('./ReactionButton/ReactionButton.cjs');
|
|
64
68
|
const ResponsivePair = require('./ResponsivePair/ResponsivePair.cjs');
|
|
65
69
|
const SegmentedControl = require('./SegmentedControl/SegmentedControl.cjs');
|
|
@@ -181,12 +185,12 @@ exports.ExtendedActionSheetTrigger = ExtendedActionSheet.ExtendedActionSheetTrig
|
|
|
181
185
|
exports.ExtendedActionSheet = ExtendedActionSheet_namespace;
|
|
182
186
|
exports.ExtendedFab = ExtendedFab.ExtendedFab;
|
|
183
187
|
exports.Fab = Fab.Fab;
|
|
188
|
+
exports.Flex = Flex.Flex;
|
|
189
|
+
exports.Float = Float.Float;
|
|
184
190
|
exports.FloatingActionButtonIcon = FloatingActionButton.FloatingActionButtonIcon;
|
|
185
191
|
exports.FloatingActionButtonLabel = FloatingActionButton.FloatingActionButtonLabel;
|
|
186
192
|
exports.FloatingActionButtonRoot = FloatingActionButton.FloatingActionButtonRoot;
|
|
187
193
|
exports.FloatingActionButton = FloatingActionButton_namespace;
|
|
188
|
-
exports.Flex = Flex.Flex;
|
|
189
|
-
exports.Float = Float.Float;
|
|
190
194
|
exports.HelpBubbleAnchor = HelpBubble.HelpBubbleAnchor;
|
|
191
195
|
exports.HelpBubbleArrow = HelpBubble.HelpBubbleArrow;
|
|
192
196
|
exports.HelpBubbleArrowTip = HelpBubble.HelpBubbleArrowTip;
|
|
@@ -213,6 +217,14 @@ exports.InlineBannerRoot = InlineBanner.InlineBannerRoot;
|
|
|
213
217
|
exports.InlineBannerTitle = InlineBanner.InlineBannerTitle;
|
|
214
218
|
exports.InlineBanner = InlineBanner_namespace;
|
|
215
219
|
exports.LinkContent = LinkContent.LinkContent;
|
|
220
|
+
exports.ListContent = List.ListContent;
|
|
221
|
+
exports.ListDetail = List.ListDetail;
|
|
222
|
+
exports.ListItem = List.ListItem;
|
|
223
|
+
exports.ListPrefix = List.ListPrefix;
|
|
224
|
+
exports.ListRoot = List.ListRoot;
|
|
225
|
+
exports.ListSuffix = List.ListSuffix;
|
|
226
|
+
exports.ListTitle = List.ListTitle;
|
|
227
|
+
exports.List = List_namespace;
|
|
216
228
|
exports.LoadingIndicator = LoadingIndicator.LoadingIndicator;
|
|
217
229
|
exports.MannerTemp = MannerTemp.MannerTemp;
|
|
218
230
|
exports.MannerTempEmote = MannerTempEmote.MannerTempEmote;
|
|
@@ -251,6 +263,13 @@ exports.PullToRefreshContent = PullToRefresh.PullToRefreshContent;
|
|
|
251
263
|
exports.PullToRefreshIndicator = PullToRefresh.PullToRefreshIndicator;
|
|
252
264
|
exports.PullToRefreshRoot = PullToRefresh.PullToRefreshRoot;
|
|
253
265
|
exports.PullToRefresh = PullToRefresh_namespace;
|
|
266
|
+
exports.RadioGroupItem = RadioGroup.RadioGroupItem;
|
|
267
|
+
exports.RadioGroupItemControl = RadioGroup.RadioGroupItemControl;
|
|
268
|
+
exports.RadioGroupItemHiddenInput = RadioGroup.RadioGroupItemHiddenInput;
|
|
269
|
+
exports.RadioGroupItemIndicator = RadioGroup.RadioGroupItemIndicator;
|
|
270
|
+
exports.RadioGroupItemLabel = RadioGroup.RadioGroupItemLabel;
|
|
271
|
+
exports.RadioGroupRoot = RadioGroup.RadioGroupRoot;
|
|
272
|
+
exports.RadioGroup = RadioGroup_namespace;
|
|
254
273
|
exports.ReactionButton = ReactionButton.ReactionButton;
|
|
255
274
|
exports.ResponsivePair = ResponsivePair.ResponsivePair;
|
|
256
275
|
exports.SegmentedControlIndicator = SegmentedControl.SegmentedControlIndicator;
|
|
@@ -259,18 +278,12 @@ exports.SegmentedControlItemHiddenInput = SegmentedControl.SegmentedControlItemH
|
|
|
259
278
|
exports.SegmentedControlRoot = SegmentedControl.SegmentedControlRoot;
|
|
260
279
|
exports.SegmentedControl = SegmentedControl_namespace;
|
|
261
280
|
exports.CheckSelectBoxContent = CheckSelectBox.CheckSelectBoxContent;
|
|
262
|
-
exports.CheckSelectBoxControl = CheckSelectBox.CheckSelectBoxControl;
|
|
263
281
|
exports.CheckSelectBoxDescription = CheckSelectBox.CheckSelectBoxDescription;
|
|
264
282
|
exports.CheckSelectBoxGroup = CheckSelectBox.CheckSelectBoxGroup;
|
|
265
|
-
exports.CheckSelectBoxHiddenInput = CheckSelectBox.CheckSelectBoxHiddenInput;
|
|
266
|
-
exports.CheckSelectBoxIcon = CheckSelectBox.CheckSelectBoxIcon;
|
|
267
283
|
exports.CheckSelectBoxLabel = CheckSelectBox.CheckSelectBoxLabel;
|
|
268
284
|
exports.CheckSelectBoxRoot = CheckSelectBox.CheckSelectBoxRoot;
|
|
269
285
|
exports.RadioSelectBoxContent = RadioSelectBox.RadioSelectBoxContent;
|
|
270
|
-
exports.RadioSelectBoxControl = RadioSelectBox.RadioSelectBoxControl;
|
|
271
286
|
exports.RadioSelectBoxDescription = RadioSelectBox.RadioSelectBoxDescription;
|
|
272
|
-
exports.RadioSelectBoxHiddenInput = RadioSelectBox.RadioSelectBoxHiddenInput;
|
|
273
|
-
exports.RadioSelectBoxIcon = RadioSelectBox.RadioSelectBoxIcon;
|
|
274
287
|
exports.RadioSelectBoxItem = RadioSelectBox.RadioSelectBoxItem;
|
|
275
288
|
exports.RadioSelectBoxLabel = RadioSelectBox.RadioSelectBoxLabel;
|
|
276
289
|
exports.RadioSelectBoxRoot = RadioSelectBox.RadioSelectBoxRoot;
|
|
@@ -20,15 +20,16 @@ export * from './Divider';
|
|
|
20
20
|
export * from './ExtendedActionSheet';
|
|
21
21
|
export * from './ExtendedFab';
|
|
22
22
|
export * from './Fab';
|
|
23
|
-
export * from './FloatingActionButton';
|
|
24
23
|
export * from './Flex';
|
|
25
24
|
export * from './Float';
|
|
25
|
+
export * from './FloatingActionButton';
|
|
26
26
|
export * from './HelpBubble';
|
|
27
27
|
export * from './Icon';
|
|
28
28
|
export * from './IdentityPlaceholder';
|
|
29
29
|
export * from './Inline';
|
|
30
30
|
export * from './InlineBanner';
|
|
31
31
|
export * from './LinkContent';
|
|
32
|
+
export * from './List';
|
|
32
33
|
export * from './LoadingIndicator';
|
|
33
34
|
export * from './MannerTemp';
|
|
34
35
|
export * from './MannerTempBadge';
|
|
@@ -38,6 +39,7 @@ export * from './PageBanner';
|
|
|
38
39
|
export * from './Portal';
|
|
39
40
|
export * from './ProgressCircle';
|
|
40
41
|
export * from './PullToRefresh';
|
|
42
|
+
export * from './RadioGroup';
|
|
41
43
|
export * from './ReactionButton';
|
|
42
44
|
export * from './ResponsivePair';
|
|
43
45
|
export * from './SegmentedControl';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|