@cerberus-design/react 0.15.0-next-5d7dc1e → 0.15.0-next-7a184be
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/build/legacy/_tsup-dts-rollup.d.cts +238 -92
- package/build/legacy/components/{FieldsetLabel.cjs → deprecated/FieldsetLabel.cjs} +1 -1
- package/build/legacy/components/deprecated/FieldsetLabel.cjs.map +1 -0
- package/build/legacy/components/fieldset/fieldset.cjs +116 -0
- package/build/legacy/components/fieldset/fieldset.cjs.map +1 -0
- package/build/legacy/components/fieldset/index.cjs +126 -0
- package/build/legacy/components/fieldset/index.cjs.map +1 -0
- package/build/legacy/components/fieldset/parts.cjs +80 -0
- package/build/legacy/components/fieldset/parts.cjs.map +1 -0
- package/build/legacy/components/fieldset/primitives.cjs +76 -0
- package/build/legacy/components/fieldset/primitives.cjs.map +1 -0
- package/build/legacy/components/radio/index.cjs +143 -0
- package/build/legacy/components/radio/index.cjs.map +1 -0
- package/build/legacy/components/radio/parts.cjs +113 -0
- package/build/legacy/components/radio/parts.cjs.map +1 -0
- package/build/legacy/components/radio/primitives.cjs +115 -0
- package/build/legacy/components/radio/primitives.cjs.map +1 -0
- package/build/legacy/components/radio/radio.cjs +82 -0
- package/build/legacy/components/radio/radio.cjs.map +1 -0
- package/build/legacy/index.cjs +764 -635
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +238 -92
- package/build/modern/chunk-5RTNSVYU.js +88 -0
- package/build/modern/chunk-5RTNSVYU.js.map +1 -0
- package/build/modern/chunk-7TQRTBUP.js +19 -0
- package/build/modern/chunk-7TQRTBUP.js.map +1 -0
- package/build/modern/chunk-AO3GB72J.js +27 -0
- package/build/modern/chunk-AO3GB72J.js.map +1 -0
- package/build/modern/{chunk-OYT7RGC7.js → chunk-DRDNNRU3.js} +2 -2
- package/build/modern/chunk-DRDNNRU3.js.map +1 -0
- package/build/modern/chunk-FUL2VRDU.js +25 -0
- package/build/modern/chunk-FUL2VRDU.js.map +1 -0
- package/build/modern/chunk-IDTAB2UJ.js +1 -0
- package/build/modern/chunk-OGYMMATX.js +1 -0
- package/build/modern/{chunk-FK52US7K.js → chunk-RHCTPSKT.js} +7 -7
- package/build/modern/chunk-STLN7BMJ.js +22 -0
- package/build/modern/chunk-STLN7BMJ.js.map +1 -0
- package/build/modern/chunk-Z3FDG263.js +53 -0
- package/build/modern/chunk-Z3FDG263.js.map +1 -0
- package/build/modern/{chunk-CF3EHG42.js → chunk-ZFFW5ELD.js} +4 -4
- package/build/modern/components/AccordionItemGroup.js +1 -1
- package/build/modern/components/DatePicker.client.js +3 -3
- package/build/modern/components/FileStatus.js +2 -2
- package/build/modern/components/deprecated/FieldsetLabel.js +7 -0
- package/build/modern/components/fieldset/fieldset.js +11 -0
- package/build/modern/components/fieldset/fieldset.js.map +1 -0
- package/build/modern/components/fieldset/index.js +24 -0
- package/build/modern/components/fieldset/index.js.map +1 -0
- package/build/modern/components/fieldset/parts.js +8 -0
- package/build/modern/components/fieldset/parts.js.map +1 -0
- package/build/modern/components/fieldset/primitives.js +13 -0
- package/build/modern/components/fieldset/primitives.js.map +1 -0
- package/build/modern/components/radio/index.js +30 -0
- package/build/modern/components/radio/index.js.map +1 -0
- package/build/modern/components/radio/parts.js +8 -0
- package/build/modern/components/radio/parts.js.map +1 -0
- package/build/modern/components/radio/primitives.js +21 -0
- package/build/modern/components/radio/primitives.js.map +1 -0
- package/build/modern/components/radio/radio.js +8 -0
- package/build/modern/components/radio/radio.js.map +1 -0
- package/build/modern/context/confirm-modal.js +1 -1
- package/build/modern/context/cta-modal.js +2 -2
- package/build/modern/context/prompt-modal.js +1 -1
- package/build/modern/index.js +115 -77
- package/build/modern/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/deprecated/FieldsetLabel.tsx +32 -0
- package/src/components/fieldset/fieldset.tsx +55 -0
- package/src/components/fieldset/index.ts +3 -0
- package/src/components/fieldset/parts.ts +47 -0
- package/src/components/fieldset/primitives.tsx +79 -0
- package/src/components/radio/index.ts +3 -0
- package/src/components/radio/parts.ts +65 -0
- package/src/components/radio/primitives.tsx +123 -0
- package/src/components/radio/radio.tsx +35 -0
- package/src/index.ts +3 -3
- package/build/legacy/components/Fieldset.cjs +0 -53
- package/build/legacy/components/Fieldset.cjs.map +0 -1
- package/build/legacy/components/FieldsetLabel.cjs.map +0 -1
- package/build/legacy/components/Radio.cjs +0 -64
- package/build/legacy/components/Radio.cjs.map +0 -1
- package/build/modern/chunk-6EUC3SUI.js +0 -28
- package/build/modern/chunk-6EUC3SUI.js.map +0 -1
- package/build/modern/chunk-6WOJAMZV.js +0 -40
- package/build/modern/chunk-6WOJAMZV.js.map +0 -1
- package/build/modern/chunk-OYT7RGC7.js.map +0 -1
- package/build/modern/components/Fieldset.js +0 -8
- package/build/modern/components/FieldsetLabel.js +0 -7
- package/build/modern/components/Radio.js +0 -7
- package/src/components/Fieldset.tsx +0 -65
- package/src/components/FieldsetLabel.tsx +0 -62
- package/src/components/Radio.tsx +0 -68
- /package/build/modern/{components/Fieldset.js.map → chunk-IDTAB2UJ.js.map} +0 -0
- /package/build/modern/{components/FieldsetLabel.js.map → chunk-OGYMMATX.js.map} +0 -0
- /package/build/modern/{chunk-FK52US7K.js.map → chunk-RHCTPSKT.js.map} +0 -0
- /package/build/modern/{chunk-CF3EHG42.js.map → chunk-ZFFW5ELD.js.map} +0 -0
- /package/build/modern/components/{Radio.js.map → deprecated/FieldsetLabel.js.map} +0 -0
|
@@ -86,7 +86,11 @@ import { FieldLabelProps } from '@ark-ui/react/field';
|
|
|
86
86
|
import { FieldMessageVariantProps } from '@cerberus/styled-system/recipes';
|
|
87
87
|
import { FieldRootProps as FieldRootProps_2 } from '@ark-ui/react/field';
|
|
88
88
|
import type { FieldRootProps as FieldRootProps_3 } from '@ark-ui/react';
|
|
89
|
-
import
|
|
89
|
+
import { FieldsetHelperTextProps } from '@ark-ui/react/fieldset';
|
|
90
|
+
import { FieldsetLegendProps } from '@ark-ui/react/fieldset';
|
|
91
|
+
import type { FieldsetRootProps } from '@ark-ui/react';
|
|
92
|
+
import { FieldsetRootProps as FieldsetRootProps_2 } from '@ark-ui/react/fieldset';
|
|
93
|
+
import { FieldsetVariantProps } from '@cerberus/styled-system/recipes';
|
|
90
94
|
import { FieldTextareaProps } from '@ark-ui/react/field';
|
|
91
95
|
import { FieldVariantProps } from '@cerberus/styled-system/recipes';
|
|
92
96
|
import { FileStatusVariantProps } from '@cerberus/styled-system/recipes';
|
|
@@ -131,9 +135,16 @@ import { PProps } from '@cerberus/styled-system/jsx';
|
|
|
131
135
|
import type { Pretty } from '@cerberus/styled-system/types';
|
|
132
136
|
import { ProgressBarVariantProps } from '@cerberus/styled-system/recipes';
|
|
133
137
|
import { PropsWithChildren } from 'react';
|
|
134
|
-
import {
|
|
138
|
+
import { RadioGroupIndicatorProps } from '@ark-ui/react/radio-group';
|
|
139
|
+
import { RadioGroupItemControlProps } from '@ark-ui/react/radio-group';
|
|
140
|
+
import { RadioGroupItemHiddenInputProps } from '@ark-ui/react/radio-group';
|
|
141
|
+
import { RadioGroupItemProps } from '@ark-ui/react/radio-group';
|
|
142
|
+
import type { RadioGroupItemProps as RadioGroupItemProps_2 } from '@ark-ui/react';
|
|
143
|
+
import { RadioGroupItemTextProps } from '@ark-ui/react/radio-group';
|
|
144
|
+
import { RadioGroupLabelProps } from '@ark-ui/react/radio-group';
|
|
145
|
+
import { RadioGroupRootProps } from '@ark-ui/react/radio-group';
|
|
146
|
+
import { RadioGroupVariantProps } from '@cerberus/styled-system/recipes';
|
|
135
147
|
import { ReactNode } from 'react';
|
|
136
|
-
import type { RecipeVariantProps } from '@cerberus/styled-system/types';
|
|
137
148
|
import { rectIntersection } from '@dnd-kit/core';
|
|
138
149
|
import { RefAttributes } from 'react';
|
|
139
150
|
import { RefObject } from 'react';
|
|
@@ -1914,74 +1925,38 @@ export { FieldRootProps as FieldRootProps_alias_1 }
|
|
|
1914
1925
|
export { FieldRootProps as FieldRootProps_alias_2 }
|
|
1915
1926
|
|
|
1916
1927
|
/**
|
|
1917
|
-
* A component
|
|
1918
|
-
*
|
|
1919
|
-
* @
|
|
1920
|
-
* @description [
|
|
1921
|
-
* @description [MDN Web Docs: Fieldset](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset)
|
|
1922
|
-
* @example
|
|
1923
|
-
* ```tsx
|
|
1924
|
-
* import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'
|
|
1925
|
-
* import { Hstack } from '@cerberus/styled-system/jsx'
|
|
1926
|
-
*
|
|
1927
|
-
* function SomeForm() {
|
|
1928
|
-
* return (
|
|
1929
|
-
* <form>
|
|
1930
|
-
* <Fieldset>
|
|
1931
|
-
* <Legend>Do you like cats?</Legend>
|
|
1932
|
-
* <Hstack>
|
|
1933
|
-
* <Field>
|
|
1934
|
-
* <Radio id="yes" name="cats" value="yes" />
|
|
1935
|
-
* <Label htmlFor="yes">Yes</Label>
|
|
1936
|
-
* </Field>
|
|
1937
|
-
* </Hstack>
|
|
1938
|
-
* <Hstack>
|
|
1939
|
-
* <Field>
|
|
1940
|
-
* <Radio id="no" name="cats" value="no" />
|
|
1941
|
-
* <Label htmlFor="no">No</Label>
|
|
1942
|
-
* </Field>
|
|
1943
|
-
* </Hstack>
|
|
1944
|
-
* </Fieldset>
|
|
1945
|
-
* </form>
|
|
1946
|
-
* )
|
|
1947
|
-
* }
|
|
1928
|
+
* A component used for grouping related fields in a form that is an
|
|
1929
|
+
* abstraction of the Fieldset primitives.
|
|
1930
|
+
* @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
|
|
1931
|
+
* @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
|
|
1948
1932
|
*/
|
|
1949
1933
|
declare function Fieldset(props: FieldsetProps): JSX_2.Element;
|
|
1950
1934
|
export { Fieldset }
|
|
1951
1935
|
export { Fieldset as Fieldset_alias_1 }
|
|
1936
|
+
export { Fieldset as Fieldset_alias_2 }
|
|
1952
1937
|
|
|
1953
1938
|
/**
|
|
1954
|
-
*
|
|
1955
|
-
* @
|
|
1956
|
-
* @
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
*
|
|
1965
|
-
*
|
|
1966
|
-
*
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
*
|
|
1975
|
-
* <Field>
|
|
1976
|
-
* <Radio id="no" name="cats" value="no" />
|
|
1977
|
-
* <FieldsetLabel htmlFor="no">No</FieldsetLabel>
|
|
1978
|
-
* </Field>
|
|
1979
|
-
* </Hstack>
|
|
1980
|
-
* </Fieldset>
|
|
1981
|
-
* </form>
|
|
1982
|
-
* )
|
|
1983
|
-
* }
|
|
1984
|
-
* ```
|
|
1939
|
+
* The error text element for the Fieldset group.
|
|
1940
|
+
* @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
|
|
1941
|
+
* @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
|
|
1942
|
+
*/
|
|
1943
|
+
declare function FieldsetErrorText(props: FieldsetHelperTextProps): JSX_2.Element;
|
|
1944
|
+
export { FieldsetErrorText }
|
|
1945
|
+
export { FieldsetErrorText as FieldsetErrorText_alias_1 }
|
|
1946
|
+
export { FieldsetErrorText as FieldsetErrorText_alias_2 }
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* The description element for the Fieldset group.
|
|
1950
|
+
* @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
|
|
1951
|
+
* @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
|
|
1952
|
+
*/
|
|
1953
|
+
declare function FieldsetHelperText(props: FieldsetHelperTextProps & FieldsetVariantProps): JSX_2.Element;
|
|
1954
|
+
export { FieldsetHelperText }
|
|
1955
|
+
export { FieldsetHelperText as FieldsetHelperText_alias_1 }
|
|
1956
|
+
export { FieldsetHelperText as FieldsetHelperText_alias_2 }
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* @deprecated
|
|
1985
1960
|
*/
|
|
1986
1961
|
declare function FieldsetLabel(props: FieldsetLabelProps): JSX_2.Element;
|
|
1987
1962
|
export { FieldsetLabel }
|
|
@@ -1997,13 +1972,88 @@ declare type FieldsetLabelProps = LabelProps & LabelVariantProps & {
|
|
|
1997
1972
|
export { FieldsetLabelProps }
|
|
1998
1973
|
export { FieldsetLabelProps as FieldsetLabelProps_alias_1 }
|
|
1999
1974
|
|
|
1975
|
+
/**
|
|
1976
|
+
* The legend element for the Fieldset group.
|
|
1977
|
+
* @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
|
|
1978
|
+
* @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
|
|
1979
|
+
*/
|
|
1980
|
+
declare function FieldsetLegend(props: FieldsetLegendProps & FieldsetVariantProps): JSX_2.Element;
|
|
1981
|
+
export { FieldsetLegend }
|
|
1982
|
+
export { FieldsetLegend as FieldsetLegend_alias_1 }
|
|
1983
|
+
export { FieldsetLegend as FieldsetLegend_alias_2 }
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* An Object containing the parts of the Field component. For users that
|
|
1987
|
+
* prefer Object component syntax.
|
|
1988
|
+
*
|
|
1989
|
+
* @remarks
|
|
1990
|
+
*
|
|
1991
|
+
* When using object component syntax, you import the FieldParts object and
|
|
1992
|
+
* the entire family of components vs. only what you use.
|
|
1993
|
+
*/
|
|
1994
|
+
declare const FieldsetParts: FieldsetPartsValue;
|
|
1995
|
+
export { FieldsetParts }
|
|
1996
|
+
export { FieldsetParts as FieldsetParts_alias_1 }
|
|
1997
|
+
export { FieldsetParts as FieldsetParts_alias_2 }
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* This module contains the parts of the Field component.
|
|
2001
|
+
* @module 'field/parts'
|
|
2002
|
+
*/
|
|
2003
|
+
declare interface FieldsetPartsValue {
|
|
2004
|
+
/**
|
|
2005
|
+
* The container of the field.
|
|
2006
|
+
*/
|
|
2007
|
+
Root: ElementType;
|
|
2008
|
+
/**
|
|
2009
|
+
* The label of the field.
|
|
2010
|
+
*/
|
|
2011
|
+
Legend: ElementType;
|
|
2012
|
+
/**
|
|
2013
|
+
* The text that displays when the field is valid.
|
|
2014
|
+
*/
|
|
2015
|
+
HelperText: ElementType;
|
|
2016
|
+
/**
|
|
2017
|
+
* The text that displays when the field is invalid.
|
|
2018
|
+
*/
|
|
2019
|
+
ErrorText: ElementType;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2000
2022
|
/**
|
|
2001
2023
|
* This module contains the Fieldset component.
|
|
2002
2024
|
* @module Fieldset
|
|
2003
2025
|
*/
|
|
2004
|
-
declare
|
|
2026
|
+
declare interface FieldsetProps extends FieldsetRootProps, FieldsetVariantProps {
|
|
2027
|
+
/**
|
|
2028
|
+
* The legend/title/label of the fieldset group.
|
|
2029
|
+
*/
|
|
2030
|
+
legend?: string;
|
|
2031
|
+
/**
|
|
2032
|
+
* The description text for the fieldset group.
|
|
2033
|
+
*/
|
|
2034
|
+
helperText?: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* The error text for the fieldset group shown when the field is invalid.
|
|
2037
|
+
*/
|
|
2038
|
+
errorText?: string;
|
|
2039
|
+
}
|
|
2005
2040
|
export { FieldsetProps }
|
|
2006
2041
|
export { FieldsetProps as FieldsetProps_alias_1 }
|
|
2042
|
+
export { FieldsetProps as FieldsetProps_alias_2 }
|
|
2043
|
+
|
|
2044
|
+
/**
|
|
2045
|
+
* This module contains all the primitives of the Fieldset component.
|
|
2046
|
+
* @module 'react/fieldset'
|
|
2047
|
+
*/
|
|
2048
|
+
/**
|
|
2049
|
+
* The context & container for the Fieldset components.
|
|
2050
|
+
* @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)
|
|
2051
|
+
* @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)
|
|
2052
|
+
*/
|
|
2053
|
+
declare function FieldsetRoot(props: FieldsetRootProps_2): JSX_2.Element;
|
|
2054
|
+
export { FieldsetRoot }
|
|
2055
|
+
export { FieldsetRoot as FieldsetRoot_alias_1 }
|
|
2056
|
+
export { FieldsetRoot as FieldsetRoot_alias_2 }
|
|
2007
2057
|
|
|
2008
2058
|
/**
|
|
2009
2059
|
* The start indicator displays an indicator at the start of the Input.
|
|
@@ -3207,45 +3257,141 @@ export { PromptShowResult as PromptShowResult_alias_1 }
|
|
|
3207
3257
|
* @memberof module:Field
|
|
3208
3258
|
* @example
|
|
3209
3259
|
* ```tsx
|
|
3210
|
-
* <
|
|
3211
|
-
* <fieldset name="fruit">
|
|
3212
|
-
* <Radio id="radio-1" name="fruit" value="1">
|
|
3213
|
-
* Option 1
|
|
3214
|
-
* </Radio>
|
|
3215
|
-
* <Radio id="radio-2" name="fruit" value="2">
|
|
3216
|
-
* Option 2
|
|
3217
|
-
* </Radio>
|
|
3218
|
-
* <Radio id="radio-3" name="fruit" value="3">
|
|
3219
|
-
* Option 3
|
|
3220
|
-
* </Radio>
|
|
3221
|
-
* </fieldset>
|
|
3222
|
-
* </Field>
|
|
3260
|
+
* <Radio value="option1">Option 1</Radio>
|
|
3223
3261
|
* ```
|
|
3224
3262
|
*/
|
|
3225
|
-
declare function Radio(props:
|
|
3263
|
+
declare function Radio(props: RadioProps): JSX_2.Element;
|
|
3226
3264
|
export { Radio }
|
|
3227
3265
|
export { Radio as Radio_alias_1 }
|
|
3266
|
+
export { Radio as Radio_alias_2 }
|
|
3267
|
+
|
|
3268
|
+
declare const RadioGroup: typeof RadioGroupRoot;
|
|
3269
|
+
export { RadioGroup }
|
|
3270
|
+
export { RadioGroup as RadioGroup_alias_1 }
|
|
3271
|
+
export { RadioGroup as RadioGroup_alias_2 }
|
|
3272
|
+
|
|
3273
|
+
/**
|
|
3274
|
+
* The RadioGroupIndicator component is used to indicate the selected radio
|
|
3275
|
+
* button in a group.
|
|
3276
|
+
*/
|
|
3277
|
+
declare function RadioGroupIndicator(props: RadioGroupIndicatorProps): JSX_2.Element;
|
|
3278
|
+
export { RadioGroupIndicator }
|
|
3279
|
+
export { RadioGroupIndicator as RadioGroupIndicator_alias_1 }
|
|
3280
|
+
export { RadioGroupIndicator as RadioGroupIndicator_alias_2 }
|
|
3281
|
+
|
|
3282
|
+
/**
|
|
3283
|
+
* The RadioGroupItem component is used to render a single radio button in a
|
|
3284
|
+
* group.
|
|
3285
|
+
*/
|
|
3286
|
+
declare function RadioGroupItem(props: RadioGroupItemProps): JSX_2.Element;
|
|
3287
|
+
export { RadioGroupItem }
|
|
3288
|
+
export { RadioGroupItem as RadioGroupItem_alias_1 }
|
|
3289
|
+
export { RadioGroupItem as RadioGroupItem_alias_2 }
|
|
3290
|
+
|
|
3291
|
+
/**
|
|
3292
|
+
* The RadioGroupItemControl component is used to render the control for a
|
|
3293
|
+
* single radio button in a group.
|
|
3294
|
+
*/
|
|
3295
|
+
declare function RadioGroupItemControl(props: RadioGroupItemControlProps & RadioGroupVariantProps): JSX_2.Element;
|
|
3296
|
+
export { RadioGroupItemControl }
|
|
3297
|
+
export { RadioGroupItemControl as RadioGroupItemControl_alias_1 }
|
|
3298
|
+
export { RadioGroupItemControl as RadioGroupItemControl_alias_2 }
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* The RadioGroupItemHiddenInput component is used to render the hidden input
|
|
3302
|
+
* for a single radio button in a group.
|
|
3303
|
+
*/
|
|
3304
|
+
declare function RadioGroupItemHiddenInput(props: RadioGroupItemHiddenInputProps): JSX_2.Element;
|
|
3305
|
+
export { RadioGroupItemHiddenInput }
|
|
3306
|
+
export { RadioGroupItemHiddenInput as RadioGroupItemHiddenInput_alias_1 }
|
|
3307
|
+
export { RadioGroupItemHiddenInput as RadioGroupItemHiddenInput_alias_2 }
|
|
3308
|
+
|
|
3309
|
+
/**
|
|
3310
|
+
* The RadioGroupItemText component is used to render the text label for a
|
|
3311
|
+
* single radio button in a group.
|
|
3312
|
+
*/
|
|
3313
|
+
declare function RadioGroupItemText(props: RadioGroupItemTextProps & RadioGroupVariantProps): JSX_2.Element;
|
|
3314
|
+
export { RadioGroupItemText }
|
|
3315
|
+
export { RadioGroupItemText as RadioGroupItemText_alias_1 }
|
|
3316
|
+
export { RadioGroupItemText as RadioGroupItemText_alias_2 }
|
|
3317
|
+
|
|
3318
|
+
/**
|
|
3319
|
+
* The RadioGroupLabel component is used to label a group of radio buttons.
|
|
3320
|
+
*/
|
|
3321
|
+
declare function RadioGroupLabel(props: RadioGroupLabelProps): JSX_2.Element;
|
|
3322
|
+
export { RadioGroupLabel }
|
|
3323
|
+
export { RadioGroupLabel as RadioGroupLabel_alias_1 }
|
|
3324
|
+
export { RadioGroupLabel as RadioGroupLabel_alias_2 }
|
|
3228
3325
|
|
|
3229
|
-
|
|
3326
|
+
/**
|
|
3327
|
+
* This module contains the Radio primitives
|
|
3328
|
+
* @module 'react/radio'
|
|
3329
|
+
*/
|
|
3330
|
+
/**
|
|
3331
|
+
* The RadioGroupRoot component is used to group radio buttons together.
|
|
3332
|
+
*/
|
|
3333
|
+
declare function RadioGroupRoot(props: RadioGroupRootProps & RadioGroupVariantProps): JSX_2.Element;
|
|
3334
|
+
export { RadioGroupRoot }
|
|
3335
|
+
export { RadioGroupRoot as RadioGroupRoot_alias_1 }
|
|
3336
|
+
export { RadioGroupRoot as RadioGroupRoot_alias_2 }
|
|
3337
|
+
|
|
3338
|
+
/**
|
|
3339
|
+
* An Object containing the parts of the Radio component. For users that
|
|
3340
|
+
* prefer Object component syntax.
|
|
3341
|
+
*
|
|
3342
|
+
* @remarks
|
|
3343
|
+
*
|
|
3344
|
+
* When using object component syntax, you import the RadioParts object and
|
|
3345
|
+
* the entire family of components vs. only what you use.
|
|
3346
|
+
*/
|
|
3347
|
+
declare const RadioParts: RadioPartsValue;
|
|
3348
|
+
export { RadioParts }
|
|
3349
|
+
export { RadioParts as RadioParts_alias_1 }
|
|
3350
|
+
export { RadioParts as RadioParts_alias_2 }
|
|
3351
|
+
|
|
3352
|
+
/**
|
|
3353
|
+
* This module contains the parts of the Radio parts.
|
|
3354
|
+
* @module 'radio/parts'
|
|
3355
|
+
*/
|
|
3356
|
+
declare interface RadioPartsValue {
|
|
3230
3357
|
/**
|
|
3231
|
-
*
|
|
3358
|
+
* The container of the field.
|
|
3232
3359
|
*/
|
|
3233
|
-
|
|
3360
|
+
Root: ElementType;
|
|
3361
|
+
/**
|
|
3362
|
+
* The label of the field.
|
|
3363
|
+
*/
|
|
3364
|
+
Label: ElementType;
|
|
3365
|
+
/**
|
|
3366
|
+
* The indicator that appears when a radio is checked.
|
|
3367
|
+
*/
|
|
3368
|
+
Indicator: ElementType;
|
|
3369
|
+
/**
|
|
3370
|
+
* An individual radio item of the field.
|
|
3371
|
+
*/
|
|
3372
|
+
Item: ElementType;
|
|
3373
|
+
/**
|
|
3374
|
+
* The text that labels a single radio of the field.
|
|
3375
|
+
*/
|
|
3376
|
+
ItemText: ElementType;
|
|
3377
|
+
/**
|
|
3378
|
+
* The visual radio control of the field.
|
|
3379
|
+
*/
|
|
3380
|
+
ItemControl: ElementType;
|
|
3381
|
+
/**
|
|
3382
|
+
* The native input for a radio item in the field.
|
|
3383
|
+
*/
|
|
3384
|
+
ItemHiddenInput: ElementType;
|
|
3234
3385
|
}
|
|
3235
|
-
export { RadioBaseProps }
|
|
3236
|
-
export { RadioBaseProps as RadioBaseProps_alias_1 }
|
|
3237
|
-
|
|
3238
|
-
declare type RadioProps = RadioBaseProps & RadioRecipe;
|
|
3239
|
-
export { RadioProps }
|
|
3240
|
-
export { RadioProps as RadioProps_alias_1 }
|
|
3241
3386
|
|
|
3242
3387
|
/**
|
|
3243
3388
|
* This module contains the Radio component.
|
|
3244
3389
|
* @module
|
|
3245
3390
|
*/
|
|
3246
|
-
declare type
|
|
3247
|
-
export {
|
|
3248
|
-
export {
|
|
3391
|
+
declare type RadioProps = RadioGroupVariantProps & RadioGroupItemProps_2;
|
|
3392
|
+
export { RadioProps }
|
|
3393
|
+
export { RadioProps as RadioProps_alias_1 }
|
|
3394
|
+
export { RadioProps as RadioProps_alias_2 }
|
|
3249
3395
|
|
|
3250
3396
|
/**
|
|
3251
3397
|
* The input component for the DatePicker that uses ranges.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// src/components/radio/primitives.tsx
|
|
2
|
+
import {
|
|
3
|
+
RadioGroup as ArkRadioGroup
|
|
4
|
+
} from "@ark-ui/react/radio-group";
|
|
5
|
+
import { cx } from "@cerberus/styled-system/css";
|
|
6
|
+
import {
|
|
7
|
+
radioGroup
|
|
8
|
+
} from "@cerberus/styled-system/recipes";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
function RadioGroupRoot(props) {
|
|
11
|
+
const { size, orientation, ...rootProps } = props;
|
|
12
|
+
const styles = radioGroup({ size, orientation });
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
ArkRadioGroup.Root,
|
|
15
|
+
{
|
|
16
|
+
...rootProps,
|
|
17
|
+
className: cx(styles.root, rootProps.className)
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function RadioGroupLabel(props) {
|
|
22
|
+
const styles = radioGroup();
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
ArkRadioGroup.Label,
|
|
25
|
+
{
|
|
26
|
+
...props,
|
|
27
|
+
className: cx(styles.label, props.className)
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function RadioGroupIndicator(props) {
|
|
32
|
+
const styles = radioGroup();
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
ArkRadioGroup.Indicator,
|
|
35
|
+
{
|
|
36
|
+
...props,
|
|
37
|
+
className: cx(styles.indicator, props.className)
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function RadioGroupItem(props) {
|
|
42
|
+
const styles = radioGroup();
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
ArkRadioGroup.Item,
|
|
45
|
+
{
|
|
46
|
+
...props,
|
|
47
|
+
className: cx(styles.item, props.className)
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
function RadioGroupItemText(props) {
|
|
52
|
+
const { size, orientation, ...itemTextProps } = props;
|
|
53
|
+
const styles = radioGroup({ size, orientation });
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
ArkRadioGroup.ItemText,
|
|
56
|
+
{
|
|
57
|
+
...itemTextProps,
|
|
58
|
+
className: cx(styles.itemText, itemTextProps.className)
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function RadioGroupItemControl(props) {
|
|
63
|
+
const { size, orientation, ...itemControlProps } = props;
|
|
64
|
+
const styles = radioGroup({ size, orientation });
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
|
+
ArkRadioGroup.ItemControl,
|
|
67
|
+
{
|
|
68
|
+
...itemControlProps,
|
|
69
|
+
className: cx(styles.itemControl, itemControlProps.className)
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function RadioGroupItemHiddenInput(props) {
|
|
74
|
+
return /* @__PURE__ */ jsx(ArkRadioGroup.ItemHiddenInput, { ...props });
|
|
75
|
+
}
|
|
76
|
+
var RadioGroup = RadioGroupRoot;
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
RadioGroupRoot,
|
|
80
|
+
RadioGroupLabel,
|
|
81
|
+
RadioGroupIndicator,
|
|
82
|
+
RadioGroupItem,
|
|
83
|
+
RadioGroupItemText,
|
|
84
|
+
RadioGroupItemControl,
|
|
85
|
+
RadioGroupItemHiddenInput,
|
|
86
|
+
RadioGroup
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=chunk-5RTNSVYU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/radio/primitives.tsx"],"sourcesContent":["import {\n RadioGroup as ArkRadioGroup,\n type RadioGroupIndicatorProps,\n type RadioGroupItemControlProps,\n type RadioGroupItemHiddenInputProps,\n type RadioGroupItemProps,\n type RadioGroupItemTextProps,\n type RadioGroupLabelProps,\n type RadioGroupRootProps,\n} from '@ark-ui/react/radio-group'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n radioGroup,\n type RadioGroupVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Radio primitives\n * @module 'react/radio'\n */\n\n/**\n * The RadioGroupRoot component is used to group radio buttons together.\n */\nexport function RadioGroupRoot(\n props: RadioGroupRootProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...rootProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupLabel component is used to label a group of radio buttons.\n */\nexport function RadioGroupLabel(props: RadioGroupLabelProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Label\n {...props}\n className={cx(styles.label, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupIndicator component is used to indicate the selected radio\n * button in a group.\n */\nexport function RadioGroupIndicator(props: RadioGroupIndicatorProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItem component is used to render a single radio button in a\n * group.\n */\nexport function RadioGroupItem(props: RadioGroupItemProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Item\n {...props}\n className={cx(styles.item, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemText component is used to render the text label for a\n * single radio button in a group.\n */\nexport function RadioGroupItemText(\n props: RadioGroupItemTextProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemTextProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemText\n {...itemTextProps}\n className={cx(styles.itemText, itemTextProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemControl component is used to render the control for a\n * single radio button in a group.\n */\nexport function RadioGroupItemControl(\n props: RadioGroupItemControlProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemControlProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemControl\n {...itemControlProps}\n className={cx(styles.itemControl, itemControlProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemHiddenInput component is used to render the hidden input\n * for a single radio button in a group.\n */\nexport function RadioGroupItemHiddenInput(\n props: RadioGroupItemHiddenInputProps,\n) {\n return <ArkRadioGroup.ItemHiddenInput {...props} />\n}\n\nexport const RadioGroup = RadioGroupRoot\n"],"mappings":";AAAA;AAAA,EACE,cAAc;AAAA,OAQT;AACP,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,OAEK;AAgBH;AANG,SAAS,eACd,OACA;AACA,QAAM,EAAE,MAAM,aAAa,GAAG,UAAU,IAAI;AAC5C,QAAM,SAAS,WAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,gBAAgB,OAA6B;AAC3D,QAAM,SAAS,WAAW;AAC1B,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,OAAO,MAAM,SAAS;AAAA;AAAA,EAC7C;AAEJ;AAMO,SAAS,oBAAoB,OAAiC;AACnE,QAAM,SAAS,WAAW;AAC1B,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,WAAW,MAAM,SAAS;AAAA;AAAA,EACjD;AAEJ;AAMO,SAAS,eAAe,OAA4B;AACzD,QAAM,SAAS,WAAW;AAC1B,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,MAAM,SAAS;AAAA;AAAA,EAC5C;AAEJ;AAMO,SAAS,mBACd,OACA;AACA,QAAM,EAAE,MAAM,aAAa,GAAG,cAAc,IAAI;AAChD,QAAM,SAAS,WAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,UAAU,cAAc,SAAS;AAAA;AAAA,EACxD;AAEJ;AAMO,SAAS,sBACd,OACA;AACA,QAAM,EAAE,MAAM,aAAa,GAAG,iBAAiB,IAAI;AACnD,QAAM,SAAS,WAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,aAAa,iBAAiB,SAAS;AAAA;AAAA,EAC9D;AAEJ;AAMO,SAAS,0BACd,OACA;AACA,SAAO,oBAAC,cAAc,iBAAd,EAA+B,GAAG,OAAO;AACnD;AAEO,IAAM,aAAa;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FieldsetErrorText,
|
|
3
|
+
FieldsetHelperText,
|
|
4
|
+
FieldsetLegend,
|
|
5
|
+
FieldsetRoot
|
|
6
|
+
} from "./chunk-Z3FDG263.js";
|
|
7
|
+
|
|
8
|
+
// src/components/fieldset/parts.ts
|
|
9
|
+
var FieldsetParts = {
|
|
10
|
+
Root: FieldsetRoot,
|
|
11
|
+
Legend: FieldsetLegend,
|
|
12
|
+
HelperText: FieldsetHelperText,
|
|
13
|
+
ErrorText: FieldsetErrorText
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
FieldsetParts
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=chunk-7TQRTBUP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/fieldset/parts.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n FieldsetErrorText,\n FieldsetHelperText,\n FieldsetLegend,\n FieldsetRoot,\n} from './primitives'\n\n/**\n * This module contains the parts of the Field component.\n * @module 'field/parts'\n */\n\ninterface FieldsetPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Legend: ElementType\n /**\n * The text that displays when the field is valid.\n */\n HelperText: ElementType\n /**\n * The text that displays when the field is invalid.\n */\n ErrorText: ElementType\n}\n\n/**\n * An Object containing the parts of the Field component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the FieldParts object and\n * the entire family of components vs. only what you use.\n */\nexport const FieldsetParts: FieldsetPartsValue = {\n Root: FieldsetRoot,\n Legend: FieldsetLegend,\n HelperText: FieldsetHelperText,\n ErrorText: FieldsetErrorText,\n}\n"],"mappings":";;;;;;;;AAyCO,IAAM,gBAAoC;AAAA,EAC/C,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,WAAW;AACb;","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FieldsetParts
|
|
3
|
+
} from "./chunk-7TQRTBUP.js";
|
|
4
|
+
import {
|
|
5
|
+
splitProps
|
|
6
|
+
} from "./chunk-BL7G3577.js";
|
|
7
|
+
|
|
8
|
+
// src/components/fieldset/fieldset.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Fieldset(props) {
|
|
11
|
+
const [fieldsetProps, { usage }, rootProps] = splitProps(
|
|
12
|
+
props,
|
|
13
|
+
["legend", "helperText", "errorText", "children"],
|
|
14
|
+
["usage"]
|
|
15
|
+
);
|
|
16
|
+
return /* @__PURE__ */ jsxs(FieldsetParts.Root, { ...rootProps, children: [
|
|
17
|
+
/* @__PURE__ */ jsx(FieldsetParts.Legend, { usage, children: fieldsetProps.legend }),
|
|
18
|
+
/* @__PURE__ */ jsx(FieldsetParts.HelperText, { usage, children: fieldsetProps.helperText }),
|
|
19
|
+
fieldsetProps.children,
|
|
20
|
+
/* @__PURE__ */ jsx(FieldsetParts.ErrorText, { children: fieldsetProps.errorText })
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
Fieldset
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=chunk-AO3GB72J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/fieldset/fieldset.tsx"],"sourcesContent":["import type { FieldsetRootProps } from '@ark-ui/react'\nimport { splitProps } from '../../utils'\nimport { FieldsetParts } from './parts'\nimport type { FieldsetVariantProps } from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Fieldset component.\n * @module Fieldset\n */\n\nexport interface FieldsetProps extends FieldsetRootProps, FieldsetVariantProps {\n /**\n * The legend/title/label of the fieldset group.\n */\n legend?: string\n /**\n * The description text for the fieldset group.\n */\n helperText?: string\n /**\n * The error text for the fieldset group shown when the field is invalid.\n */\n errorText?: string\n}\n\n/**\n * A component used for grouping related fields in a form that is an\n * abstraction of the Fieldset primitives.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function Fieldset(props: FieldsetProps) {\n const [fieldsetProps, { usage }, rootProps] = splitProps(\n props,\n ['legend', 'helperText', 'errorText', 'children'],\n ['usage'],\n )\n\n return (\n <FieldsetParts.Root {...rootProps}>\n <FieldsetParts.Legend usage={usage}>\n {fieldsetProps.legend}\n </FieldsetParts.Legend>\n <FieldsetParts.HelperText usage={usage}>\n {fieldsetProps.helperText}\n </FieldsetParts.HelperText>\n\n {fieldsetProps.children}\n\n <FieldsetParts.ErrorText>\n {fieldsetProps.errorText}\n </FieldsetParts.ErrorText>\n </FieldsetParts.Root>\n )\n}\n"],"mappings":";;;;;;;;AAuCI,SACE,KADF;AARG,SAAS,SAAS,OAAsB;AAC7C,QAAM,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,IAAI;AAAA,IAC5C;AAAA,IACA,CAAC,UAAU,cAAc,aAAa,UAAU;AAAA,IAChD,CAAC,OAAO;AAAA,EACV;AAEA,SACE,qBAAC,cAAc,MAAd,EAAoB,GAAG,WACtB;AAAA,wBAAC,cAAc,QAAd,EAAqB,OACnB,wBAAc,QACjB;AAAA,IACA,oBAAC,cAAc,YAAd,EAAyB,OACvB,wBAAc,YACjB;AAAA,IAEC,cAAc;AAAA,IAEf,oBAAC,cAAc,WAAd,EACE,wBAAc,WACjB;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/components/FieldsetLabel.tsx
|
|
1
|
+
// src/components/deprecated/FieldsetLabel.tsx
|
|
2
2
|
import { cx } from "@cerberus/styled-system/css";
|
|
3
3
|
import { label } from "@cerberus/styled-system/recipes";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -22,4 +22,4 @@ function FieldsetLabel(props) {
|
|
|
22
22
|
export {
|
|
23
23
|
FieldsetLabel
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-DRDNNRU3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/deprecated/FieldsetLabel.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { label, type LabelVariantProps } from '@cerberus/styled-system/recipes'\nimport type { LabelProps } from './Label'\n\n/**\n * This module contains the FieldsetLabel component.\n * @module FieldsetLabel\n */\n\nexport type FieldsetLabelProps = LabelProps &\n LabelVariantProps & {\n htmlFor?: string\n }\n\n/**\n * @deprecated\n */\nexport function FieldsetLabel(props: FieldsetLabelProps) {\n const { size, usage, ...nativeProps } = props\n return (\n <label\n {...nativeProps}\n className={cx(\n nativeProps.className,\n label({\n size,\n usage,\n }),\n )}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,aAAqC;AAmB1C;AAHG,SAAS,cAAc,OAA2B;AACvD,QAAM,EAAE,MAAM,OAAO,GAAG,YAAY,IAAI;AACxC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,MAAM;AAAA,UACJ;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RadioGroupIndicator,
|
|
3
|
+
RadioGroupItem,
|
|
4
|
+
RadioGroupItemControl,
|
|
5
|
+
RadioGroupItemHiddenInput,
|
|
6
|
+
RadioGroupItemText,
|
|
7
|
+
RadioGroupLabel,
|
|
8
|
+
RadioGroupRoot
|
|
9
|
+
} from "./chunk-5RTNSVYU.js";
|
|
10
|
+
|
|
11
|
+
// src/components/radio/parts.ts
|
|
12
|
+
var RadioParts = {
|
|
13
|
+
Root: RadioGroupRoot,
|
|
14
|
+
Label: RadioGroupLabel,
|
|
15
|
+
Indicator: RadioGroupIndicator,
|
|
16
|
+
Item: RadioGroupItem,
|
|
17
|
+
ItemText: RadioGroupItemText,
|
|
18
|
+
ItemControl: RadioGroupItemControl,
|
|
19
|
+
ItemHiddenInput: RadioGroupItemHiddenInput
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
RadioParts
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-FUL2VRDU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/radio/parts.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n RadioGroupRoot,\n RadioGroupLabel,\n RadioGroupIndicator,\n RadioGroupItem,\n RadioGroupItemText,\n RadioGroupItemControl,\n RadioGroupItemHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Radio parts.\n * @module 'radio/parts'\n */\n\ninterface RadioPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The indicator that appears when a radio is checked.\n */\n Indicator: ElementType\n /**\n * An individual radio item of the field.\n */\n Item: ElementType\n /**\n * The text that labels a single radio of the field.\n */\n ItemText: ElementType\n /**\n * The visual radio control of the field.\n */\n ItemControl: ElementType\n /**\n * The native input for a radio item in the field.\n */\n ItemHiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the RadioParts object and\n * the entire family of components vs. only what you use.\n */\nexport const RadioParts: RadioPartsValue = {\n Root: RadioGroupRoot,\n Label: RadioGroupLabel,\n Indicator: RadioGroupIndicator,\n Item: RadioGroupItem,\n ItemText: RadioGroupItemText,\n ItemControl: RadioGroupItemControl,\n ItemHiddenInput: RadioGroupItemHiddenInput,\n}\n"],"mappings":";;;;;;;;;;;AAwDO,IAAM,aAA8B;AAAA,EACzC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iBAAiB;AACnB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-IDTAB2UJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-OGYMMATX.js.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Portal
|
|
3
|
-
} from "./chunk-IQJDVFPP.js";
|
|
4
|
-
import {
|
|
5
|
-
IconButton
|
|
6
|
-
} from "./chunk-APD6IX5R.js";
|
|
7
1
|
import {
|
|
8
2
|
DatePickerContext,
|
|
9
3
|
DatePickerTable,
|
|
@@ -13,6 +7,12 @@ import {
|
|
|
13
7
|
DatePickerView,
|
|
14
8
|
DatePickerViewControl
|
|
15
9
|
} from "./chunk-5EWCH7AI.js";
|
|
10
|
+
import {
|
|
11
|
+
IconButton
|
|
12
|
+
} from "./chunk-APD6IX5R.js";
|
|
13
|
+
import {
|
|
14
|
+
Portal
|
|
15
|
+
} from "./chunk-IQJDVFPP.js";
|
|
16
16
|
import {
|
|
17
17
|
useCerberusContext
|
|
18
18
|
} from "./chunk-GITT5645.js";
|
|
@@ -201,4 +201,4 @@ export {
|
|
|
201
201
|
DatePickerYearView,
|
|
202
202
|
DatePickerCalendar
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=chunk-
|
|
204
|
+
//# sourceMappingURL=chunk-RHCTPSKT.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RadioGroupItem,
|
|
3
|
+
RadioGroupItemControl,
|
|
4
|
+
RadioGroupItemHiddenInput,
|
|
5
|
+
RadioGroupItemText
|
|
6
|
+
} from "./chunk-5RTNSVYU.js";
|
|
7
|
+
|
|
8
|
+
// src/components/radio/radio.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Radio(props) {
|
|
11
|
+
const { size, children, ...groupProps } = props;
|
|
12
|
+
return /* @__PURE__ */ jsxs(RadioGroupItem, { ...groupProps, children: [
|
|
13
|
+
/* @__PURE__ */ jsx(RadioGroupItemControl, { size }),
|
|
14
|
+
/* @__PURE__ */ jsx(RadioGroupItemText, { size, children }),
|
|
15
|
+
/* @__PURE__ */ jsx(RadioGroupItemHiddenInput, {})
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
Radio
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=chunk-STLN7BMJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/radio/radio.tsx"],"sourcesContent":["import type { RadioGroupItemProps } from '@ark-ui/react'\nimport { type RadioGroupVariantProps } from '@cerberus/styled-system/recipes'\nimport {\n RadioGroupItem,\n RadioGroupItemControl,\n RadioGroupItemHiddenInput,\n RadioGroupItemText,\n} from './primitives'\n\n/**\n * This module contains the Radio component.\n * @module\n */\n\nexport type RadioProps = RadioGroupVariantProps & RadioGroupItemProps\n\n/**\n * The Radio component is used to allow users to select a single option from a list of options.\n * @see https://cerberus.digitalu.design/react/radio\n * @memberof module:Field\n * @example\n * ```tsx\n * <Radio value=\"option1\">Option 1</Radio>\n * ```\n */\nexport function Radio(props: RadioProps) {\n const { size, children, ...groupProps } = props\n return (\n <RadioGroupItem {...groupProps}>\n <RadioGroupItemControl size={size} />\n <RadioGroupItemText size={size}>{children}</RadioGroupItemText>\n <RadioGroupItemHiddenInput />\n </RadioGroupItem>\n )\n}\n"],"mappings":";;;;;;;;AA4BI,SACE,KADF;AAHG,SAAS,MAAM,OAAmB;AACvC,QAAM,EAAE,MAAM,UAAU,GAAG,WAAW,IAAI;AAC1C,SACE,qBAAC,kBAAgB,GAAG,YAClB;AAAA,wBAAC,yBAAsB,MAAY;AAAA,IACnC,oBAAC,sBAAmB,MAAa,UAAS;AAAA,IAC1C,oBAAC,6BAA0B;AAAA,KAC7B;AAEJ;","names":[]}
|