@ncds/ui-admin 1.5.4 → 1.6.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/dist/cjs/src/components/badge/utils.js +2 -4
- package/dist/cjs/src/components/breadcrumb/BreadCrumb.js +2 -3
- package/dist/cjs/src/components/button/Button.js +4 -5
- package/dist/cjs/src/components/button/ButtonCloseX.js +3 -3
- package/dist/cjs/src/components/button/ButtonGroup.js +2 -6
- package/dist/cjs/src/components/carousel/CarouselArrow.js +5 -5
- package/dist/cjs/src/components/combobox/ComboBox.js +3 -2
- package/dist/cjs/src/components/date-picker/CustomInput.js +5 -4
- package/dist/cjs/src/components/date-picker/DatePicker.js +3 -2
- package/dist/cjs/src/components/dropdown/Dropdown.js +14 -15
- package/dist/cjs/src/components/featured-icon/FeaturedIcon.js +3 -5
- package/dist/cjs/src/components/file-input/FileInput.js +6 -7
- package/dist/cjs/src/components/image-file-input/ImageFileInput.js +4 -5
- package/dist/cjs/src/components/image-file-input/components/ImagePreview.js +2 -1
- package/dist/cjs/src/components/input/InputBase.js +24 -24
- package/dist/cjs/src/components/input/PasswordInput.js +1 -1
- package/dist/cjs/src/components/modal/Modal.js +7 -5
- package/dist/cjs/src/components/notification/FloatingNotification.js +8 -7
- package/dist/cjs/src/components/notification/FullWidthNotification.js +17 -17
- package/dist/cjs/src/components/notification/MessageNotification.js +11 -12
- package/dist/cjs/src/components/pagination/NavButton.js +12 -11
- package/dist/cjs/src/components/select-dropdown/SelectDropdown.js +14 -4
- package/dist/cjs/src/components/selectbox/SelectBox.js +62 -39
- package/dist/cjs/src/components/tab/TabButton.js +2 -3
- package/dist/cjs/src/components/tag/Tag.js +4 -5
- package/dist/esm/src/components/badge/utils.js +1 -2
- package/dist/esm/src/components/breadcrumb/BreadCrumb.js +2 -3
- package/dist/esm/src/components/button/Button.js +3 -4
- package/dist/esm/src/components/button/ButtonCloseX.js +3 -3
- package/dist/esm/src/components/button/ButtonGroup.js +2 -6
- package/dist/esm/src/components/carousel/CarouselArrow.js +5 -5
- package/dist/esm/src/components/combobox/ComboBox.js +3 -2
- package/dist/esm/src/components/date-picker/CustomInput.js +5 -3
- package/dist/esm/src/components/date-picker/DatePicker.js +3 -2
- package/dist/esm/src/components/dropdown/Dropdown.js +14 -14
- package/dist/esm/src/components/featured-icon/FeaturedIcon.js +2 -4
- package/dist/esm/src/components/file-input/FileInput.js +6 -7
- package/dist/esm/src/components/image-file-input/ImageFileInput.js +4 -5
- package/dist/esm/src/components/image-file-input/components/ImagePreview.js +2 -1
- package/dist/esm/src/components/input/InputBase.js +24 -24
- package/dist/esm/src/components/input/PasswordInput.js +2 -2
- package/dist/esm/src/components/modal/Modal.js +7 -5
- package/dist/esm/src/components/notification/FloatingNotification.js +8 -7
- package/dist/esm/src/components/notification/FullWidthNotification.js +17 -17
- package/dist/esm/src/components/notification/MessageNotification.js +11 -12
- package/dist/esm/src/components/pagination/NavButton.js +11 -10
- package/dist/esm/src/components/select-dropdown/SelectDropdown.js +14 -4
- package/dist/esm/src/components/selectbox/SelectBox.js +62 -39
- package/dist/esm/src/components/tab/TabButton.js +2 -3
- package/dist/esm/src/components/tag/Tag.js +5 -6
- package/dist/types/src/components/badge/BadgeGroup.d.ts +4 -4
- package/dist/types/src/components/badge/utils.d.ts +2 -2
- package/dist/types/src/components/button/Button.d.ts +18 -20
- package/dist/types/src/components/button/ButtonCloseX.d.ts +1 -1
- package/dist/types/src/components/button/ButtonGroup.d.ts +6 -6
- package/dist/types/src/components/combobox/ComboBox.d.ts +4 -4
- package/dist/types/src/components/date-picker/CustomInput.d.ts +1 -2
- package/dist/types/src/components/date-picker/DatePicker.d.ts +1 -0
- package/dist/types/src/components/dot/Dot.d.ts +1 -1
- package/dist/types/src/components/dropdown/Dropdown.d.ts +4 -3
- package/dist/types/src/components/featured-icon/FeaturedIcon.d.ts +2 -2
- package/dist/types/src/components/file-input/FileInput.d.ts +1 -1
- package/dist/types/src/components/image-file-input/ImageFileInput.d.ts +2 -2
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/input/InputBase.d.ts +4 -4
- package/dist/types/src/components/modal/Modal.d.ts +6 -4
- package/dist/types/src/components/notification/MessageNotification.d.ts +3 -3
- package/dist/types/src/components/notification/Notification.d.ts +3 -3
- package/dist/types/src/components/pagination/NavButton.d.ts +5 -4
- package/dist/types/src/components/select-dropdown/SelectDropdown.d.ts +1 -0
- package/dist/types/src/components/selectbox/SelectBox.d.ts +6 -4
- package/dist/types/src/components/tab/TabButton.d.ts +3 -3
- package/dist/types/src/components/tag/Tag.d.ts +3 -3
- package/dist/types/src/types/dropdown/option.d.ts +4 -0
- package/dist/types/src/types/index.d.ts +1 -0
- package/dist/ui-admin/assets/styles/style.css +35 -5
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { BadgeProps } from '../badge/Badge';
|
|
1
|
+
import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { type BadgeProps } from '../badge/Badge';
|
|
3
3
|
export type TabSize = 'sm' | 'md' | 'lg';
|
|
4
4
|
export type TabType = 'button-primary' | 'button-white' | 'underline' | 'underline-fill' | 'line-vertical';
|
|
5
5
|
type BaseTabButtonProps = {
|
|
6
6
|
id?: string;
|
|
7
|
-
label
|
|
7
|
+
label?: string;
|
|
8
8
|
size?: TabSize;
|
|
9
9
|
tabButtonType?: TabType;
|
|
10
10
|
isActive?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MouseEventHandler } from 'react';
|
|
2
|
-
import { Size } from '../../../constant/size';
|
|
3
|
-
import { SideSlotType } from '../../types/side-slot';
|
|
1
|
+
import { type MouseEventHandler } from 'react';
|
|
2
|
+
import type { Size } from '../../../constant/size';
|
|
3
|
+
import type { SideSlotType } from '../../types/side-slot';
|
|
4
4
|
interface TagProps {
|
|
5
5
|
size?: Extract<Size, 'sm' | 'md'>;
|
|
6
6
|
icon?: SideSlotType;
|
|
@@ -1368,9 +1368,11 @@ button {
|
|
|
1368
1368
|
padding: 4px 10px;
|
|
1369
1369
|
}
|
|
1370
1370
|
.ncua-input__field--xs {
|
|
1371
|
+
line-height: var(--line-heights-xs);
|
|
1371
1372
|
padding: 4px 10px;
|
|
1372
1373
|
}
|
|
1373
1374
|
.ncua-input__field--sm {
|
|
1375
|
+
line-height: var(--line-heights-sm);
|
|
1374
1376
|
padding: 6px 12px;
|
|
1375
1377
|
}
|
|
1376
1378
|
.ncua-input__field:has(.ncua-input__stepper-button-group ~ .ncua-input__number) {
|
|
@@ -1563,9 +1565,11 @@ button {
|
|
|
1563
1565
|
padding: 4px 10px;
|
|
1564
1566
|
}
|
|
1565
1567
|
.ncua-input__leading-text-wrap .ncua-input__leading-text--xs {
|
|
1568
|
+
line-height: var(--line-heights-xs);
|
|
1566
1569
|
padding: 4px 10px;
|
|
1567
1570
|
}
|
|
1568
1571
|
.ncua-input__leading-text-wrap .ncua-input__leading-text--sm {
|
|
1572
|
+
line-height: var(--line-heights-sm);
|
|
1569
1573
|
padding: 6px 12px;
|
|
1570
1574
|
}
|
|
1571
1575
|
.ncua-input__leading-text-wrap .ncua-input__leading-text {
|
|
@@ -1588,9 +1592,11 @@ button {
|
|
|
1588
1592
|
padding: 4px 10px;
|
|
1589
1593
|
}
|
|
1590
1594
|
.ncua-input__trailing-button .ncua-input__button--xs {
|
|
1595
|
+
line-height: var(--line-heights-xs);
|
|
1591
1596
|
padding: 4px 10px;
|
|
1592
1597
|
}
|
|
1593
1598
|
.ncua-input__trailing-button .ncua-input__button--sm {
|
|
1599
|
+
line-height: var(--line-heights-sm);
|
|
1594
1600
|
padding: 6px 12px;
|
|
1595
1601
|
}
|
|
1596
1602
|
.ncua-input__trailing-button .ncua-input__button {
|
|
@@ -1603,19 +1609,19 @@ button {
|
|
|
1603
1609
|
cursor: pointer;
|
|
1604
1610
|
}
|
|
1605
1611
|
.ncua-input__trailing-button .ncua-input__button {
|
|
1606
|
-
padding:
|
|
1612
|
+
padding: 4px 10px;
|
|
1607
1613
|
font-size: var(--font-size-xs);
|
|
1608
1614
|
line-height: var(--line-heights-xs);
|
|
1609
1615
|
font-weight: var(--font-weights-commerce-sans-1);
|
|
1610
1616
|
}
|
|
1611
1617
|
.ncua-input__trailing-button .ncua-input__button--xs {
|
|
1612
|
-
padding:
|
|
1618
|
+
padding: 4px 10px;
|
|
1613
1619
|
font-size: var(--font-size-xs);
|
|
1614
1620
|
line-height: var(--line-heights-xs);
|
|
1615
1621
|
font-weight: var(--font-weights-commerce-sans-1);
|
|
1616
1622
|
}
|
|
1617
1623
|
.ncua-input__trailing-button .ncua-input__button--sm {
|
|
1618
|
-
padding:
|
|
1624
|
+
padding: 6px 12px;
|
|
1619
1625
|
font-size: var(--font-size-sm);
|
|
1620
1626
|
line-height: var(--line-heights-sm);
|
|
1621
1627
|
font-weight: var(--font-weights-commerce-sans-2);
|
|
@@ -3155,6 +3161,10 @@ button {
|
|
|
3155
3161
|
.ncua-select-dropdown--up {
|
|
3156
3162
|
bottom: calc(100% + 4px);
|
|
3157
3163
|
}
|
|
3164
|
+
.ncua-select-dropdown--align-right {
|
|
3165
|
+
left: initial;
|
|
3166
|
+
right: 0;
|
|
3167
|
+
}
|
|
3158
3168
|
.ncua-select-dropdown__content {
|
|
3159
3169
|
padding: 8px 6px;
|
|
3160
3170
|
}
|
|
@@ -3188,6 +3198,10 @@ button {
|
|
|
3188
3198
|
transition: background-color 0.15s ease, color 0.15s ease;
|
|
3189
3199
|
position: relative;
|
|
3190
3200
|
border-radius: 6px;
|
|
3201
|
+
display: flex;
|
|
3202
|
+
align-items: center;
|
|
3203
|
+
gap: 8px;
|
|
3204
|
+
color: var(--gray-600);
|
|
3191
3205
|
}
|
|
3192
3206
|
.ncua-select-dropdown__option:hover, .ncua-select-dropdown__option--focused {
|
|
3193
3207
|
background-color: var(--gray-50);
|
|
@@ -3195,10 +3209,15 @@ button {
|
|
|
3195
3209
|
.ncua-select-dropdown__option--selected {
|
|
3196
3210
|
background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24' stroke='none'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M20.707 5.293a1 1 0 0 1 0 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L9 15.586 19.293 5.293a1 1 0 0 1 1.414 0' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 8px center;
|
|
3197
3211
|
}
|
|
3198
|
-
.ncua-select-
|
|
3212
|
+
.ncua-select-dropdown__option-icon {
|
|
3213
|
+
display: flex;
|
|
3214
|
+
align-items: center;
|
|
3215
|
+
justify-content: center;
|
|
3216
|
+
color: currentColor;
|
|
3217
|
+
}
|
|
3218
|
+
.ncua-select-dropdown__option-text {
|
|
3199
3219
|
display: inline-block;
|
|
3200
3220
|
max-width: 327px;
|
|
3201
|
-
color: var(--gray-600);
|
|
3202
3221
|
white-space: nowrap;
|
|
3203
3222
|
overflow: hidden;
|
|
3204
3223
|
text-overflow: ellipsis;
|
|
@@ -3274,6 +3293,17 @@ button {
|
|
|
3274
3293
|
content: attr(data-placeholder);
|
|
3275
3294
|
color: var(--gray-400);
|
|
3276
3295
|
}
|
|
3296
|
+
.ncua-selectbox__value-container {
|
|
3297
|
+
display: flex;
|
|
3298
|
+
align-items: center;
|
|
3299
|
+
gap: 4px;
|
|
3300
|
+
}
|
|
3301
|
+
.ncua-selectbox__value-icon {
|
|
3302
|
+
display: flex;
|
|
3303
|
+
align-items: center;
|
|
3304
|
+
justify-content: center;
|
|
3305
|
+
color: currentColor;
|
|
3306
|
+
}
|
|
3277
3307
|
.ncua-selectbox__chevron {
|
|
3278
3308
|
position: absolute;
|
|
3279
3309
|
right: 8px;
|