@nxds/claude-design 0.6.0 → 0.8.0
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/README.md +8 -8
- package/coverage.md +5 -5
- package/files.json +10 -10
- package/package.json +1 -1
- package/project/README.md +37 -4
- package/project/components/DatePicker/README.md +16 -16
- package/project/components/FilterBuilder/README.md +1 -0
- package/project/components/ToggleGroup/README.md +1 -1
- package/project/components/bundle.css +463 -903
- package/project/components/bundle.js +26 -26
- package/project/components/index.d.ts +66 -60
- package/project/design-system.json +4 -4
- package/project/tokens.css +341 -672
- package/project/tokens.json +484 -2148
|
@@ -1848,15 +1848,72 @@ export interface ContextMenuTriggerProps {
|
|
|
1848
1848
|
|
|
1849
1849
|
/**
|
|
1850
1850
|
* A calendar grid for picking one date, a range or several dates. Install
|
|
1851
|
-
* `react-day-picker` in your app first.
|
|
1851
|
+
* `react-day-picker` in your app first. Days in `disabled` or
|
|
1852
|
+
* `modifiers.unavailable` can't be picked, and a range can't span them.
|
|
1852
1853
|
*/
|
|
1853
1854
|
export interface DatePickerProps {
|
|
1855
|
+
/** Class name to add to the root element. */
|
|
1856
|
+
className?: string;
|
|
1857
|
+
/** A unique id to add to the root element. */
|
|
1858
|
+
id?: string;
|
|
1859
|
+
/**
|
|
1860
|
+
* Add the language tag to the container element.
|
|
1861
|
+
*
|
|
1862
|
+
* When omitted, DayPicker uses the active locale code (`locale.code`).
|
|
1863
|
+
* Set this prop to override the language tag.
|
|
1864
|
+
*/
|
|
1865
|
+
lang?: string;
|
|
1866
|
+
/**
|
|
1867
|
+
* A cryptographic nonce ("number used once") which can be used by Content
|
|
1868
|
+
* Security Policy for the inline `style` attributes.
|
|
1869
|
+
*/
|
|
1870
|
+
nonce?: string;
|
|
1871
|
+
/** Style to apply to the root element. */
|
|
1872
|
+
style?: React.CSSProperties;
|
|
1873
|
+
/** The role attribute to add to the container element. */
|
|
1874
|
+
role?: "dialog" | "application";
|
|
1854
1875
|
/** Enable the selection of a single day, multiple days, or a range of days. */
|
|
1855
1876
|
mode?: "single" | "multiple" | "range";
|
|
1877
|
+
/** The aria-label attribute to add to the container element. */
|
|
1878
|
+
'aria-label'?: string;
|
|
1879
|
+
/** The aria-labelledby attribute to add to the container element. */
|
|
1880
|
+
'aria-labelledby'?: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* Add a footer to the calendar, acting as a live region.
|
|
1883
|
+
*
|
|
1884
|
+
* Use this prop to communicate the calendar's status to screen readers.
|
|
1885
|
+
* Prefer strings over complex UI elements.
|
|
1886
|
+
*/
|
|
1887
|
+
footer?: React.ReactNode;
|
|
1888
|
+
/** Add a `title` attribute to the container element. */
|
|
1889
|
+
title?: string;
|
|
1890
|
+
/** Animate navigating between months. */
|
|
1891
|
+
animate?: boolean;
|
|
1892
|
+
/**
|
|
1893
|
+
* When a selection mode is set, DayPicker will focus the first selected day
|
|
1894
|
+
* (if set) or today's date (if not disabled).
|
|
1895
|
+
*
|
|
1896
|
+
* Use this prop when you need to focus DayPicker after a user action, for
|
|
1897
|
+
* improved accessibility.
|
|
1898
|
+
*/
|
|
1899
|
+
autoFocus?: boolean;
|
|
1900
|
+
/**
|
|
1901
|
+
* The text direction of the calendar. Use `ltr` for left-to-right (default)
|
|
1902
|
+
* or `rtl` for right-to-left.
|
|
1903
|
+
*/
|
|
1904
|
+
dir?: string;
|
|
1905
|
+
/**
|
|
1906
|
+
* Apply the `hidden` modifier to the matching days. Will hide them from the
|
|
1907
|
+
* calendar.
|
|
1908
|
+
*/
|
|
1909
|
+
hidden?: Matcher | Matcher[];
|
|
1910
|
+
/**
|
|
1911
|
+
* Apply the `disabled` modifier to the matching days. Disabled days cannot be
|
|
1912
|
+
* selected when in a selection mode is set.
|
|
1913
|
+
*/
|
|
1914
|
+
disabled?: Matcher | Matcher[];
|
|
1856
1915
|
/** Whether the selection is required. */
|
|
1857
1916
|
required?: boolean;
|
|
1858
|
-
/** Class name to add to the root element. */
|
|
1859
|
-
className?: string;
|
|
1860
1917
|
/**
|
|
1861
1918
|
* Change the class names used by DayPicker.
|
|
1862
1919
|
*
|
|
@@ -1867,14 +1924,10 @@ export interface DatePickerProps {
|
|
|
1867
1924
|
classNames?: Partial<ClassNames> & Partial<DeprecatedUI<string>>;
|
|
1868
1925
|
/** Change the class name for the day matching the `modifiers`. */
|
|
1869
1926
|
modifiersClassNames?: ModifiersClassNames;
|
|
1870
|
-
/** Style to apply to the root element. */
|
|
1871
|
-
style?: React.CSSProperties;
|
|
1872
1927
|
/** Change the inline styles of the HTML elements. */
|
|
1873
1928
|
styles?: Partial<Styles> & Partial<DeprecatedUI<React.CSSProperties>>;
|
|
1874
1929
|
/** Change the class name for the day matching the {@link modifiers}. */
|
|
1875
1930
|
modifiersStyles?: ModifiersStyles;
|
|
1876
|
-
/** A unique id to add to the root element. */
|
|
1877
|
-
id?: string;
|
|
1878
1931
|
/**
|
|
1879
1932
|
* The initial month to show in the calendar.
|
|
1880
1933
|
*
|
|
@@ -1969,8 +2022,6 @@ export interface DatePickerProps {
|
|
|
1969
2022
|
* week index.
|
|
1970
2023
|
*/
|
|
1971
2024
|
showWeekNumber?: boolean;
|
|
1972
|
-
/** Animate navigating between months. */
|
|
1973
|
-
animate?: boolean;
|
|
1974
2025
|
/**
|
|
1975
2026
|
* Display the weeks in the month following the broadcast calendar. Setting
|
|
1976
2027
|
* this prop will ignore {@link weekStartsOn} (always Monday) and
|
|
@@ -1999,32 +2050,7 @@ export interface DatePickerProps {
|
|
|
1999
2050
|
noonSafe?: boolean;
|
|
2000
2051
|
/** Change the components used for rendering the calendar elements. */
|
|
2001
2052
|
components?: Partial<CustomComponents>;
|
|
2002
|
-
/**
|
|
2003
|
-
* Add a footer to the calendar, acting as a live region.
|
|
2004
|
-
*
|
|
2005
|
-
* Use this prop to communicate the calendar's status to screen readers.
|
|
2006
|
-
* Prefer strings over complex UI elements.
|
|
2007
|
-
*/
|
|
2008
|
-
footer?: React.ReactNode;
|
|
2009
|
-
/**
|
|
2010
|
-
* When a selection mode is set, DayPicker will focus the first selected day
|
|
2011
|
-
* (if set) or today's date (if not disabled).
|
|
2012
|
-
*
|
|
2013
|
-
* Use this prop when you need to focus DayPicker after a user action, for
|
|
2014
|
-
* improved accessibility.
|
|
2015
|
-
*/
|
|
2016
|
-
autoFocus?: boolean;
|
|
2017
2053
|
initialFocus?: boolean;
|
|
2018
|
-
/**
|
|
2019
|
-
* Apply the `disabled` modifier to the matching days. Disabled days cannot be
|
|
2020
|
-
* selected when in a selection mode is set.
|
|
2021
|
-
*/
|
|
2022
|
-
disabled?: Matcher | Matcher[];
|
|
2023
|
-
/**
|
|
2024
|
-
* Apply the `hidden` modifier to the matching days. Will hide them from the
|
|
2025
|
-
* calendar.
|
|
2026
|
-
*/
|
|
2027
|
-
hidden?: Matcher | Matcher[];
|
|
2028
2054
|
/**
|
|
2029
2055
|
* The today’s date. Default is the current date. This date will get the
|
|
2030
2056
|
* `today` modifier to style the day.
|
|
@@ -2042,31 +2068,6 @@ export interface DatePickerProps {
|
|
|
2042
2068
|
* default functions.
|
|
2043
2069
|
*/
|
|
2044
2070
|
formatters?: Partial<Formatters>;
|
|
2045
|
-
/**
|
|
2046
|
-
* The text direction of the calendar. Use `ltr` for left-to-right (default)
|
|
2047
|
-
* or `rtl` for right-to-left.
|
|
2048
|
-
*/
|
|
2049
|
-
dir?: string;
|
|
2050
|
-
/** The aria-label attribute to add to the container element. */
|
|
2051
|
-
'aria-label'?: string;
|
|
2052
|
-
/** The aria-labelledby attribute to add to the container element. */
|
|
2053
|
-
'aria-labelledby'?: string;
|
|
2054
|
-
/** The role attribute to add to the container element. */
|
|
2055
|
-
role?: "dialog" | "application";
|
|
2056
|
-
/**
|
|
2057
|
-
* A cryptographic nonce ("number used once") which can be used by Content
|
|
2058
|
-
* Security Policy for the inline `style` attributes.
|
|
2059
|
-
*/
|
|
2060
|
-
nonce?: string;
|
|
2061
|
-
/** Add a `title` attribute to the container element. */
|
|
2062
|
-
title?: string;
|
|
2063
|
-
/**
|
|
2064
|
-
* Add the language tag to the container element.
|
|
2065
|
-
*
|
|
2066
|
-
* When omitted, DayPicker uses the active locale code (`locale.code`).
|
|
2067
|
-
* Set this prop to override the language tag.
|
|
2068
|
-
*/
|
|
2069
|
-
lang?: string;
|
|
2070
2071
|
/**
|
|
2071
2072
|
* The locale object used to localize dates. Pass a locale from
|
|
2072
2073
|
* `react-day-picker/locale` to localize the calendar.
|
|
@@ -2958,6 +2959,11 @@ export interface FilterBuilderProps {
|
|
|
2958
2959
|
* @default 3
|
|
2959
2960
|
*/
|
|
2960
2961
|
maxDepth?: number;
|
|
2962
|
+
/**
|
|
2963
|
+
* Accessible name for the root group.
|
|
2964
|
+
* @default "Filters"
|
|
2965
|
+
*/
|
|
2966
|
+
'aria-label'?: string;
|
|
2961
2967
|
className?: string;
|
|
2962
2968
|
id?: string;
|
|
2963
2969
|
}
|
|
@@ -5795,7 +5801,7 @@ export interface ToggleGroupProps {
|
|
|
5795
5801
|
* segmented control. A larger value splits them into separate pills.
|
|
5796
5802
|
* @default 0
|
|
5797
5803
|
*/
|
|
5798
|
-
spacing?:
|
|
5804
|
+
spacing?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 0.5 | 1.5 | 2.5 | 3.5 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
|
|
5799
5805
|
}
|
|
5800
5806
|
|
|
5801
5807
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"layout": "files",
|
|
4
4
|
"createdOnFiles": {
|
|
5
5
|
"v": 1,
|
|
6
|
-
"at": "2026-10-
|
|
6
|
+
"at": "2026-10-27T10:05:56Z"
|
|
7
7
|
},
|
|
8
8
|
"title": "nxds",
|
|
9
9
|
"namespace": "Nxds",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"lastChange": {
|
|
29
29
|
"by": "nxds",
|
|
30
|
-
"at": "2026-10-
|
|
31
|
-
"via": "nxds-cli · @nxds/claude-design@0.
|
|
32
|
-
"note": "nxds 0.
|
|
30
|
+
"at": "2026-10-27T10:05:56Z",
|
|
31
|
+
"via": "nxds-cli · @nxds/claude-design@0.8.0",
|
|
32
|
+
"note": "nxds 0.8.0: tokens, components, prop types and previews."
|
|
33
33
|
}
|
|
34
34
|
}
|