@appdirect/design-system 0.0.22 → 0.0.23
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/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 +5 -5
- package/dist/Inputs/NumberInput.js +25 -36
- package/dist/Inputs/NumberInput.tsx +31 -71
- 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/contracts/index.json +1 -1
- package/dist/css/foundations.css +44 -2
- package/dist/css/mantine.css +48 -19
- package/dist/css/tokens.css +4 -12
- package/dist/stories/Inputs/Radio.stories.tsx +10 -5
- package/dist/stories/Inputs/RadioGroup.stories.tsx +122 -80
- package/dist/stories/index.json +1 -1
- package/package.json +10 -6
package/dist/css/mantine.css
CHANGED
|
@@ -650,10 +650,6 @@
|
|
|
650
650
|
--ad-input-field-default-border-color: var(--ad-color-border-default);
|
|
651
651
|
--ad-input-field-hover-border-color: var(--ad-color-border-strong);
|
|
652
652
|
--ad-input-field-focus-border-color: var(--ad-color-border-primary);
|
|
653
|
-
--ad-input-field-focus-outline-color: var(--ad-action-primary-focus-ring);
|
|
654
|
-
--ad-input-field-focus-outline-width: var(--ad-border-width-medium);
|
|
655
|
-
--ad-input-field-focus-outline-style: var(--ad-border-style-solid);
|
|
656
|
-
--ad-input-field-focus-outline-offset: var(--ad-spacing-xxs);
|
|
657
653
|
--ad-input-field-disabled-bg: var(--ad-color-state-disabled);
|
|
658
654
|
--ad-input-field-disabled-fg: var(--ad-color-state-disabled-text);
|
|
659
655
|
--ad-input-field-disabled-border-color: var(--ad-color-state-disabled-border);
|
|
@@ -677,7 +673,7 @@
|
|
|
677
673
|
--ad-input-section-color: var(--ad-color-text-dimmed);
|
|
678
674
|
--ad-input-section-padding-x: var(--ad-spacing-xs);
|
|
679
675
|
--ad-input-section-sizes-xs-font-size: var(--ad-font-sizes-xs);
|
|
680
|
-
--ad-input-section-sizes-xs-width: var(--ad-icon-size-
|
|
676
|
+
--ad-input-section-sizes-xs-width: var(--ad-icon-size-md);
|
|
681
677
|
--ad-input-section-sizes-sm-font-size: var(--ad-font-sizes-xs);
|
|
682
678
|
--ad-input-section-sizes-sm-width: var(--ad-icon-size-md);
|
|
683
679
|
--ad-input-section-sizes-md-font-size: var(--ad-font-sizes-sm);
|
|
@@ -1285,7 +1281,7 @@
|
|
|
1285
1281
|
--ad-table-toolbar-border-color: var(--ad-table-row-border-bottom-color);
|
|
1286
1282
|
--ad-table-toolbar-border-width: var(--ad-table-row-border-bottom-width);
|
|
1287
1283
|
--ad-table-toolbar-action-icon-size: var(--ad-sizing-sm);
|
|
1288
|
-
--ad-table-toolbar-page-size-width:
|
|
1284
|
+
--ad-table-toolbar-page-size-width: 64px;
|
|
1289
1285
|
--ad-table-toolbar-selection-banner-bg: var(--ad-action-primary-bg);
|
|
1290
1286
|
--ad-table-toolbar-selection-banner-fg: var(--ad-color-brand-on-primary);
|
|
1291
1287
|
--ad-tabs-list-border-color: var(--ad-color-border-default);
|
|
@@ -2556,7 +2552,7 @@
|
|
|
2556
2552
|
--input-margin-bottom: var(--ad-spacing-xxs);
|
|
2557
2553
|
}
|
|
2558
2554
|
.mantine-Input-input::placeholder {
|
|
2559
|
-
color: var(--ad-color-text-placeholder);
|
|
2555
|
+
color: var(--mantine-color-placeholder, var(--ad-color-text-placeholder));
|
|
2560
2556
|
}
|
|
2561
2557
|
.mantine-Input-input:not([data-error]):not([data-disabled]) {
|
|
2562
2558
|
border-color: var(--ad-color-border-default);
|
|
@@ -2564,12 +2560,16 @@
|
|
|
2564
2560
|
.mantine-Input-input:not([data-error]):not([data-disabled]):hover {
|
|
2565
2561
|
border-color: var(--ad-color-border-strong);
|
|
2566
2562
|
}
|
|
2567
|
-
.mantine-Input-input:focus
|
|
2563
|
+
.mantine-Input-input:not([data-error]):not([data-disabled]):focus,
|
|
2564
|
+
.mantine-Input-input:not([data-error]):not([data-disabled]):focus-within {
|
|
2568
2565
|
border-color: var(--ad-color-border-primary);
|
|
2569
|
-
outline
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2566
|
+
outline: none;
|
|
2567
|
+
}
|
|
2568
|
+
:root[data-mantine-color-scheme="light"] .mantine-Input-wrapper[data-variant="default"],
|
|
2569
|
+
:root[data-mantine-color-scheme="light"] .mantine-Input-wrapper[data-variant="filled"],
|
|
2570
|
+
:root[data-mantine-color-scheme="dark"] .mantine-Input-wrapper[data-variant="default"],
|
|
2571
|
+
:root[data-mantine-color-scheme="dark"] .mantine-Input-wrapper[data-variant="filled"] {
|
|
2572
|
+
--input-bd-focus: var(--ad-color-border-primary);
|
|
2573
2573
|
}
|
|
2574
2574
|
.mantine-Input-input[data-disabled],
|
|
2575
2575
|
.mantine-Input-input:disabled {
|
|
@@ -2588,7 +2588,11 @@
|
|
|
2588
2588
|
}
|
|
2589
2589
|
.mantine-Input-section {
|
|
2590
2590
|
color: var(--ad-color-text-dimmed);
|
|
2591
|
-
|
|
2591
|
+
}
|
|
2592
|
+
.mantine-Input-section[data-position="left"],
|
|
2593
|
+
.mantine-Input-section[data-position="right"] {
|
|
2594
|
+
padding-inline: 0;
|
|
2595
|
+
justify-content: center;
|
|
2592
2596
|
}
|
|
2593
2597
|
.mantine-Input-wrapper[data-size="xs"] {
|
|
2594
2598
|
--input-height: 30px;
|
|
@@ -2630,25 +2634,45 @@
|
|
|
2630
2634
|
.mantine-Input-wrapper[data-size="xl"] .mantine-Input-input {
|
|
2631
2635
|
font-size: var(--ad-font-sizes-md);
|
|
2632
2636
|
}
|
|
2633
|
-
.mantine-Input-
|
|
2637
|
+
.mantine-Input-wrapper[data-size="xs"] .mantine-Input-section {
|
|
2634
2638
|
font-size: var(--ad-font-sizes-xs);
|
|
2635
|
-
width: var(--ad-icon-size-sm);
|
|
2636
2639
|
}
|
|
2637
|
-
.mantine-Input-
|
|
2640
|
+
.mantine-Input-wrapper[data-size="xs"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
|
|
2641
|
+
width: var(--ad-icon-size-md);
|
|
2642
|
+
height: var(--ad-icon-size-md);
|
|
2643
|
+
flex-shrink: 0;
|
|
2644
|
+
}
|
|
2645
|
+
.mantine-Input-wrapper[data-size="sm"] .mantine-Input-section {
|
|
2638
2646
|
font-size: var(--ad-font-sizes-xs);
|
|
2647
|
+
}
|
|
2648
|
+
.mantine-Input-wrapper[data-size="sm"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
|
|
2639
2649
|
width: var(--ad-icon-size-md);
|
|
2650
|
+
height: var(--ad-icon-size-md);
|
|
2651
|
+
flex-shrink: 0;
|
|
2640
2652
|
}
|
|
2641
|
-
.mantine-Input-
|
|
2653
|
+
.mantine-Input-wrapper[data-size="md"] .mantine-Input-section {
|
|
2642
2654
|
font-size: var(--ad-font-sizes-sm);
|
|
2655
|
+
}
|
|
2656
|
+
.mantine-Input-wrapper[data-size="md"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
|
|
2643
2657
|
width: var(--ad-icon-size-lg);
|
|
2658
|
+
height: var(--ad-icon-size-lg);
|
|
2659
|
+
flex-shrink: 0;
|
|
2644
2660
|
}
|
|
2645
|
-
.mantine-Input-
|
|
2661
|
+
.mantine-Input-wrapper[data-size="lg"] .mantine-Input-section {
|
|
2646
2662
|
font-size: var(--ad-font-sizes-md);
|
|
2663
|
+
}
|
|
2664
|
+
.mantine-Input-wrapper[data-size="lg"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
|
|
2647
2665
|
width: var(--ad-icon-size-xl);
|
|
2666
|
+
height: var(--ad-icon-size-xl);
|
|
2667
|
+
flex-shrink: 0;
|
|
2648
2668
|
}
|
|
2649
|
-
.mantine-Input-
|
|
2669
|
+
.mantine-Input-wrapper[data-size="xl"] .mantine-Input-section {
|
|
2650
2670
|
font-size: var(--ad-font-sizes-md);
|
|
2671
|
+
}
|
|
2672
|
+
.mantine-Input-wrapper[data-size="xl"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
|
|
2651
2673
|
width: 22px;
|
|
2674
|
+
height: 22px;
|
|
2675
|
+
flex-shrink: 0;
|
|
2652
2676
|
}
|
|
2653
2677
|
/* === Kbd === */
|
|
2654
2678
|
.mantine-Kbd-kbd {
|
|
@@ -3458,10 +3482,15 @@ fieldset:disabled .mantine-Slider-mark[data-filled] {
|
|
|
3458
3482
|
.mantine-Table-td {
|
|
3459
3483
|
padding-inline: var(--ad-spacing-md);
|
|
3460
3484
|
padding-block: var(--ad-spacing-sm);
|
|
3485
|
+
}
|
|
3486
|
+
.mantine-Table-tr[data-with-row-border] {
|
|
3461
3487
|
border-bottom-color: var(--ad-color-border-default);
|
|
3462
3488
|
border-bottom-width: var(--ad-border-width-thin);
|
|
3463
3489
|
border-bottom-style: var(--ad-border-style-solid);
|
|
3464
3490
|
}
|
|
3491
|
+
.mantine-Table-tbody > .mantine-Table-tr[data-with-row-border]:last-of-type {
|
|
3492
|
+
border-bottom: none;
|
|
3493
|
+
}
|
|
3465
3494
|
.mantine-Table-table[data-striped="odd"] .mantine-Table-tr:nth-child(odd) td {
|
|
3466
3495
|
background: var(--ad-color-bg-subtle);
|
|
3467
3496
|
}
|
package/dist/css/tokens.css
CHANGED
|
@@ -849,10 +849,6 @@
|
|
|
849
849
|
--ad-input-field-default-border-color: #ced4da;
|
|
850
850
|
--ad-input-field-hover-border-color: #868e96;
|
|
851
851
|
--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
852
|
--ad-input-field-disabled-bg: #e9ecef;
|
|
857
853
|
--ad-input-field-disabled-fg: #adb5bd;
|
|
858
854
|
--ad-input-field-disabled-border-color: #dee2e6;
|
|
@@ -876,7 +872,7 @@
|
|
|
876
872
|
--ad-input-section-color: #495057;
|
|
877
873
|
--ad-input-section-padding-x: 10px;
|
|
878
874
|
--ad-input-section-sizes-xs-font-size: 12px;
|
|
879
|
-
--ad-input-section-sizes-xs-width:
|
|
875
|
+
--ad-input-section-sizes-xs-width: 16px;
|
|
880
876
|
--ad-input-section-sizes-sm-font-size: 12px;
|
|
881
877
|
--ad-input-section-sizes-sm-width: 16px;
|
|
882
878
|
--ad-input-section-sizes-md-font-size: 14px;
|
|
@@ -1484,7 +1480,7 @@
|
|
|
1484
1480
|
--ad-table-toolbar-border-color: #ced4da;
|
|
1485
1481
|
--ad-table-toolbar-border-width: 1px;
|
|
1486
1482
|
--ad-table-toolbar-action-icon-size: 30px;
|
|
1487
|
-
--ad-table-toolbar-page-size-width:
|
|
1483
|
+
--ad-table-toolbar-page-size-width: 64px;
|
|
1488
1484
|
--ad-table-toolbar-selection-banner-bg: #326FDE;
|
|
1489
1485
|
--ad-table-toolbar-selection-banner-fg: #f8f9fa;
|
|
1490
1486
|
--ad-tabs-list-border-color: #ced4da;
|
|
@@ -2447,10 +2443,6 @@
|
|
|
2447
2443
|
--ad-input-field-default-border-color: #424242;
|
|
2448
2444
|
--ad-input-field-hover-border-color: #696969;
|
|
2449
2445
|
--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
2446
|
--ad-input-field-disabled-bg: #2e2e2e;
|
|
2455
2447
|
--ad-input-field-disabled-fg: #696969;
|
|
2456
2448
|
--ad-input-field-disabled-border-color: #424242;
|
|
@@ -2474,7 +2466,7 @@
|
|
|
2474
2466
|
--ad-input-section-color: #828282;
|
|
2475
2467
|
--ad-input-section-padding-x: 10px;
|
|
2476
2468
|
--ad-input-section-sizes-xs-font-size: 12px;
|
|
2477
|
-
--ad-input-section-sizes-xs-width:
|
|
2469
|
+
--ad-input-section-sizes-xs-width: 16px;
|
|
2478
2470
|
--ad-input-section-sizes-sm-font-size: 12px;
|
|
2479
2471
|
--ad-input-section-sizes-sm-width: 16px;
|
|
2480
2472
|
--ad-input-section-sizes-md-font-size: 14px;
|
|
@@ -3082,7 +3074,7 @@
|
|
|
3082
3074
|
--ad-table-toolbar-border-color: #424242;
|
|
3083
3075
|
--ad-table-toolbar-border-width: 1px;
|
|
3084
3076
|
--ad-table-toolbar-action-icon-size: 30px;
|
|
3085
|
-
--ad-table-toolbar-page-size-width:
|
|
3077
|
+
--ad-table-toolbar-page-size-width: 64px;
|
|
3086
3078
|
--ad-table-toolbar-selection-banner-bg: #1971c2;
|
|
3087
3079
|
--ad-table-toolbar-selection-banner-fg: #212529;
|
|
3088
3080
|
--ad-tabs-list-border-color: #424242;
|
|
@@ -52,6 +52,11 @@ export default meta;
|
|
|
52
52
|
type Story = StoryObj<typeof meta>;
|
|
53
53
|
|
|
54
54
|
export const Default: Story = {
|
|
55
|
+
render: args => (
|
|
56
|
+
<Stack gap="xs">
|
|
57
|
+
<Radio {...args} />
|
|
58
|
+
</Stack>
|
|
59
|
+
),
|
|
55
60
|
args: {
|
|
56
61
|
label: 'Select this option',
|
|
57
62
|
value: 'option1',
|
|
@@ -62,8 +67,8 @@ export const Sizes: Story = {
|
|
|
62
67
|
render: () => (
|
|
63
68
|
<Stack gap="md">
|
|
64
69
|
<Radio size="xs" label="Extra Small" value="xs" />
|
|
65
|
-
<Radio size="sm" label="Small" value="sm" />
|
|
66
|
-
<Radio size="md" label="Medium
|
|
70
|
+
<Radio size="sm" label="Small (Default)" value="sm" />
|
|
71
|
+
<Radio size="md" label="Medium" value="md" />
|
|
67
72
|
<Radio size="lg" label="Large" value="lg" />
|
|
68
73
|
<Radio size="xl" label="Extra Large" value="xl" />
|
|
69
74
|
</Stack>
|
|
@@ -127,7 +132,7 @@ export const RadioGroupSizes: Story = {
|
|
|
127
132
|
</RadioGroup>
|
|
128
133
|
|
|
129
134
|
<RadioGroup
|
|
130
|
-
label="Small"
|
|
135
|
+
label="Small (Default)"
|
|
131
136
|
size="sm"
|
|
132
137
|
value={value}
|
|
133
138
|
onChange={(v) => setValue(String(v))}
|
|
@@ -139,7 +144,7 @@ export const RadioGroupSizes: Story = {
|
|
|
139
144
|
</RadioGroup>
|
|
140
145
|
|
|
141
146
|
<RadioGroup
|
|
142
|
-
label="Medium
|
|
147
|
+
label="Medium"
|
|
143
148
|
size="md"
|
|
144
149
|
value={value}
|
|
145
150
|
onChange={(v) => setValue(String(v))}
|
|
@@ -422,7 +427,7 @@ export const Interactive: Story = {
|
|
|
422
427
|
args: {
|
|
423
428
|
label: 'Interactive Radio',
|
|
424
429
|
value: 'interactive',
|
|
425
|
-
size: '
|
|
430
|
+
size: 'sm',
|
|
426
431
|
checked: false,
|
|
427
432
|
disabled: false,
|
|
428
433
|
required: false,
|
|
@@ -49,9 +49,11 @@ export const Default: Story = {
|
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
51
|
<RadioGroup label="Choose an option" value={value} onChange={(v) => setValue(String(v))}>
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
<Stack gap="xs">
|
|
53
|
+
<Radio value="option1" label="First option" />
|
|
54
|
+
<Radio value="option2" label="Second option" />
|
|
55
|
+
<Radio value="option3" label="Third option" />
|
|
56
|
+
</Stack>
|
|
55
57
|
</RadioGroup>
|
|
56
58
|
);
|
|
57
59
|
},
|
|
@@ -80,9 +82,11 @@ export const Sizes: Story = {
|
|
|
80
82
|
value={values[size]}
|
|
81
83
|
onChange={(val) => setValues(prev => ({ ...prev, [size]: String(val) }))}
|
|
82
84
|
>
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
<Stack gap="xs">
|
|
86
|
+
<Radio value="option1" label="First option" />
|
|
87
|
+
<Radio value="option2" label="Second option" />
|
|
88
|
+
<Radio value="option3" label="Third option" />
|
|
89
|
+
</Stack>
|
|
86
90
|
</RadioGroup>
|
|
87
91
|
</div>
|
|
88
92
|
))}
|
|
@@ -109,9 +113,11 @@ export const WithDescription: Story = {
|
|
|
109
113
|
value={value}
|
|
110
114
|
onChange={(v) => setValue(String(v))}
|
|
111
115
|
>
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
<Stack gap="xs">
|
|
117
|
+
<Radio value="basic" label="Basic - $9/month" />
|
|
118
|
+
<Radio value="pro" label="Pro - $29/month" />
|
|
119
|
+
<Radio value="enterprise" label="Enterprise - $99/month" />
|
|
120
|
+
</Stack>
|
|
115
121
|
</RadioGroup>
|
|
116
122
|
);
|
|
117
123
|
},
|
|
@@ -136,10 +142,12 @@ export const Required: Story = {
|
|
|
136
142
|
value={value}
|
|
137
143
|
onChange={(v) => setValue(String(v))}
|
|
138
144
|
>
|
|
139
|
-
<
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
<Stack gap="xs">
|
|
146
|
+
<Radio value="card" label="Credit Card" />
|
|
147
|
+
<Radio value="paypal" label="PayPal" />
|
|
148
|
+
<Radio value="bank" label="Bank Transfer" />
|
|
149
|
+
<Radio value="crypto" label="Cryptocurrency" />
|
|
150
|
+
</Stack>
|
|
143
151
|
</RadioGroup>
|
|
144
152
|
);
|
|
145
153
|
},
|
|
@@ -165,10 +173,12 @@ export const WithError: Story = {
|
|
|
165
173
|
value={value}
|
|
166
174
|
onChange={(v) => setValue(String(v))}
|
|
167
175
|
>
|
|
168
|
-
<
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
176
|
+
<Stack gap="xs">
|
|
177
|
+
<Radio value="standard" label="Standard Delivery (5-7 days)" />
|
|
178
|
+
<Radio value="express" label="Express Delivery (2-3 days)" />
|
|
179
|
+
<Radio value="overnight" label="Overnight Delivery" />
|
|
180
|
+
<Radio value="pickup" label="Store Pickup" />
|
|
181
|
+
</Stack>
|
|
172
182
|
</RadioGroup>
|
|
173
183
|
);
|
|
174
184
|
},
|
|
@@ -195,10 +205,12 @@ export const DisabledStates: Story = {
|
|
|
195
205
|
value={value}
|
|
196
206
|
onChange={(v) => setValue(String(v))}
|
|
197
207
|
>
|
|
198
|
-
<
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
208
|
+
<Stack gap="xs">
|
|
209
|
+
<Radio value="option1" label="Available option" />
|
|
210
|
+
<Radio value="option2" label="Selected option" />
|
|
211
|
+
<Radio value="option3" label="Disabled option" disabled />
|
|
212
|
+
<Radio value="option4" label="Another disabled option" disabled />
|
|
213
|
+
</Stack>
|
|
202
214
|
</RadioGroup>
|
|
203
215
|
</div>
|
|
204
216
|
</Stack>
|
|
@@ -250,10 +262,12 @@ export const FormIntegration: Story = {
|
|
|
250
262
|
value={formData.priority}
|
|
251
263
|
onChange={(val) => setFormData(prev => ({ ...prev, priority: String(val) }))}
|
|
252
264
|
>
|
|
253
|
-
<
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
265
|
+
<Stack gap="xs">
|
|
266
|
+
<Radio value="low" label="🟢 Low Priority" />
|
|
267
|
+
<Radio value="medium" label="🟡 Medium Priority" />
|
|
268
|
+
<Radio value="high" label="🟠 High Priority" />
|
|
269
|
+
<Radio value="urgent" label="🔴 Urgent" />
|
|
270
|
+
</Stack>
|
|
257
271
|
</RadioGroup>
|
|
258
272
|
|
|
259
273
|
<RadioGroup
|
|
@@ -264,10 +278,12 @@ export const FormIntegration: Story = {
|
|
|
264
278
|
value={formData.category}
|
|
265
279
|
onChange={(val) => setFormData(prev => ({ ...prev, category: String(val) }))}
|
|
266
280
|
>
|
|
267
|
-
<
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
281
|
+
<Stack gap="xs">
|
|
282
|
+
<Radio value="development" label="Development" />
|
|
283
|
+
<Radio value="design" label="Design" />
|
|
284
|
+
<Radio value="testing" label="Testing" />
|
|
285
|
+
<Radio value="documentation" label="Documentation" />
|
|
286
|
+
</Stack>
|
|
271
287
|
</RadioGroup>
|
|
272
288
|
|
|
273
289
|
<RadioGroup
|
|
@@ -278,9 +294,11 @@ export const FormIntegration: Story = {
|
|
|
278
294
|
value={formData.visibility}
|
|
279
295
|
onChange={(val) => setFormData(prev => ({ ...prev, visibility: String(val) }))}
|
|
280
296
|
>
|
|
281
|
-
<
|
|
282
|
-
|
|
283
|
-
|
|
297
|
+
<Stack gap="xs">
|
|
298
|
+
<Radio value="private" label="Private (Only me)" />
|
|
299
|
+
<Radio value="team" label="Team members" />
|
|
300
|
+
<Radio value="public" label="Everyone" />
|
|
301
|
+
</Stack>
|
|
284
302
|
</RadioGroup>
|
|
285
303
|
|
|
286
304
|
<Button variant="primary" onClick={handleSubmit}>
|
|
@@ -317,9 +335,11 @@ export const SettingsConfiguration: Story = {
|
|
|
317
335
|
value={settings.theme}
|
|
318
336
|
onChange={(val) => setSettings(prev => ({ ...prev, theme: String(val) }))}
|
|
319
337
|
>
|
|
320
|
-
<
|
|
321
|
-
|
|
322
|
-
|
|
338
|
+
<Stack gap="xs">
|
|
339
|
+
<Radio value="light" label="☀️ Light Theme" />
|
|
340
|
+
<Radio value="dark" label="🌙 Dark Theme" />
|
|
341
|
+
<Radio value="auto" label="🔄 Auto (System)" />
|
|
342
|
+
</Stack>
|
|
323
343
|
</RadioGroup>
|
|
324
344
|
|
|
325
345
|
<RadioGroup
|
|
@@ -328,10 +348,12 @@ export const SettingsConfiguration: Story = {
|
|
|
328
348
|
value={settings.notifications}
|
|
329
349
|
onChange={(val) => setSettings(prev => ({ ...prev, notifications: String(val) }))}
|
|
330
350
|
>
|
|
331
|
-
<
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
351
|
+
<Stack gap="xs">
|
|
352
|
+
<Radio value="all" label="All notifications" />
|
|
353
|
+
<Radio value="important" label="Important only" />
|
|
354
|
+
<Radio value="mentions" label="Mentions and replies" />
|
|
355
|
+
<Radio value="none" label="No notifications" />
|
|
356
|
+
</Stack>
|
|
335
357
|
</RadioGroup>
|
|
336
358
|
|
|
337
359
|
<RadioGroup
|
|
@@ -340,9 +362,11 @@ export const SettingsConfiguration: Story = {
|
|
|
340
362
|
value={settings.privacy}
|
|
341
363
|
onChange={(val) => setSettings(prev => ({ ...prev, privacy: String(val) }))}
|
|
342
364
|
>
|
|
343
|
-
<
|
|
344
|
-
|
|
345
|
-
|
|
365
|
+
<Stack gap="xs">
|
|
366
|
+
<Radio value="public" label="🌍 Public" />
|
|
367
|
+
<Radio value="friends" label="👥 Friends only" />
|
|
368
|
+
<Radio value="private" label="🔒 Private" />
|
|
369
|
+
</Stack>
|
|
346
370
|
</RadioGroup>
|
|
347
371
|
|
|
348
372
|
<RadioGroup
|
|
@@ -351,10 +375,12 @@ export const SettingsConfiguration: Story = {
|
|
|
351
375
|
value={settings.language}
|
|
352
376
|
onChange={(val) => setSettings(prev => ({ ...prev, language: String(val) }))}
|
|
353
377
|
>
|
|
354
|
-
<
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
378
|
+
<Stack gap="xs">
|
|
379
|
+
<Radio value="en" label="🇺🇸 English" />
|
|
380
|
+
<Radio value="es" label="🇪🇸 Spanish" />
|
|
381
|
+
<Radio value="fr" label="🇫🇷 French" />
|
|
382
|
+
<Radio value="de" label="🇩🇪 German" />
|
|
383
|
+
</Stack>
|
|
358
384
|
</RadioGroup>
|
|
359
385
|
</Stack>
|
|
360
386
|
);
|
|
@@ -387,11 +413,13 @@ export const SurveyQuestions: Story = {
|
|
|
387
413
|
value={answers.satisfaction}
|
|
388
414
|
onChange={(val) => setAnswers(prev => ({ ...prev, satisfaction: String(val) }))}
|
|
389
415
|
>
|
|
390
|
-
<
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
416
|
+
<Stack gap="xs">
|
|
417
|
+
<Radio value="very-satisfied" label="😊 Very Satisfied" />
|
|
418
|
+
<Radio value="satisfied" label="🙂 Satisfied" />
|
|
419
|
+
<Radio value="neutral" label="😐 Neutral" />
|
|
420
|
+
<Radio value="dissatisfied" label="🙁 Dissatisfied" />
|
|
421
|
+
<Radio value="very-dissatisfied" label="😞 Very Dissatisfied" />
|
|
422
|
+
</Stack>
|
|
395
423
|
</RadioGroup>
|
|
396
424
|
|
|
397
425
|
<RadioGroup
|
|
@@ -414,11 +442,13 @@ export const SurveyQuestions: Story = {
|
|
|
414
442
|
value={answers.frequency}
|
|
415
443
|
onChange={(val) => setAnswers(prev => ({ ...prev, frequency: String(val) }))}
|
|
416
444
|
>
|
|
417
|
-
<
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
445
|
+
<Stack gap="xs">
|
|
446
|
+
<Radio value="daily" label="Daily" />
|
|
447
|
+
<Radio value="weekly" label="Weekly" />
|
|
448
|
+
<Radio value="monthly" label="Monthly" />
|
|
449
|
+
<Radio value="rarely" label="Rarely" />
|
|
450
|
+
<Radio value="first-time" label="This is my first time" />
|
|
451
|
+
</Stack>
|
|
422
452
|
</RadioGroup>
|
|
423
453
|
|
|
424
454
|
<RadioGroup
|
|
@@ -426,12 +456,14 @@ export const SurveyQuestions: Story = {
|
|
|
426
456
|
value={answers.improvement}
|
|
427
457
|
onChange={(val) => setAnswers(prev => ({ ...prev, improvement: String(val) }))}
|
|
428
458
|
>
|
|
429
|
-
<
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
459
|
+
<Stack gap="xs">
|
|
460
|
+
<Radio value="speed" label="Speed and performance" />
|
|
461
|
+
<Radio value="features" label="Features and functionality" />
|
|
462
|
+
<Radio value="design" label="User interface design" />
|
|
463
|
+
<Radio value="support" label="Customer support" />
|
|
464
|
+
<Radio value="pricing" label="Pricing" />
|
|
465
|
+
<Radio value="other" label="Other" />
|
|
466
|
+
</Stack>
|
|
435
467
|
</RadioGroup>
|
|
436
468
|
</Stack>
|
|
437
469
|
);
|
|
@@ -453,38 +485,46 @@ export const UseCases: Story = {
|
|
|
453
485
|
<div>
|
|
454
486
|
<Text size="sm" fw={500} mb="sm">1. Payment Methods:</Text>
|
|
455
487
|
<RadioGroup label="Payment Method" defaultValue="card">
|
|
456
|
-
<
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
488
|
+
<Stack gap="xs">
|
|
489
|
+
<Radio value="card" label="💳 Credit/Debit Card" />
|
|
490
|
+
<Radio value="paypal" label="🅿️ PayPal" />
|
|
491
|
+
<Radio value="apple" label="🍎 Apple Pay" />
|
|
492
|
+
<Radio value="google" label="🔵 Google Pay" />
|
|
493
|
+
</Stack>
|
|
460
494
|
</RadioGroup>
|
|
461
495
|
</div>
|
|
462
496
|
|
|
463
497
|
<div>
|
|
464
498
|
<Text size="sm" fw={500} mb="sm">2. Shipping Options:</Text>
|
|
465
499
|
<RadioGroup label="Delivery Speed" defaultValue="standard">
|
|
466
|
-
<
|
|
467
|
-
|
|
468
|
-
|
|
500
|
+
<Stack gap="xs">
|
|
501
|
+
<Radio value="standard" label="📦 Standard (5-7 days) - Free" />
|
|
502
|
+
<Radio value="express" label="⚡ Express (2-3 days) - $9.99" />
|
|
503
|
+
<Radio value="overnight" label="🚀 Overnight - $24.99" />
|
|
504
|
+
</Stack>
|
|
469
505
|
</RadioGroup>
|
|
470
506
|
</div>
|
|
471
507
|
|
|
472
508
|
<div>
|
|
473
509
|
<Text size="sm" fw={500} mb="sm">3. Account Types:</Text>
|
|
474
510
|
<RadioGroup label="Account Type" defaultValue="personal">
|
|
475
|
-
<
|
|
476
|
-
|
|
477
|
-
|
|
511
|
+
<Stack gap="xs">
|
|
512
|
+
<Radio value="personal" label="👤 Personal Account" />
|
|
513
|
+
<Radio value="business" label="🏢 Business Account" />
|
|
514
|
+
<Radio value="enterprise" label="🏭 Enterprise Account" />
|
|
515
|
+
</Stack>
|
|
478
516
|
</RadioGroup>
|
|
479
517
|
</div>
|
|
480
518
|
|
|
481
519
|
<div>
|
|
482
520
|
<Text size="sm" fw={500} mb="sm">4. Contact Preferences:</Text>
|
|
483
521
|
<RadioGroup label="Preferred Contact Method" defaultValue="email">
|
|
484
|
-
<
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
522
|
+
<Stack gap="xs">
|
|
523
|
+
<Radio value="email" label="📧 Email" />
|
|
524
|
+
<Radio value="phone" label="📞 Phone" />
|
|
525
|
+
<Radio value="sms" label="💬 SMS" />
|
|
526
|
+
<Radio value="none" label="🚫 Do not contact" />
|
|
527
|
+
</Stack>
|
|
488
528
|
</RadioGroup>
|
|
489
529
|
</div>
|
|
490
530
|
</Stack>
|
|
@@ -503,16 +543,18 @@ export const Interactive: Story = {
|
|
|
503
543
|
label: 'Interactive RadioGroup',
|
|
504
544
|
description: 'Use the controls to modify this RadioGroup',
|
|
505
545
|
required: false,
|
|
506
|
-
size: '
|
|
546
|
+
size: 'sm',
|
|
507
547
|
},
|
|
508
548
|
render: (args) => {
|
|
509
549
|
const [value, setValue] = useState<string>('');
|
|
510
550
|
|
|
511
551
|
return (
|
|
512
552
|
<RadioGroup {...args} value={value} onChange={(v) => setValue(String(v))}>
|
|
513
|
-
<
|
|
514
|
-
|
|
515
|
-
|
|
553
|
+
<Stack gap="xs">
|
|
554
|
+
<Radio value="option1" label="First option" />
|
|
555
|
+
<Radio value="option2" label="Second option" />
|
|
556
|
+
<Radio value="option3" label="Third option" />
|
|
557
|
+
</Stack>
|
|
516
558
|
</RadioGroup>
|
|
517
559
|
);
|
|
518
560
|
},
|
package/dist/stories/index.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appdirect/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "AppDirect Design System components. Wraps Mantine v9 with standardized props, variants, and tokens.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.ts",
|
|
@@ -49,21 +49,25 @@
|
|
|
49
49
|
"prepublishOnly": "npm run build"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@appdirect/ad-design-tokens": "0.0.
|
|
53
|
-
"@mantine/dropzone": "^9.6.0",
|
|
52
|
+
"@appdirect/ad-design-tokens": "0.0.23",
|
|
54
53
|
"@remixicon/react": "^4.6.0",
|
|
55
54
|
"@tabler/icons-react": "^3.33.0",
|
|
56
55
|
"@tanstack/react-table": "^9.2.4",
|
|
57
56
|
"clsx": "^2.1.1"
|
|
58
57
|
},
|
|
59
58
|
"peerDependencies": {
|
|
60
|
-
"@mantine/core": "^9.
|
|
61
|
-
"@mantine/dates": "^9.
|
|
62
|
-
"@mantine/
|
|
59
|
+
"@mantine/core": "^9.8.2",
|
|
60
|
+
"@mantine/dates": "^9.8.2",
|
|
61
|
+
"@mantine/dropzone": "^9.8.2",
|
|
62
|
+
"@mantine/hooks": "^9.8.2",
|
|
63
63
|
"react": "^19.2.0",
|
|
64
64
|
"react-dom": "^19.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
+
"@mantine/core": "^9.8.2",
|
|
68
|
+
"@mantine/dates": "^9.8.2",
|
|
69
|
+
"@mantine/dropzone": "^9.8.2",
|
|
70
|
+
"@mantine/hooks": "^9.8.2",
|
|
67
71
|
"typescript": "^5.9.3"
|
|
68
72
|
},
|
|
69
73
|
"repository": {
|