@cmgfi/clear-ds 1.1.1 → 1.1.3
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +54 -5
- package/dist/index.mjs +3674 -3585
- package/dist/index.mjs.map +1 -1
- package/dist/llms.txt +3 -3
- package/dist/styles.d.ts +1 -0
- package/dist/tokens/tokens.css +3 -3
- package/dist/tokens/tokens.d.ts +1 -0
- package/package.json +10 -4
package/dist/index.d.ts
CHANGED
|
@@ -203,7 +203,7 @@ export declare interface BannerTabStatus {
|
|
|
203
203
|
/**
|
|
204
204
|
* Button — Clear Design System
|
|
205
205
|
*
|
|
206
|
-
* A versatile action button with five visual variants,
|
|
206
|
+
* A versatile action button with five visual variants, three sizes, optional
|
|
207
207
|
* leading/trailing icons, and an optional notification badge.
|
|
208
208
|
*
|
|
209
209
|
* @example
|
|
@@ -223,7 +223,12 @@ export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttribut
|
|
|
223
223
|
export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
224
224
|
/** Visual style. Defaults to `'primary'`. */
|
|
225
225
|
variant?: ButtonVariant;
|
|
226
|
-
/**
|
|
226
|
+
/**
|
|
227
|
+
* Size variant. Sizes match the Figma spec:
|
|
228
|
+
* - `sm` = 24px height / 10px font
|
|
229
|
+
* - `md` = 36px height / 13px font (default)
|
|
230
|
+
* - `lg` = 40px height / 15px font
|
|
231
|
+
*/
|
|
227
232
|
size?: ButtonSize;
|
|
228
233
|
/** Icon rendered before the label. Pass any React node (e.g. a PrimeIcon). */
|
|
229
234
|
leadingIcon?: React.ReactNode;
|
|
@@ -236,7 +241,7 @@ export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButt
|
|
|
236
241
|
badge?: string | number;
|
|
237
242
|
}
|
|
238
243
|
|
|
239
|
-
export declare type ButtonSize = 'md' | '
|
|
244
|
+
export declare type ButtonSize = 'sm' | 'md' | 'lg';
|
|
240
245
|
|
|
241
246
|
export declare type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger' | 'link';
|
|
242
247
|
|
|
@@ -350,6 +355,11 @@ export declare interface CloseButtonProps extends React.ButtonHTMLAttributes<HTM
|
|
|
350
355
|
export declare interface ColumnFilter {
|
|
351
356
|
/** Determines which filter UI to render. */
|
|
352
357
|
type: FilterType;
|
|
358
|
+
/**
|
|
359
|
+
* For `'rule'` type — selects the operator set and value editor.
|
|
360
|
+
* @default 'text'
|
|
361
|
+
*/
|
|
362
|
+
dataType?: FilterDataType;
|
|
353
363
|
/** Options for `'checklist'` type. */
|
|
354
364
|
options?: FilterOption[];
|
|
355
365
|
/** Grouped options for `'grouped-checklist'` type. */
|
|
@@ -703,6 +713,13 @@ export declare interface FileUploadResult {
|
|
|
703
713
|
docType: string;
|
|
704
714
|
}
|
|
705
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Drives which operator set the rule filter shows and which value editor it
|
|
718
|
+
* renders. `'text'` (default) uses text operators with a text input. `'date'`
|
|
719
|
+
* uses date operators with a native date picker.
|
|
720
|
+
*/
|
|
721
|
+
export declare type FilterDataType = 'text' | 'date';
|
|
722
|
+
|
|
706
723
|
export declare interface FilterGroup {
|
|
707
724
|
label: string;
|
|
708
725
|
options: FilterOption[];
|
|
@@ -764,7 +781,12 @@ export declare interface IconButtonProps extends React.ButtonHTMLAttributes<HTML
|
|
|
764
781
|
icon: React.ReactNode;
|
|
765
782
|
/** Visual style. Defaults to `'primary'`. */
|
|
766
783
|
variant?: ButtonVariant;
|
|
767
|
-
/**
|
|
784
|
+
/**
|
|
785
|
+
* Size variant. Sizes match the Figma spec and share Button's sizing ramp:
|
|
786
|
+
* - `sm` = 24×24px
|
|
787
|
+
* - `md` = 36×36px (default)
|
|
788
|
+
* - `lg` = 40×40px
|
|
789
|
+
*/
|
|
768
790
|
size?: ButtonSize;
|
|
769
791
|
/**
|
|
770
792
|
* Accessible label describing the button's action. Required for screen-reader support
|
|
@@ -1917,9 +1939,15 @@ export declare interface TabItem {
|
|
|
1917
1939
|
* Tabs — Clear Design System
|
|
1918
1940
|
*
|
|
1919
1941
|
* Standard underline-style tab strip. Fully controlled — the parent owns
|
|
1920
|
-
* which tab is active.
|
|
1942
|
+
* which tab is active. Two variants:
|
|
1943
|
+
* - `'panel'` (default): renders the active tab's `content` below the strip.
|
|
1944
|
+
* Use for sub-section switching inside a page.
|
|
1945
|
+
* - `'nav'`: page-level navigation with larger padding/font; the active
|
|
1946
|
+
* tab's `content` is not rendered (each tab is a route/page). Renders
|
|
1947
|
+
* as `<nav>` for the right semantics.
|
|
1921
1948
|
*
|
|
1922
1949
|
* @example
|
|
1950
|
+
* // Panel variant (default) — sub-section switcher with content below.
|
|
1923
1951
|
* const [active, setActive] = useState('tab1');
|
|
1924
1952
|
* <Tabs
|
|
1925
1953
|
* tabs={[
|
|
@@ -1929,6 +1957,19 @@ export declare interface TabItem {
|
|
|
1929
1957
|
* activeTab={active}
|
|
1930
1958
|
* onChange={setActive}
|
|
1931
1959
|
* />
|
|
1960
|
+
*
|
|
1961
|
+
* @example
|
|
1962
|
+
* // Nav variant — top-level page navigation, no content panel.
|
|
1963
|
+
* <Tabs
|
|
1964
|
+
* variant="nav"
|
|
1965
|
+
* tabs={[
|
|
1966
|
+
* { id: 'pricing', label: 'Run Pricing' },
|
|
1967
|
+
* { id: 'scenarios', label: 'Lead Scenarios' },
|
|
1968
|
+
* { id: 'templates', label: 'Scenario Templates' },
|
|
1969
|
+
* ]}
|
|
1970
|
+
* activeTab={page}
|
|
1971
|
+
* onChange={setPage}
|
|
1972
|
+
* />
|
|
1932
1973
|
*/
|
|
1933
1974
|
export declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>>;
|
|
1934
1975
|
|
|
@@ -1939,6 +1980,14 @@ export declare interface TabsProps {
|
|
|
1939
1980
|
activeTab: string;
|
|
1940
1981
|
/** Called with the id of the tab the user selected. */
|
|
1941
1982
|
onChange: (id: string) => void;
|
|
1983
|
+
/**
|
|
1984
|
+
* Visual + structural variant.
|
|
1985
|
+
* - `'panel'` (default): tab strip + content panel for the active tab.
|
|
1986
|
+
* - `'nav'`: navigation-only strip with larger padding/font; the active
|
|
1987
|
+
* tab's `content` is **not** rendered (each tab represents a page or
|
|
1988
|
+
* route). Renders as `<nav>` for the right semantics.
|
|
1989
|
+
*/
|
|
1990
|
+
variant?: 'panel' | 'nav';
|
|
1942
1991
|
className?: string;
|
|
1943
1992
|
style?: React.CSSProperties;
|
|
1944
1993
|
}
|