@dinofront/design_system 1.2.0 → 1.2.2
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/components/Accordion/Accordion.types.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.types.d.ts +12 -0
- package/dist/components/FormField/FormField.types.d.ts +8 -1
- package/dist/components/MultiSelect/MultiSelect.types.d.ts +8 -6
- package/dist/components/Radio/Radio.types.d.ts +14 -6
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Select/Select.types.d.ts +22 -5
- package/dist/components/Tabs/Tabs.types.d.ts +7 -7
- package/dist/components/Upload/Upload.types.d.ts +5 -1
- package/dist/hooks/useOnOutsideClick.d.ts +1 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1204 -1070
- package/dist/index.js.map +1 -1
- package/dist/lib/optionValue.d.ts +10 -0
- package/dist/styles.css +20 -0
- package/dist/types/base.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OptionValue } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Compares two option/radio values for equality the same way every
|
|
4
|
+
* component in this library does: coerced to `String(...)` first, since
|
|
5
|
+
* `OptionValue` (and `RadioValue`, which adds `boolean`) may mix strings and
|
|
6
|
+
* numbers. `undefined` never equals anything, including another `undefined`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const isSameOptionValue: (a: OptionValue | boolean | undefined, b: OptionValue | boolean | undefined) => boolean;
|
|
9
|
+
/** Whether `v` is present in `list`, compared via `isSameOptionValue`. */
|
|
10
|
+
export declare const includesOptionValue: (list: readonly (OptionValue | boolean)[], v: OptionValue | boolean) => boolean;
|
package/dist/styles.css
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
--font-weight-medium: 500;
|
|
84
84
|
--font-weight-semibold: 600;
|
|
85
85
|
--font-weight-bold: 700;
|
|
86
|
+
--tracking-wide: 0.025em;
|
|
86
87
|
--tracking-wider: 0.05em;
|
|
87
88
|
--tracking-widest: 0.1em;
|
|
88
89
|
--leading-tight: 1.25;
|
|
@@ -443,6 +444,9 @@
|
|
|
443
444
|
.isolate {
|
|
444
445
|
isolation: isolate;
|
|
445
446
|
}
|
|
447
|
+
.z-1 {
|
|
448
|
+
z-index: 1;
|
|
449
|
+
}
|
|
446
450
|
.z-10 {
|
|
447
451
|
z-index: 10;
|
|
448
452
|
}
|
|
@@ -1061,6 +1065,9 @@
|
|
|
1061
1065
|
.cursor-text {
|
|
1062
1066
|
cursor: text;
|
|
1063
1067
|
}
|
|
1068
|
+
.cursor-wait {
|
|
1069
|
+
cursor: wait;
|
|
1070
|
+
}
|
|
1064
1071
|
.resize {
|
|
1065
1072
|
resize: both;
|
|
1066
1073
|
}
|
|
@@ -1675,6 +1682,9 @@
|
|
|
1675
1682
|
.py-20 {
|
|
1676
1683
|
padding-block: calc(var(--spacing) * 20);
|
|
1677
1684
|
}
|
|
1685
|
+
.pt-2 {
|
|
1686
|
+
padding-top: calc(var(--spacing) * 2);
|
|
1687
|
+
}
|
|
1678
1688
|
.pt-6 {
|
|
1679
1689
|
padding-top: calc(var(--spacing) * 6);
|
|
1680
1690
|
}
|
|
@@ -1699,6 +1709,9 @@
|
|
|
1699
1709
|
.pr-10 {
|
|
1700
1710
|
padding-right: calc(var(--spacing) * 10);
|
|
1701
1711
|
}
|
|
1712
|
+
.pb-1 {
|
|
1713
|
+
padding-bottom: var(--spacing);
|
|
1714
|
+
}
|
|
1702
1715
|
.pb-4 {
|
|
1703
1716
|
padding-bottom: calc(var(--spacing) * 4);
|
|
1704
1717
|
}
|
|
@@ -1847,6 +1860,10 @@
|
|
|
1847
1860
|
--tw-font-weight: var(--font-weight-semibold);
|
|
1848
1861
|
font-weight: var(--font-weight-semibold);
|
|
1849
1862
|
}
|
|
1863
|
+
.tracking-wide {
|
|
1864
|
+
--tw-tracking: var(--tracking-wide);
|
|
1865
|
+
letter-spacing: var(--tracking-wide);
|
|
1866
|
+
}
|
|
1850
1867
|
.tracking-wider {
|
|
1851
1868
|
--tw-tracking: var(--tracking-wider);
|
|
1852
1869
|
letter-spacing: var(--tracking-wider);
|
|
@@ -2222,6 +2239,9 @@
|
|
|
2222
2239
|
.peer-checked\:bg-brand-500:is(:where(.peer):checked ~ *) {
|
|
2223
2240
|
background-color: var(--color-brand-500);
|
|
2224
2241
|
}
|
|
2242
|
+
.peer-checked\:bg-gray-600:is(:where(.peer):checked ~ *) {
|
|
2243
|
+
background-color: var(--color-gray-600);
|
|
2244
|
+
}
|
|
2225
2245
|
.peer-checked\:bg-gray-700:is(:where(.peer):checked ~ *) {
|
|
2226
2246
|
background-color: var(--color-gray-700);
|
|
2227
2247
|
}
|
package/dist/types/base.d.ts
CHANGED
|
@@ -3,3 +3,11 @@ export interface BaseProps {
|
|
|
3
3
|
/** Rendered as `data-test-id` for test selectors. */
|
|
4
4
|
dataTestId?: string;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* An option/item identity that can be a string or a number — compared
|
|
8
|
+
* internally via `String(...)`. Note: values are compared via `String(...)`,
|
|
9
|
+
* so within one options array a numeric `1` and a string `'1'` are treated
|
|
10
|
+
* as the same option — don't mix the two representations for what should be
|
|
11
|
+
* distinct options.
|
|
12
|
+
*/
|
|
13
|
+
export type OptionValue = string | number;
|