@appdirect/design-system 0.0.22 → 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/README.md +1 -1
- 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/ComplexComponents/DataTable/CustomBottomToolbar/CustomBottomToolbar.module.css +1 -24
- package/dist/ComplexComponents/DataTable/CustomBottomToolbar/index.js +2 -5
- package/dist/ComplexComponents/DataTable/CustomBottomToolbar/index.tsx +15 -22
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/SearchFilter.js +1 -2
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/SearchFilter.module.css +2 -9
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/SearchFilter.tsx +4 -5
- package/dist/ComplexComponents/DataTable/DataTableGrid/DataTableGrid.module.css +2 -6
- package/dist/ComplexComponents/DataTable/DataTableGrid/index.js +1 -1
- package/dist/ComplexComponents/DataTable/DataTableGrid/index.tsx +1 -1
- package/dist/DESIGN.md +7 -7
- 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 +15 -50
- package/dist/Inputs/NumberInput.tsx +18 -117
- package/dist/Inputs/Radio.js +1 -1
- package/dist/Inputs/Radio.tsx +1 -1
- package/dist/Inputs/RadioGroup.js +1 -1
- package/dist/Inputs/RadioGroup.tsx +1 -1
- 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/foundations.css +44 -2
- package/dist/css/mantine.css +236 -43
- package/dist/css/tokens.css +58 -26
- 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/Radio.stories.tsx +10 -5
- package/dist/stories/Inputs/RadioGroup.stories.tsx +122 -80
- 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 +10 -6
- 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;
|
|
@@ -849,10 +864,6 @@
|
|
|
849
864
|
--ad-input-field-default-border-color: #ced4da;
|
|
850
865
|
--ad-input-field-hover-border-color: #868e96;
|
|
851
866
|
--ad-input-field-focus-border-color: #326FDE;
|
|
852
|
-
--ad-input-field-focus-outline-color: color-mix(in srgb, #326FDE 35%, transparent);
|
|
853
|
-
--ad-input-field-focus-outline-width: 2px;
|
|
854
|
-
--ad-input-field-focus-outline-style: solid;
|
|
855
|
-
--ad-input-field-focus-outline-offset: 4px;
|
|
856
867
|
--ad-input-field-disabled-bg: #e9ecef;
|
|
857
868
|
--ad-input-field-disabled-fg: #adb5bd;
|
|
858
869
|
--ad-input-field-disabled-border-color: #dee2e6;
|
|
@@ -863,31 +874,36 @@
|
|
|
863
874
|
--ad-input-field-sizes-xs-font-size: 12px;
|
|
864
875
|
--ad-input-field-sizes-sm-height: 36px;
|
|
865
876
|
--ad-input-field-sizes-sm-padding-x: 12px;
|
|
866
|
-
--ad-input-field-sizes-sm-font-size:
|
|
877
|
+
--ad-input-field-sizes-sm-font-size: 14px;
|
|
867
878
|
--ad-input-field-sizes-md-height: 42px;
|
|
868
879
|
--ad-input-field-sizes-md-padding-x: 16px;
|
|
869
|
-
--ad-input-field-sizes-md-font-size:
|
|
880
|
+
--ad-input-field-sizes-md-font-size: 16px;
|
|
870
881
|
--ad-input-field-sizes-lg-height: 50px;
|
|
871
882
|
--ad-input-field-sizes-lg-padding-x: 20px;
|
|
872
|
-
--ad-input-field-sizes-lg-font-size:
|
|
883
|
+
--ad-input-field-sizes-lg-font-size: 18px;
|
|
873
884
|
--ad-input-field-sizes-xl-height: 60px;
|
|
874
885
|
--ad-input-field-sizes-xl-padding-x: 32px;
|
|
875
|
-
--ad-input-field-sizes-xl-font-size:
|
|
886
|
+
--ad-input-field-sizes-xl-font-size: 20px;
|
|
876
887
|
--ad-input-section-color: #495057;
|
|
877
888
|
--ad-input-section-padding-x: 10px;
|
|
878
889
|
--ad-input-section-sizes-xs-font-size: 12px;
|
|
879
890
|
--ad-input-section-sizes-xs-width: 14px;
|
|
880
|
-
--ad-input-section-sizes-sm-font-size:
|
|
891
|
+
--ad-input-section-sizes-sm-font-size: 14px;
|
|
881
892
|
--ad-input-section-sizes-sm-width: 16px;
|
|
882
|
-
--ad-input-section-sizes-md-font-size:
|
|
893
|
+
--ad-input-section-sizes-md-font-size: 16px;
|
|
883
894
|
--ad-input-section-sizes-md-width: 18px;
|
|
884
|
-
--ad-input-section-sizes-lg-font-size:
|
|
895
|
+
--ad-input-section-sizes-lg-font-size: 18px;
|
|
885
896
|
--ad-input-section-sizes-lg-width: 20px;
|
|
886
|
-
--ad-input-section-sizes-xl-font-size:
|
|
897
|
+
--ad-input-section-sizes-xl-font-size: 20px;
|
|
887
898
|
--ad-input-section-sizes-xl-width: 22px;
|
|
888
899
|
--ad-input-error-color: #fa5252;
|
|
889
900
|
--ad-input-error-font-size: 12px;
|
|
890
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;
|
|
891
907
|
--ad-kbd-root-font-family: Roboto Mono;
|
|
892
908
|
--ad-kbd-root-font-weight: 700;
|
|
893
909
|
--ad-kbd-root-border-radius: 4px;
|
|
@@ -1484,7 +1500,7 @@
|
|
|
1484
1500
|
--ad-table-toolbar-border-color: #ced4da;
|
|
1485
1501
|
--ad-table-toolbar-border-width: 1px;
|
|
1486
1502
|
--ad-table-toolbar-action-icon-size: 30px;
|
|
1487
|
-
--ad-table-toolbar-page-size-width:
|
|
1503
|
+
--ad-table-toolbar-page-size-width: 64px;
|
|
1488
1504
|
--ad-table-toolbar-selection-banner-bg: #326FDE;
|
|
1489
1505
|
--ad-table-toolbar-selection-banner-fg: #f8f9fa;
|
|
1490
1506
|
--ad-tabs-list-border-color: #ced4da;
|
|
@@ -2423,6 +2439,16 @@
|
|
|
2423
2439
|
--ad-input-label-base-font-size: 14px;
|
|
2424
2440
|
--ad-input-label-base-font-weight: 600;
|
|
2425
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;
|
|
2426
2452
|
--ad-input-label-required-gap: 4px;
|
|
2427
2453
|
--ad-input-label-required-color: #e03131;
|
|
2428
2454
|
--ad-input-label-optional-color: #828282;
|
|
@@ -2431,6 +2457,11 @@
|
|
|
2431
2457
|
--ad-input-description-color: #828282;
|
|
2432
2458
|
--ad-input-description-font-size: 12px;
|
|
2433
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;
|
|
2434
2465
|
--ad-input-field-base-font-family: Inter;
|
|
2435
2466
|
--ad-input-field-base-bg: #2e2e2e;
|
|
2436
2467
|
--ad-input-field-base-fg: #C9C9C9;
|
|
@@ -2447,10 +2478,6 @@
|
|
|
2447
2478
|
--ad-input-field-default-border-color: #424242;
|
|
2448
2479
|
--ad-input-field-hover-border-color: #696969;
|
|
2449
2480
|
--ad-input-field-focus-border-color: #1971c2;
|
|
2450
|
-
--ad-input-field-focus-outline-color: color-mix(in srgb, #326FDE 35%, transparent);
|
|
2451
|
-
--ad-input-field-focus-outline-width: 2px;
|
|
2452
|
-
--ad-input-field-focus-outline-style: solid;
|
|
2453
|
-
--ad-input-field-focus-outline-offset: 4px;
|
|
2454
2481
|
--ad-input-field-disabled-bg: #2e2e2e;
|
|
2455
2482
|
--ad-input-field-disabled-fg: #696969;
|
|
2456
2483
|
--ad-input-field-disabled-border-color: #424242;
|
|
@@ -2461,31 +2488,36 @@
|
|
|
2461
2488
|
--ad-input-field-sizes-xs-font-size: 12px;
|
|
2462
2489
|
--ad-input-field-sizes-sm-height: 36px;
|
|
2463
2490
|
--ad-input-field-sizes-sm-padding-x: 12px;
|
|
2464
|
-
--ad-input-field-sizes-sm-font-size:
|
|
2491
|
+
--ad-input-field-sizes-sm-font-size: 14px;
|
|
2465
2492
|
--ad-input-field-sizes-md-height: 42px;
|
|
2466
2493
|
--ad-input-field-sizes-md-padding-x: 16px;
|
|
2467
|
-
--ad-input-field-sizes-md-font-size:
|
|
2494
|
+
--ad-input-field-sizes-md-font-size: 16px;
|
|
2468
2495
|
--ad-input-field-sizes-lg-height: 50px;
|
|
2469
2496
|
--ad-input-field-sizes-lg-padding-x: 20px;
|
|
2470
|
-
--ad-input-field-sizes-lg-font-size:
|
|
2497
|
+
--ad-input-field-sizes-lg-font-size: 18px;
|
|
2471
2498
|
--ad-input-field-sizes-xl-height: 60px;
|
|
2472
2499
|
--ad-input-field-sizes-xl-padding-x: 32px;
|
|
2473
|
-
--ad-input-field-sizes-xl-font-size:
|
|
2500
|
+
--ad-input-field-sizes-xl-font-size: 20px;
|
|
2474
2501
|
--ad-input-section-color: #828282;
|
|
2475
2502
|
--ad-input-section-padding-x: 10px;
|
|
2476
2503
|
--ad-input-section-sizes-xs-font-size: 12px;
|
|
2477
2504
|
--ad-input-section-sizes-xs-width: 14px;
|
|
2478
|
-
--ad-input-section-sizes-sm-font-size:
|
|
2505
|
+
--ad-input-section-sizes-sm-font-size: 14px;
|
|
2479
2506
|
--ad-input-section-sizes-sm-width: 16px;
|
|
2480
|
-
--ad-input-section-sizes-md-font-size:
|
|
2507
|
+
--ad-input-section-sizes-md-font-size: 16px;
|
|
2481
2508
|
--ad-input-section-sizes-md-width: 18px;
|
|
2482
|
-
--ad-input-section-sizes-lg-font-size:
|
|
2509
|
+
--ad-input-section-sizes-lg-font-size: 18px;
|
|
2483
2510
|
--ad-input-section-sizes-lg-width: 20px;
|
|
2484
|
-
--ad-input-section-sizes-xl-font-size:
|
|
2511
|
+
--ad-input-section-sizes-xl-font-size: 20px;
|
|
2485
2512
|
--ad-input-section-sizes-xl-width: 22px;
|
|
2486
2513
|
--ad-input-error-color: #e03131;
|
|
2487
2514
|
--ad-input-error-font-size: 12px;
|
|
2488
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;
|
|
2489
2521
|
--ad-kbd-root-font-family: Roboto Mono;
|
|
2490
2522
|
--ad-kbd-root-font-weight: 700;
|
|
2491
2523
|
--ad-kbd-root-border-radius: 4px;
|
|
@@ -3082,7 +3114,7 @@
|
|
|
3082
3114
|
--ad-table-toolbar-border-color: #424242;
|
|
3083
3115
|
--ad-table-toolbar-border-width: 1px;
|
|
3084
3116
|
--ad-table-toolbar-action-icon-size: 30px;
|
|
3085
|
-
--ad-table-toolbar-page-size-width:
|
|
3117
|
+
--ad-table-toolbar-page-size-width: 64px;
|
|
3086
3118
|
--ad-table-toolbar-selection-banner-bg: #1971c2;
|
|
3087
3119
|
--ad-table-toolbar-selection-banner-fg: #212529;
|
|
3088
3120
|
--ad-tabs-list-border-color: #424242;
|
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
|
};
|