@appdirect/design-system 0.0.23 → 0.0.24
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/Combobox/ADMultiselect.js +91 -0
- package/dist/Combobox/ADMultiselect.tsx +237 -0
- package/dist/Combobox/Select.js +13 -19
- package/dist/Combobox/Select.tsx +15 -44
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.ts +2 -2
- package/dist/DESIGN.md +2 -2
- package/dist/DataDisplay/Pill.js +21 -79
- package/dist/DataDisplay/Pill.tsx +34 -116
- package/dist/Inputs/ColorInput.js +12 -18
- package/dist/Inputs/ColorInput.tsx +13 -41
- package/dist/Inputs/NumberInput.js +12 -36
- package/dist/Inputs/NumberInput.tsx +13 -72
- package/dist/Inputs/TextArea.js +12 -18
- package/dist/Inputs/TextArea.tsx +13 -41
- package/dist/Inputs/TextInput.js +12 -18
- package/dist/Inputs/TextInput.tsx +13 -41
- package/dist/Inputs/inputLabel.js +35 -0
- package/dist/Inputs/inputLabel.tsx +83 -0
- package/dist/Overlays/Tooltip.js +2 -2
- package/dist/Overlays/Tooltip.tsx +4 -1
- package/dist/contracts/index.json +1 -1
- package/dist/css/mantine.css +193 -29
- package/dist/css/tokens.css +58 -18
- package/dist/index.js +3 -3
- package/dist/index.ts +4 -4
- package/dist/stories/Combobox/{Multiselect.stories.tsx → ADMultiselect.stories.tsx} +159 -53
- package/dist/stories/Combobox/Select.stories.tsx +1 -1
- package/dist/stories/Inputs/ColorInput.stories.tsx +12 -0
- package/dist/stories/Inputs/NumberInput.stories.tsx +12 -0
- package/dist/stories/Inputs/TextArea.stories.tsx +12 -0
- package/dist/stories/Inputs/TextInput.stories.tsx +12 -0
- package/dist/stories/index.json +40 -32
- package/package.json +2 -2
- package/dist/Combobox/Multiselect.js +0 -31
- package/dist/Combobox/Multiselect.tsx +0 -158
package/dist/css/tokens.css
CHANGED
|
@@ -825,6 +825,16 @@
|
|
|
825
825
|
--ad-input-label-base-font-size: 14px;
|
|
826
826
|
--ad-input-label-base-font-weight: 600;
|
|
827
827
|
--ad-input-label-base-color: #000000;
|
|
828
|
+
--ad-input-label-sizes-xs-font-size: 12px;
|
|
829
|
+
--ad-input-label-sizes-xs-help-icon-size: 14px;
|
|
830
|
+
--ad-input-label-sizes-sm-font-size: 14px;
|
|
831
|
+
--ad-input-label-sizes-sm-help-icon-size: 16px;
|
|
832
|
+
--ad-input-label-sizes-md-font-size: 16px;
|
|
833
|
+
--ad-input-label-sizes-md-help-icon-size: 18px;
|
|
834
|
+
--ad-input-label-sizes-lg-font-size: 18px;
|
|
835
|
+
--ad-input-label-sizes-lg-help-icon-size: 20px;
|
|
836
|
+
--ad-input-label-sizes-xl-font-size: 20px;
|
|
837
|
+
--ad-input-label-sizes-xl-help-icon-size: 22px;
|
|
828
838
|
--ad-input-label-required-gap: 4px;
|
|
829
839
|
--ad-input-label-required-color: #fa5252;
|
|
830
840
|
--ad-input-label-optional-color: #495057;
|
|
@@ -833,6 +843,11 @@
|
|
|
833
843
|
--ad-input-description-color: #495057;
|
|
834
844
|
--ad-input-description-font-size: 12px;
|
|
835
845
|
--ad-input-description-line-height: 1.55;
|
|
846
|
+
--ad-input-description-sizes-xs-font-size: 10px;
|
|
847
|
+
--ad-input-description-sizes-sm-font-size: 12px;
|
|
848
|
+
--ad-input-description-sizes-md-font-size: 14px;
|
|
849
|
+
--ad-input-description-sizes-lg-font-size: 16px;
|
|
850
|
+
--ad-input-description-sizes-xl-font-size: 18px;
|
|
836
851
|
--ad-input-field-base-font-family: Inter;
|
|
837
852
|
--ad-input-field-base-bg: #ffffff;
|
|
838
853
|
--ad-input-field-base-fg: #000000;
|
|
@@ -859,31 +874,36 @@
|
|
|
859
874
|
--ad-input-field-sizes-xs-font-size: 12px;
|
|
860
875
|
--ad-input-field-sizes-sm-height: 36px;
|
|
861
876
|
--ad-input-field-sizes-sm-padding-x: 12px;
|
|
862
|
-
--ad-input-field-sizes-sm-font-size:
|
|
877
|
+
--ad-input-field-sizes-sm-font-size: 14px;
|
|
863
878
|
--ad-input-field-sizes-md-height: 42px;
|
|
864
879
|
--ad-input-field-sizes-md-padding-x: 16px;
|
|
865
|
-
--ad-input-field-sizes-md-font-size:
|
|
880
|
+
--ad-input-field-sizes-md-font-size: 16px;
|
|
866
881
|
--ad-input-field-sizes-lg-height: 50px;
|
|
867
882
|
--ad-input-field-sizes-lg-padding-x: 20px;
|
|
868
|
-
--ad-input-field-sizes-lg-font-size:
|
|
883
|
+
--ad-input-field-sizes-lg-font-size: 18px;
|
|
869
884
|
--ad-input-field-sizes-xl-height: 60px;
|
|
870
885
|
--ad-input-field-sizes-xl-padding-x: 32px;
|
|
871
|
-
--ad-input-field-sizes-xl-font-size:
|
|
886
|
+
--ad-input-field-sizes-xl-font-size: 20px;
|
|
872
887
|
--ad-input-section-color: #495057;
|
|
873
888
|
--ad-input-section-padding-x: 10px;
|
|
874
889
|
--ad-input-section-sizes-xs-font-size: 12px;
|
|
875
|
-
--ad-input-section-sizes-xs-width:
|
|
876
|
-
--ad-input-section-sizes-sm-font-size:
|
|
890
|
+
--ad-input-section-sizes-xs-width: 14px;
|
|
891
|
+
--ad-input-section-sizes-sm-font-size: 14px;
|
|
877
892
|
--ad-input-section-sizes-sm-width: 16px;
|
|
878
|
-
--ad-input-section-sizes-md-font-size:
|
|
893
|
+
--ad-input-section-sizes-md-font-size: 16px;
|
|
879
894
|
--ad-input-section-sizes-md-width: 18px;
|
|
880
|
-
--ad-input-section-sizes-lg-font-size:
|
|
895
|
+
--ad-input-section-sizes-lg-font-size: 18px;
|
|
881
896
|
--ad-input-section-sizes-lg-width: 20px;
|
|
882
|
-
--ad-input-section-sizes-xl-font-size:
|
|
897
|
+
--ad-input-section-sizes-xl-font-size: 20px;
|
|
883
898
|
--ad-input-section-sizes-xl-width: 22px;
|
|
884
899
|
--ad-input-error-color: #fa5252;
|
|
885
900
|
--ad-input-error-font-size: 12px;
|
|
886
901
|
--ad-input-error-line-height: 1.55;
|
|
902
|
+
--ad-input-error-sizes-xs-font-size: 10px;
|
|
903
|
+
--ad-input-error-sizes-sm-font-size: 12px;
|
|
904
|
+
--ad-input-error-sizes-md-font-size: 14px;
|
|
905
|
+
--ad-input-error-sizes-lg-font-size: 16px;
|
|
906
|
+
--ad-input-error-sizes-xl-font-size: 18px;
|
|
887
907
|
--ad-kbd-root-font-family: Roboto Mono;
|
|
888
908
|
--ad-kbd-root-font-weight: 700;
|
|
889
909
|
--ad-kbd-root-border-radius: 4px;
|
|
@@ -2419,6 +2439,16 @@
|
|
|
2419
2439
|
--ad-input-label-base-font-size: 14px;
|
|
2420
2440
|
--ad-input-label-base-font-weight: 600;
|
|
2421
2441
|
--ad-input-label-base-color: #C9C9C9;
|
|
2442
|
+
--ad-input-label-sizes-xs-font-size: 12px;
|
|
2443
|
+
--ad-input-label-sizes-xs-help-icon-size: 14px;
|
|
2444
|
+
--ad-input-label-sizes-sm-font-size: 14px;
|
|
2445
|
+
--ad-input-label-sizes-sm-help-icon-size: 16px;
|
|
2446
|
+
--ad-input-label-sizes-md-font-size: 16px;
|
|
2447
|
+
--ad-input-label-sizes-md-help-icon-size: 18px;
|
|
2448
|
+
--ad-input-label-sizes-lg-font-size: 18px;
|
|
2449
|
+
--ad-input-label-sizes-lg-help-icon-size: 20px;
|
|
2450
|
+
--ad-input-label-sizes-xl-font-size: 20px;
|
|
2451
|
+
--ad-input-label-sizes-xl-help-icon-size: 22px;
|
|
2422
2452
|
--ad-input-label-required-gap: 4px;
|
|
2423
2453
|
--ad-input-label-required-color: #e03131;
|
|
2424
2454
|
--ad-input-label-optional-color: #828282;
|
|
@@ -2427,6 +2457,11 @@
|
|
|
2427
2457
|
--ad-input-description-color: #828282;
|
|
2428
2458
|
--ad-input-description-font-size: 12px;
|
|
2429
2459
|
--ad-input-description-line-height: 1.55;
|
|
2460
|
+
--ad-input-description-sizes-xs-font-size: 10px;
|
|
2461
|
+
--ad-input-description-sizes-sm-font-size: 12px;
|
|
2462
|
+
--ad-input-description-sizes-md-font-size: 14px;
|
|
2463
|
+
--ad-input-description-sizes-lg-font-size: 16px;
|
|
2464
|
+
--ad-input-description-sizes-xl-font-size: 18px;
|
|
2430
2465
|
--ad-input-field-base-font-family: Inter;
|
|
2431
2466
|
--ad-input-field-base-bg: #2e2e2e;
|
|
2432
2467
|
--ad-input-field-base-fg: #C9C9C9;
|
|
@@ -2453,31 +2488,36 @@
|
|
|
2453
2488
|
--ad-input-field-sizes-xs-font-size: 12px;
|
|
2454
2489
|
--ad-input-field-sizes-sm-height: 36px;
|
|
2455
2490
|
--ad-input-field-sizes-sm-padding-x: 12px;
|
|
2456
|
-
--ad-input-field-sizes-sm-font-size:
|
|
2491
|
+
--ad-input-field-sizes-sm-font-size: 14px;
|
|
2457
2492
|
--ad-input-field-sizes-md-height: 42px;
|
|
2458
2493
|
--ad-input-field-sizes-md-padding-x: 16px;
|
|
2459
|
-
--ad-input-field-sizes-md-font-size:
|
|
2494
|
+
--ad-input-field-sizes-md-font-size: 16px;
|
|
2460
2495
|
--ad-input-field-sizes-lg-height: 50px;
|
|
2461
2496
|
--ad-input-field-sizes-lg-padding-x: 20px;
|
|
2462
|
-
--ad-input-field-sizes-lg-font-size:
|
|
2497
|
+
--ad-input-field-sizes-lg-font-size: 18px;
|
|
2463
2498
|
--ad-input-field-sizes-xl-height: 60px;
|
|
2464
2499
|
--ad-input-field-sizes-xl-padding-x: 32px;
|
|
2465
|
-
--ad-input-field-sizes-xl-font-size:
|
|
2500
|
+
--ad-input-field-sizes-xl-font-size: 20px;
|
|
2466
2501
|
--ad-input-section-color: #828282;
|
|
2467
2502
|
--ad-input-section-padding-x: 10px;
|
|
2468
2503
|
--ad-input-section-sizes-xs-font-size: 12px;
|
|
2469
|
-
--ad-input-section-sizes-xs-width:
|
|
2470
|
-
--ad-input-section-sizes-sm-font-size:
|
|
2504
|
+
--ad-input-section-sizes-xs-width: 14px;
|
|
2505
|
+
--ad-input-section-sizes-sm-font-size: 14px;
|
|
2471
2506
|
--ad-input-section-sizes-sm-width: 16px;
|
|
2472
|
-
--ad-input-section-sizes-md-font-size:
|
|
2507
|
+
--ad-input-section-sizes-md-font-size: 16px;
|
|
2473
2508
|
--ad-input-section-sizes-md-width: 18px;
|
|
2474
|
-
--ad-input-section-sizes-lg-font-size:
|
|
2509
|
+
--ad-input-section-sizes-lg-font-size: 18px;
|
|
2475
2510
|
--ad-input-section-sizes-lg-width: 20px;
|
|
2476
|
-
--ad-input-section-sizes-xl-font-size:
|
|
2511
|
+
--ad-input-section-sizes-xl-font-size: 20px;
|
|
2477
2512
|
--ad-input-section-sizes-xl-width: 22px;
|
|
2478
2513
|
--ad-input-error-color: #e03131;
|
|
2479
2514
|
--ad-input-error-font-size: 12px;
|
|
2480
2515
|
--ad-input-error-line-height: 1.55;
|
|
2516
|
+
--ad-input-error-sizes-xs-font-size: 10px;
|
|
2517
|
+
--ad-input-error-sizes-sm-font-size: 12px;
|
|
2518
|
+
--ad-input-error-sizes-md-font-size: 14px;
|
|
2519
|
+
--ad-input-error-sizes-lg-font-size: 16px;
|
|
2520
|
+
--ad-input-error-sizes-xl-font-size: 18px;
|
|
2481
2521
|
--ad-kbd-root-font-family: Roboto Mono;
|
|
2482
2522
|
--ad-kbd-root-font-weight: 700;
|
|
2483
2523
|
--ad-kbd-root-border-radius: 4px;
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { TextInput, TextArea, NumberInput, ColorInput, Slider, SliderWithLabel, Switch, SegmentedControl, Checkbox, Radio, RadioGroup, DropZone, FileInput } from './Inputs/index.js';
|
|
18
18
|
import { Button, ActionIcon, CloseButton } from './Buttons/index.js';
|
|
19
19
|
import { Alert, Avatar, Badge, Card, CardSection, Chip, Pill, Indicator, Progress, ThemeIcon, List, Table } from './DataDisplay/index.js';
|
|
20
|
-
import { SearchableSelect, AutocompleteClearable,
|
|
20
|
+
import { SearchableSelect, AutocompleteClearable, ADMultiselect, Select, Combobox } from './Combobox/index.js';
|
|
21
21
|
import { Breadcrumb, BackBreadcrumb, NavLink, Stepper, Tabs } from './Navigation/index.js';
|
|
22
22
|
import { Drawer, Menu, Modal, ConfirmationModal, Popover, ConfirmationPopover, Tooltip } from './Overlays/index.js';
|
|
23
23
|
import { Kbd, Code, Text, Title } from './Typography/index.js';
|
|
@@ -38,7 +38,7 @@ export { TextInput, TextArea, NumberInput, ColorInput, Slider, SliderWithLabel,
|
|
|
38
38
|
// ========================== BUTTONS ==========================
|
|
39
39
|
export { Button, ActionIcon, CloseButton } from './Buttons/index.js';
|
|
40
40
|
// ========================== COMBOBOX ==========================
|
|
41
|
-
export { SearchableSelect, AutocompleteClearable,
|
|
41
|
+
export { SearchableSelect, AutocompleteClearable, ADMultiselect, Select, Combobox } from './Combobox/index.js';
|
|
42
42
|
// ========================== NAVIGATION ==========================
|
|
43
43
|
export { Breadcrumb, BackBreadcrumb, NavLink, Stepper, Tabs } from './Navigation/index.js';
|
|
44
44
|
// ========================== OVERLAYS ==========================
|
|
@@ -91,7 +91,7 @@ export const Buttons = {
|
|
|
91
91
|
export const ComboboxComponents = {
|
|
92
92
|
SearchableSelect,
|
|
93
93
|
AutocompleteClearable,
|
|
94
|
-
|
|
94
|
+
ADMultiselect,
|
|
95
95
|
Select,
|
|
96
96
|
Combobox,
|
|
97
97
|
};
|
package/dist/index.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { TextInput, TextArea, NumberInput, ColorInput, Slider, SliderWithLabel, Switch, SegmentedControl, Checkbox, Radio, RadioGroup, DropZone, FileInput } from './Inputs';
|
|
19
19
|
import { Button, ActionIcon, CloseButton } from './Buttons';
|
|
20
20
|
import { Alert, Avatar, Badge, Card, CardSection, Chip, Pill, Indicator, Progress, ThemeIcon, List, Table } from './DataDisplay';
|
|
21
|
-
import { SearchableSelect, AutocompleteClearable,
|
|
21
|
+
import { SearchableSelect, AutocompleteClearable, ADMultiselect, Select, Combobox } from './Combobox';
|
|
22
22
|
import { Breadcrumb, BackBreadcrumb, NavLink, Stepper, Tabs } from './Navigation';
|
|
23
23
|
import { Drawer, Menu, Modal, ConfirmationModal, Popover, ConfirmationPopover, Tooltip } from './Overlays';
|
|
24
24
|
import { Kbd, Code, Text, Title } from './Typography';
|
|
@@ -44,8 +44,8 @@ export { Button, ActionIcon, CloseButton } from './Buttons';
|
|
|
44
44
|
export type { DSButtonProps, DSActionIconProps, DSCloseButtonProps } from './Buttons';
|
|
45
45
|
|
|
46
46
|
// ========================== COMBOBOX ==========================
|
|
47
|
-
export { SearchableSelect, AutocompleteClearable,
|
|
48
|
-
export type { DSSearchableSelectProps, DSAutocompleteClearableProps,
|
|
47
|
+
export { SearchableSelect, AutocompleteClearable, ADMultiselect, Select, Combobox } from './Combobox';
|
|
48
|
+
export type { DSSearchableSelectProps, DSAutocompleteClearableProps, ADMultiselectProps, DSSelectProps, DSComboboxProps } from './Combobox';
|
|
49
49
|
|
|
50
50
|
// ========================== NAVIGATION ==========================
|
|
51
51
|
export { Breadcrumb, BackBreadcrumb, NavLink, Stepper, Tabs } from './Navigation';
|
|
@@ -147,7 +147,7 @@ export const Buttons = {
|
|
|
147
147
|
export const ComboboxComponents = {
|
|
148
148
|
SearchableSelect,
|
|
149
149
|
AutocompleteClearable,
|
|
150
|
-
|
|
150
|
+
ADMultiselect,
|
|
151
151
|
Select,
|
|
152
152
|
Combobox,
|
|
153
153
|
};
|