origam 2.17.1 → 2.18.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/CHANGELOG.md +690 -1
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark.css +119 -20
- package/dist/src/assets/css/tokens/light.css +46 -10
- package/dist/src/assets/locales/en.json +21 -6
- package/dist/src/assets/locales/fr.json +21 -6
- package/dist/src/assets/scss/main.scss +10 -2
- package/dist/src/assets/scss/tokens/_dark.scss +2843 -10
- package/dist/src/assets/scss/tokens/_light.scss +46 -10
- package/dist/src/components/Alert/OrigamAlert.vue +6 -6
- package/dist/src/components/Avatar/OrigamAvatar.vue +15 -2
- package/dist/src/components/Badge/OrigamBadge.vue +7 -7
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +23 -4
- package/dist/src/components/Btn/OrigamBtn.vue +21 -3
- package/dist/src/components/Btn/OrigamBtnGroup.vue +1 -1
- package/dist/src/components/Calendar/OrigamCalendar.vue +1 -1
- package/dist/src/components/Card/OrigamCard.vue +2 -0
- package/dist/src/components/Card/OrigamCardHeader.vue +7 -7
- package/dist/src/components/Carousel/OrigamCarousel.vue +14 -1
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +1 -1
- package/dist/src/components/Chart/OrigamChartBullet.vue +3 -2
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +2 -2
- package/dist/src/components/Chart/OrigamChartCartesian.vue +49 -4
- package/dist/src/components/Chart/OrigamChartLegend.vue +39 -18
- package/dist/src/components/Chart/OrigamChartPareto.vue +7 -1
- package/dist/src/components/Chart/OrigamChartPictorial.vue +2 -2
- package/dist/src/components/Chart/OrigamChartRadar.vue +3 -1
- package/dist/src/components/Chart/OrigamChartSparkline.vue +3 -1
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +2 -1
- package/dist/src/components/Checkbox/OrigamCheckbox.vue +2 -0
- package/dist/src/components/Checkbox/OrigamCheckboxGroup.vue +36 -11
- package/dist/src/components/Chip/OrigamChip.vue +19 -4
- package/dist/src/components/Code/OrigamCode.vue +20 -3
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +30 -5
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +3 -3
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +6 -6
- package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +0 -4
- package/dist/src/components/DataList/OrigamDataList.vue +2 -0
- package/dist/src/components/DataList/OrigamDataText.vue +6 -6
- package/dist/src/components/DataList/OrigamDataTitle.vue +6 -6
- package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCell.vue +4 -1
- package/dist/src/components/DatePicker/OrigamDatePicker.vue +2 -0
- package/dist/src/components/DatePicker/OrigamDatePickerHeader.vue +6 -6
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +21 -1
- package/dist/src/components/Dialog/OrigamDialog.vue +25 -0
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +6 -0
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +2 -0
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +6 -6
- package/dist/src/components/Field/OrigamField.vue +47 -15
- package/dist/src/components/FileField/OrigamFileField.vue +5 -1
- package/dist/src/components/Icon/OrigamSvgIcon.vue +3 -1
- package/dist/src/components/Img/OrigamImg.vue +9 -2
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +34 -18
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +46 -5
- package/dist/src/components/Input/OrigamInput.vue +6 -6
- package/dist/src/components/List/OrigamListGroup.vue +4 -0
- package/dist/src/components/List/OrigamListItem.vue +68 -4
- package/dist/src/components/Masonry/OrigamMasonry.vue +18 -2
- package/dist/src/components/Menu/OrigamMenu.vue +79 -9
- package/dist/src/components/NumberField/OrigamNumberField.vue +13 -3
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +35 -11
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +5 -1
- package/dist/src/components/Radio/OrigamRadio.vue +2 -0
- package/dist/src/components/Radio/OrigamRadioGroup.vue +36 -11
- package/dist/src/components/RatingField/OrigamRatingField.vue +58 -7
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +78 -30
- package/dist/src/components/Select/OrigamSelect.vue +44 -21
- package/dist/src/components/SliderField/OrigamSliderField.vue +20 -10
- package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +1 -1
- package/dist/src/components/Switch/OrigamSwitch.vue +2 -0
- package/dist/src/components/Tabs/OrigamTab.vue +7 -4
- package/dist/src/components/Tabs/OrigamTabPanel.vue +4 -2
- package/dist/src/components/Tabs/OrigamTabs.vue +7 -5
- package/dist/src/components/TextField/OrigamTextField.vue +5 -1
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +5 -1
- package/dist/src/components/Transition/OrigamExpandX.vue +19 -3
- package/dist/src/components/Transition/OrigamExpandY.vue +19 -3
- package/dist/src/components/Transition/OrigamTranslateScale.vue +26 -4
- package/dist/src/components/Video/OrigamVideo.vue +3 -2
- package/dist/src/components/Window/OrigamWindow.vue +20 -3
- package/dist/src/composables/Commons/accessibleCommand.composable.cjs +26 -0
- package/dist/src/composables/Commons/accessibleCommand.composable.d.ts +78 -0
- package/dist/src/composables/Commons/accessibleCommand.composable.js +20 -0
- package/dist/src/composables/Commons/activator.composable.cjs +10 -1
- package/dist/src/composables/Commons/activator.composable.js +11 -2
- package/dist/src/composables/Commons/adjacent.composable.cjs +17 -0
- package/dist/src/composables/Commons/adjacent.composable.d.ts +12 -0
- package/dist/src/composables/Commons/adjacent.composable.js +17 -0
- package/dist/src/composables/Commons/adjacentInner.composable.cjs +20 -0
- package/dist/src/composables/Commons/adjacentInner.composable.d.ts +24 -5
- package/dist/src/composables/Commons/adjacentInner.composable.js +20 -0
- package/dist/src/composables/Commons/audio.composable.cjs +14 -1
- package/dist/src/composables/Commons/audio.composable.js +14 -1
- package/dist/src/composables/Commons/backButton.composable.cjs +3 -1
- package/dist/src/composables/Commons/backButton.composable.js +3 -1
- package/dist/src/composables/Commons/border.composable.d.ts +13 -0
- package/dist/src/composables/Commons/colorEffect.composable.cjs +58 -46
- package/dist/src/composables/Commons/colorEffect.composable.d.ts +10 -5
- package/dist/src/composables/Commons/colorEffect.composable.js +70 -46
- package/dist/src/composables/Commons/createLayout.composable.cjs +21 -12
- package/dist/src/composables/Commons/createLayout.composable.js +21 -12
- package/dist/src/composables/Commons/delay.composable.d.ts +16 -0
- package/dist/src/composables/Commons/dimension.composable.d.ts +11 -0
- package/dist/src/composables/Commons/elevation.composable.cjs +6 -2
- package/dist/src/composables/Commons/elevation.composable.d.ts +37 -1
- package/dist/src/composables/Commons/elevation.composable.js +7 -2
- package/dist/src/composables/Commons/goTo.composable.cjs +4 -2
- package/dist/src/composables/Commons/goTo.composable.js +5 -3
- package/dist/src/composables/Commons/group.composable.cjs +14 -14
- package/dist/src/composables/Commons/group.composable.js +14 -14
- package/dist/src/composables/Commons/hotkey.composable.d.ts +18 -7
- package/dist/src/composables/Commons/hydration.composable.d.ts +8 -0
- package/dist/src/composables/Commons/link.composable.d.ts +20 -0
- package/dist/src/composables/Commons/locationStrategies.composable.d.ts +17 -0
- package/dist/src/composables/Commons/message.composable.d.ts +19 -5
- package/dist/src/composables/Commons/position.composable.d.ts +17 -6
- package/dist/src/composables/Commons/refs.composable.d.ts +11 -5
- package/dist/src/composables/Commons/rounded.composable.d.ts +11 -1
- package/dist/src/composables/Commons/scrolling.composable.cjs +15 -12
- package/dist/src/composables/Commons/scrolling.composable.js +15 -12
- package/dist/src/composables/Commons/size.composable.d.ts +15 -0
- package/dist/src/composables/Commons/ssrBoot.composable.cjs +9 -1
- package/dist/src/composables/Commons/ssrBoot.composable.js +10 -2
- package/dist/src/composables/Commons/stack.composable.cjs +13 -1
- package/dist/src/composables/Commons/stack.composable.js +13 -1
- package/dist/src/composables/Commons/theme-props-resolver.composable.cjs +41 -32
- package/dist/src/composables/Commons/theme-props-resolver.composable.js +41 -32
- package/dist/src/composables/Commons/validation.composable.cjs +3 -3
- package/dist/src/composables/Commons/validation.composable.js +3 -3
- package/dist/src/composables/Commons/virtual.composable.cjs +24 -8
- package/dist/src/composables/Commons/virtual.composable.js +24 -8
- package/dist/src/composables/Masonry/masonry.composable.cjs +18 -11
- package/dist/src/composables/Masonry/masonry.composable.js +18 -11
- package/dist/src/composables/Parallax/parallax.composable.cjs +1 -1
- package/dist/src/composables/Parallax/parallax.composable.js +1 -1
- package/dist/src/composables/index.cjs +36 -0
- package/dist/src/composables/index.d.ts +3 -0
- package/dist/src/composables/index.js +3 -0
- package/dist/src/consts/Chart/chart-cartesian.const.cjs +5 -2
- package/dist/src/consts/Chart/chart-cartesian.const.d.ts +42 -0
- package/dist/src/consts/Chart/chart-cartesian.const.js +3 -0
- package/dist/src/consts/Commons/elevation.const.cjs +5 -1
- package/dist/src/consts/Commons/elevation.const.d.ts +52 -2
- package/dist/src/consts/Commons/elevation.const.js +4 -0
- package/dist/src/consts/Commons/ripple.const.cjs +13 -3
- package/dist/src/consts/Commons/ripple.const.js +13 -3
- package/dist/src/consts/RatingField/rating-field.const.cjs +10 -0
- package/dist/src/consts/RatingField/rating-field.const.d.ts +36 -0
- package/dist/src/consts/RatingField/rating-field.const.js +12 -0
- package/dist/src/consts/index.cjs +11 -0
- package/dist/src/consts/index.d.ts +1 -0
- package/dist/src/consts/index.js +1 -0
- package/dist/src/directives/ClickOutside/clickOutside.directive.cjs +2 -0
- package/dist/src/directives/ClickOutside/clickOutside.directive.js +2 -0
- package/dist/src/directives/Ripple/ripple.directive.cjs +2 -0
- package/dist/src/directives/Ripple/ripple.directive.js +2 -0
- package/dist/src/enums/Commons/color.enum.cjs +0 -1
- package/dist/src/enums/Commons/color.enum.d.ts +14 -5
- package/dist/src/enums/Commons/color.enum.js +0 -1
- package/dist/src/enums/Sheet/sheet.enum.d.ts +1 -1
- package/dist/src/interfaces/Chart/chart-cartesian.interface.d.ts +6 -2
- package/dist/src/interfaces/Commons/activator.interface.d.ts +3 -2
- package/dist/src/interfaces/Commons/adjacent.interface.d.ts +29 -0
- package/dist/src/interfaces/Commons/group.interface.d.ts +13 -2
- package/dist/src/interfaces/Commons/ripple.interface.d.ts +16 -0
- package/dist/src/interfaces/Commons/scroll.interface.d.ts +3 -2
- package/dist/src/interfaces/DataTable/data-table-header.interface.d.ts +2 -2
- package/dist/src/interfaces/DatePicker/date-picker-month.interface.d.ts +2 -1
- package/dist/src/interfaces/Menu/menu.interface.d.ts +28 -1
- package/dist/src/interfaces/OtpInputField/otp-input-field.interface.d.ts +21 -1
- package/dist/src/interfaces/RatingField/rating-field-item.interface.d.ts +16 -1
- package/dist/src/interfaces/index.cjs +11 -0
- package/dist/src/interfaces/index.d.ts +1 -0
- package/dist/src/interfaces/index.js +1 -0
- package/dist/src/themes/origam.theme.cjs +8 -14
- package/dist/src/themes/origam.theme.js +6 -8
- package/dist/src/types/Commons/color.type.d.ts +4 -3
- package/dist/src/types/Commons/commons.type.d.ts +33 -0
- package/dist/src/types/Commons/theme.type.d.ts +2 -1
- package/dist/src/types/Sheet/sheet.type.d.ts +2 -1
- package/dist/src/types/index.cjs +22 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/index.js +2 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/dist/src/utils/Commons/a11y.util.cjs +35 -0
- package/dist/src/utils/Commons/a11y.util.d.ts +63 -0
- package/dist/src/utils/Commons/a11y.util.js +33 -0
- package/dist/src/utils/Commons/clickOutside.util.cjs +5 -1
- package/dist/src/utils/Commons/clickOutside.util.js +5 -1
- package/dist/src/utils/Commons/color.util.cjs +10 -5
- package/dist/src/utils/Commons/color.util.d.ts +34 -5
- package/dist/src/utils/Commons/color.util.js +9 -5
- package/dist/src/utils/Commons/goTo.util.cjs +31 -14
- package/dist/src/utils/Commons/goTo.util.d.ts +1 -1
- package/dist/src/utils/Commons/goTo.util.js +31 -16
- package/dist/src/utils/Commons/location.util.cjs +18 -3
- package/dist/src/utils/Commons/location.util.js +18 -3
- package/dist/src/utils/Commons/ripple.util.cjs +5 -1
- package/dist/src/utils/Commons/ripple.util.js +5 -1
- package/dist/src/utils/index.cjs +11 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.js +1 -0
- package/package.json +13 -2
- package/dist/src/types/Commons/locale.type.cjs +0 -1
- package/dist/src/types/Commons/locale.type.d.ts +0 -0
- package/dist/src/types/Commons/locale.type.js +0 -0
|
@@ -28,10 +28,25 @@ export interface IRatingFieldItemProps extends ICommonsComponentProps, ITagProps
|
|
|
28
28
|
length?: number | string;
|
|
29
29
|
}
|
|
30
30
|
/** Emits fired by `<OrigamRatingFieldItem>` — click + hover surface
|
|
31
|
-
* (pointer enter / leave drive the half-rating preview)
|
|
31
|
+
* (pointer enter / leave drive the half-rating preview), plus the two
|
|
32
|
+
* KEYBOARD channels added by #812.
|
|
33
|
+
*
|
|
34
|
+
* `change` is the native `<input type="radio">` change event. It is the only
|
|
35
|
+
* signal a keyboard selection produces: the browser's own radio-group
|
|
36
|
+
* navigation (arrows, `Space`) fires `click` + `change` on the newly selected
|
|
37
|
+
* radio and never touches the star `<div>` the pointer path goes through. Not
|
|
38
|
+
* forwarding it is exactly why arrows moved nothing before #812.
|
|
39
|
+
*
|
|
40
|
+
* `keydown` carries the keys the platform does NOT implement for a radio
|
|
41
|
+
* group — measured in Chromium: `Home` and `End` are plain no-ops natively,
|
|
42
|
+
* so the WAI-ARIA radiogroup pattern's "go to first / last" has to be
|
|
43
|
+
* written. The parent also uses this channel to cancel the native arrow /
|
|
44
|
+
* `Space` default while `readonly`. */
|
|
32
45
|
export interface IRatingFieldItemEmits extends IClickEmits {
|
|
33
46
|
(e: 'mouseenter', event: MouseEvent): void;
|
|
34
47
|
(e: 'mouseleave', event: MouseEvent): void;
|
|
48
|
+
(e: 'change', event: Event): void;
|
|
49
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
35
50
|
}
|
|
36
51
|
/** Slot signatures for `<OrigamRatingFieldItem>`. */
|
|
37
52
|
export interface IRatingFieldItemSlots {
|
|
@@ -894,6 +894,17 @@ Object.keys(_margin).forEach(function (key) {
|
|
|
894
894
|
}
|
|
895
895
|
});
|
|
896
896
|
});
|
|
897
|
+
var _message = require("./Commons/message.interface.cjs");
|
|
898
|
+
Object.keys(_message).forEach(function (key) {
|
|
899
|
+
if (key === "default" || key === "__esModule") return;
|
|
900
|
+
if (key in exports && exports[key] === _message[key]) return;
|
|
901
|
+
Object.defineProperty(exports, key, {
|
|
902
|
+
enumerable: true,
|
|
903
|
+
get: function () {
|
|
904
|
+
return _message[key];
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
});
|
|
897
908
|
var _nested = require("./Commons/nested.interface.cjs");
|
|
898
909
|
Object.keys(_nested).forEach(function (key) {
|
|
899
910
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -79,6 +79,7 @@ export * from './Commons/loader.interface';
|
|
|
79
79
|
export * from './Commons/location.interface';
|
|
80
80
|
export * from './Commons/locale.interface';
|
|
81
81
|
export * from './Commons/margin.interface';
|
|
82
|
+
export * from './Commons/message.interface';
|
|
82
83
|
export * from './Commons/nested.interface';
|
|
83
84
|
export * from './Commons/padding.interface';
|
|
84
85
|
export * from './Commons/position.interface';
|
|
@@ -79,6 +79,7 @@ export * from "./Commons/loader.interface.js";
|
|
|
79
79
|
export * from "./Commons/location.interface.js";
|
|
80
80
|
export * from "./Commons/locale.interface.js";
|
|
81
81
|
export * from "./Commons/margin.interface.js";
|
|
82
|
+
export * from "./Commons/message.interface.js";
|
|
82
83
|
export * from "./Commons/nested.interface.js";
|
|
83
84
|
export * from "./Commons/padding.interface.js";
|
|
84
85
|
export * from "./Commons/position.interface.js";
|
|
@@ -74,18 +74,18 @@ const origamLightTheme = exports.origamLightTheme = {
|
|
|
74
74
|
border: "#2563eb"
|
|
75
75
|
},
|
|
76
76
|
success: {
|
|
77
|
-
bg: "#
|
|
77
|
+
bg: "#15803d",
|
|
78
78
|
bgSubtle: "rgba(22, 163, 74, 0.08)",
|
|
79
79
|
fg: "#ffffff",
|
|
80
80
|
fgSubtle: "#15803d",
|
|
81
|
-
border: "#
|
|
81
|
+
border: "#15803d"
|
|
82
82
|
},
|
|
83
83
|
warning: {
|
|
84
|
-
bg: "#
|
|
84
|
+
bg: "#b45309",
|
|
85
85
|
bgSubtle: "rgba(217, 119, 6, 0.08)",
|
|
86
86
|
fg: "#ffffff",
|
|
87
87
|
fgSubtle: "#b45309",
|
|
88
|
-
border: "#
|
|
88
|
+
border: "#b45309"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
},
|
|
@@ -341,9 +341,6 @@ const origamLightTheme = exports.origamLightTheme = {
|
|
|
341
341
|
tag: "div",
|
|
342
342
|
density: "compact"
|
|
343
343
|
},
|
|
344
|
-
"origam-list-item": {
|
|
345
|
-
density: "compact"
|
|
346
|
-
},
|
|
347
344
|
"origam-loader": {
|
|
348
345
|
tag: "span"
|
|
349
346
|
},
|
|
@@ -536,8 +533,8 @@ const origamDarkTheme = exports.origamDarkTheme = {
|
|
|
536
533
|
},
|
|
537
534
|
action: {
|
|
538
535
|
primary: {
|
|
539
|
-
bg: "#
|
|
540
|
-
bgHover: "#
|
|
536
|
+
bg: "#7c3aed",
|
|
537
|
+
bgHover: "#6d28d9",
|
|
541
538
|
bgDisabled: "#262626",
|
|
542
539
|
bgSubtle: "rgba(124, 58, 237, 0.14)",
|
|
543
540
|
fg: "#ffffff",
|
|
@@ -583,14 +580,14 @@ const origamDarkTheme = exports.origamDarkTheme = {
|
|
|
583
580
|
border: "#60a5fa"
|
|
584
581
|
},
|
|
585
582
|
success: {
|
|
586
|
-
bg: "#
|
|
583
|
+
bg: "#15803d",
|
|
587
584
|
bgSubtle: "rgba(22, 163, 74, 0.12)",
|
|
588
585
|
fg: "#ffffff",
|
|
589
586
|
fgSubtle: "#6ee7b7",
|
|
590
587
|
border: "#6ee7b7"
|
|
591
588
|
},
|
|
592
589
|
warning: {
|
|
593
|
-
bg: "#
|
|
590
|
+
bg: "#b45309",
|
|
594
591
|
bgSubtle: "rgba(217, 119, 6, 0.12)",
|
|
595
592
|
fg: "#ffffff",
|
|
596
593
|
fgSubtle: "#fbbf24",
|
|
@@ -750,9 +747,6 @@ const origamDarkTheme = exports.origamDarkTheme = {
|
|
|
750
747
|
tag: "div",
|
|
751
748
|
density: "compact"
|
|
752
749
|
},
|
|
753
|
-
"origam-list-item": {
|
|
754
|
-
density: "compact"
|
|
755
|
-
},
|
|
756
750
|
"origam-loader": {
|
|
757
751
|
tag: "span"
|
|
758
752
|
},
|
|
@@ -55,8 +55,8 @@ export const origamLightTheme = {
|
|
|
55
55
|
feedback: {
|
|
56
56
|
danger: { bg: "#dc2626", bgSubtle: "rgba(220, 38, 38, 0.08)", fg: "#ffffff", fgSubtle: "#b91c1c", border: "#dc2626" },
|
|
57
57
|
info: { bg: "#2563eb", bgSubtle: "rgba(37, 99, 235, 0.08)", fg: "#ffffff", fgSubtle: "#1d4ed8", border: "#2563eb" },
|
|
58
|
-
success: { bg: "#
|
|
59
|
-
warning: { bg: "#
|
|
58
|
+
success: { bg: "#15803d", bgSubtle: "rgba(22, 163, 74, 0.08)", fg: "#ffffff", fgSubtle: "#15803d", border: "#15803d" },
|
|
59
|
+
warning: { bg: "#b45309", bgSubtle: "rgba(217, 119, 6, 0.08)", fg: "#ffffff", fgSubtle: "#b45309", border: "#b45309" }
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
rounded: {
|
|
@@ -191,7 +191,6 @@ export const origamLightTheme = {
|
|
|
191
191
|
"origam-input": { density: "default" },
|
|
192
192
|
"origam-kbd": { variant: "outlined" },
|
|
193
193
|
"origam-list": { tag: "div", density: "compact" },
|
|
194
|
-
"origam-list-item": { density: "compact" },
|
|
195
194
|
"origam-loader": { tag: "span" },
|
|
196
195
|
"origam-main": { tag: "main" },
|
|
197
196
|
"origam-masonry": { tag: "div", gap: "md", align: "top" },
|
|
@@ -262,8 +261,8 @@ export const origamDarkTheme = {
|
|
|
262
261
|
},
|
|
263
262
|
action: {
|
|
264
263
|
primary: {
|
|
265
|
-
bg: "#
|
|
266
|
-
bgHover: "#
|
|
264
|
+
bg: "#7c3aed",
|
|
265
|
+
bgHover: "#6d28d9",
|
|
267
266
|
bgDisabled: "#262626",
|
|
268
267
|
bgSubtle: "rgba(124, 58, 237, 0.14)",
|
|
269
268
|
fg: "#ffffff",
|
|
@@ -296,8 +295,8 @@ export const origamDarkTheme = {
|
|
|
296
295
|
feedback: {
|
|
297
296
|
danger: { bg: "#dc2626", bgSubtle: "rgba(220, 38, 38, 0.12)", fg: "#ffffff", fgSubtle: "#f87171", border: "#f87171" },
|
|
298
297
|
info: { bg: "#2563eb", bgSubtle: "rgba(37, 99, 235, 0.12)", fg: "#ffffff", fgSubtle: "#60a5fa", border: "#60a5fa" },
|
|
299
|
-
success: { bg: "#
|
|
300
|
-
warning: { bg: "#
|
|
298
|
+
success: { bg: "#15803d", bgSubtle: "rgba(22, 163, 74, 0.12)", fg: "#ffffff", fgSubtle: "#6ee7b7", border: "#6ee7b7" },
|
|
299
|
+
warning: { bg: "#b45309", bgSubtle: "rgba(217, 119, 6, 0.12)", fg: "#ffffff", fgSubtle: "#fbbf24", border: "#fbbf24" }
|
|
301
300
|
}
|
|
302
301
|
},
|
|
303
302
|
shadow: {
|
|
@@ -353,7 +352,6 @@ export const origamDarkTheme = {
|
|
|
353
352
|
"origam-input": { density: "default" },
|
|
354
353
|
"origam-kbd": { variant: "outlined" },
|
|
355
354
|
"origam-list": { tag: "div", density: "compact" },
|
|
356
|
-
"origam-list-item": { density: "compact" },
|
|
357
355
|
"origam-loader": { tag: "span" },
|
|
358
356
|
"origam-main": { tag: "main" },
|
|
359
357
|
"origam-masonry": { tag: "div", gap: "md", align: "top" },
|
|
@@ -44,12 +44,13 @@ export type TColorType = string | number | THSVA | TRGBA | THSLA;
|
|
|
44
44
|
/**
|
|
45
45
|
* Interaction role for state-aware color resolution.
|
|
46
46
|
*
|
|
47
|
-
* Used by `useColorEffect` (and
|
|
48
|
-
* rung / math-derivation for a given visual state:
|
|
47
|
+
* Used by `useColorEffect` / `useStateEffect` (and their helpers) to pick
|
|
48
|
+
* the right token rung / math-derivation for a given visual state:
|
|
49
49
|
*
|
|
50
50
|
* • `default` → resting bgColor (no transformation)
|
|
51
51
|
* • `hover` → cascading `var(bgHover, color-mix(bg, black 20%))`
|
|
52
52
|
* • `active` → cascading `var(bgActive, color-mix(bg, black 30%))`
|
|
53
|
-
*
|
|
53
|
+
*
|
|
54
|
+
* No `disabled` rung — see `BG_FG_ROLE` (#823).
|
|
54
55
|
*/
|
|
55
56
|
export type TBgFgRole = `${BG_FG_ROLE}`;
|
|
@@ -3,6 +3,39 @@ import { CLIENT_POSITION, FOCUS_LOCATION } from '../../enums/Commons/commons.enu
|
|
|
3
3
|
import { IOrigamPluginOptionsObject } from '../../interfaces/Commons/commons.interface';
|
|
4
4
|
export type TNotAUnion<T> = [T] extends [infer U] ? _TNotAUnion<U, U> : never;
|
|
5
5
|
export type _TNotAUnion<T, U> = U extends any ? [T] extends [U] ? unknown : never : never;
|
|
6
|
+
/*********************************************************
|
|
7
|
+
* TAnyString — `string` qui n'absorbe pas ses litteraux voisins
|
|
8
|
+
*
|
|
9
|
+
* @description
|
|
10
|
+
* A utiliser partout ou une prop accepte un vocabulaire documente ET une
|
|
11
|
+
* chaine arbitraire (extensions de marque, noms de theme maison, cles
|
|
12
|
+
* definies par le consommateur) : `'a' | 'b' | TAnyString`.
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* LE PROBLEME. `'a' | 'b' | string` est reduit par le compilateur a `string`
|
|
16
|
+
* tout court, ce qui detruit l'autocompletion de `'a'` / `'b'` — l'union ne
|
|
17
|
+
* se souvient plus qu'ils ont ete nommes. Mesure, `tsc --strict` :
|
|
18
|
+
* @description
|
|
19
|
+
* type C = 'a' | 'b' | string const c: C = 42
|
|
20
|
+
* -> Type 'number' is not assignable to type 'string'. // effondree
|
|
21
|
+
* @description
|
|
22
|
+
* type E = 'a' | 'b' | (string & Len) const e: E = 42
|
|
23
|
+
* -> Type '42' is not assignable to type 'E'. // union tenue
|
|
24
|
+
*
|
|
25
|
+
* @description
|
|
26
|
+
* Intersecter `string` avec n'importe quel type objet differe cette
|
|
27
|
+
* reduction : les litteraux survivent et toute chaine reste assignable.
|
|
28
|
+
* @description
|
|
29
|
+
* L'idiome s'ecrit d'ordinaire `string & {}`, mais une intersection avec un
|
|
30
|
+
* type SANS MEMBRE est ailleurs un vrai defaut, et SonarQube la remonte en
|
|
31
|
+
* BUG/CRITICAL (« Remove this type without members or change this type
|
|
32
|
+
* intersection » — #771). `{ readonly length: number }` est le meme tour
|
|
33
|
+
* avec un membre que TOUTE chaine possede deja : comportement identique,
|
|
34
|
+
* plus rien de vide a signaler.
|
|
35
|
+
********************************************************/
|
|
36
|
+
export type TAnyString = string & {
|
|
37
|
+
readonly length: number;
|
|
38
|
+
};
|
|
6
39
|
export type TEventProp<T extends Array<any> = Array<any>, F = (...args: T) => void> = F;
|
|
7
40
|
export type TInnerVal<T> = T extends Array<any> ? Readonly<T> : T;
|
|
8
41
|
export type TSelectItemKey<T = Record<string, any>> = boolean | null | undefined | string | Readonly<Array<(string | number)>> | ((item: T, fallback?: any) => any);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { COLOR_MODE } from '../../enums/Commons/theme.enum';
|
|
2
|
+
import type { TAnyString } from './commons.type';
|
|
2
3
|
/**
|
|
3
4
|
* Runtime theme (brand) name applied to `<html data-theme="…">` (or to a
|
|
4
5
|
* sub-tree via `<OrigamThemeProvider>`).
|
|
@@ -13,7 +14,7 @@ import { COLOR_MODE } from '../../enums/Commons/theme.enum';
|
|
|
13
14
|
* - any other string is treated as a custom theme (e.g. `'brand-a'`) — the
|
|
14
15
|
* matching CSS file must be loaded by the consumer.
|
|
15
16
|
*/
|
|
16
|
-
export type TTheme = `${COLOR_MODE}` |
|
|
17
|
+
export type TTheme = `${COLOR_MODE}` | TAnyString;
|
|
17
18
|
/**
|
|
18
19
|
* Concrete (resolved) theme — what `data-theme` actually equals after
|
|
19
20
|
* resolving `'auto'`. Useful for components that need to know the
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import OrigamSheet from '../../components/Sheet/OrigamSheet.vue';
|
|
2
2
|
import { SHEET_SNAP_ID } from '../../enums/Sheet/sheet.enum';
|
|
3
|
+
import type { TAnyString } from '../Commons/commons.type';
|
|
3
4
|
export type TOrigamSheet = InstanceType<typeof OrigamSheet>;
|
|
4
5
|
/**
|
|
5
6
|
* Sheet bottom-swipe snap-point typings.
|
|
@@ -18,7 +19,7 @@ export type TOrigamSheet = InstanceType<typeof OrigamSheet>;
|
|
|
18
19
|
* `sheetSwipe.composable.spec.ts`, the `Bottom — swipeable` story Variant
|
|
19
20
|
* and `tests/e2e/sheet.spec.ts`.
|
|
20
21
|
*/
|
|
21
|
-
export type TSheetSnapId = `${SHEET_SNAP_ID}` |
|
|
22
|
+
export type TSheetSnapId = `${SHEET_SNAP_ID}` | TAnyString;
|
|
22
23
|
export type TSheetSnapPoint = {
|
|
23
24
|
id: TSheetSnapId;
|
|
24
25
|
height: number | string;
|
package/dist/src/types/index.cjs
CHANGED
|
@@ -47,6 +47,17 @@ Object.keys(_avatar).forEach(function (key) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
+
var _avatarGroup = require("./Avatar/avatar-group.type.cjs");
|
|
51
|
+
Object.keys(_avatarGroup).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _avatarGroup[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _avatarGroup[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
50
61
|
var _badge = require("./Badge/badge.type.cjs");
|
|
51
62
|
Object.keys(_badge).forEach(function (key) {
|
|
52
63
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -2038,6 +2049,17 @@ Object.keys(_snackbarGroup).forEach(function (key) {
|
|
|
2038
2049
|
}
|
|
2039
2050
|
});
|
|
2040
2051
|
});
|
|
2052
|
+
var _systemBar = require("./SystemBar/system-bar.type.cjs");
|
|
2053
|
+
Object.keys(_systemBar).forEach(function (key) {
|
|
2054
|
+
if (key === "default" || key === "__esModule") return;
|
|
2055
|
+
if (key in exports && exports[key] === _systemBar[key]) return;
|
|
2056
|
+
Object.defineProperty(exports, key, {
|
|
2057
|
+
enumerable: true,
|
|
2058
|
+
get: function () {
|
|
2059
|
+
return _systemBar[key];
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
});
|
|
2041
2063
|
var _commandPalette = require("./CommandPalette/command-palette.type.cjs");
|
|
2042
2064
|
Object.keys(_commandPalette).forEach(function (key) {
|
|
2043
2065
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -2,6 +2,7 @@ export * from './Alert/alert.type';
|
|
|
2
2
|
export * from './App/app.type';
|
|
3
3
|
export * from './App/app-bar.type';
|
|
4
4
|
export * from './Avatar/avatar.type';
|
|
5
|
+
export * from './Avatar/avatar-group.type';
|
|
5
6
|
export * from './Badge/badge.type';
|
|
6
7
|
export * from './Blockquote/blockquote.type';
|
|
7
8
|
export * from './BottomNav/bottom-nav.type';
|
|
@@ -183,6 +184,7 @@ export * from './SliderField/slider-field-track.type';
|
|
|
183
184
|
export * from './Snackbar/snackbar.type';
|
|
184
185
|
export * from './Snackbar/snackbar-item.type';
|
|
185
186
|
export * from './Snackbar/snackbar-group.type';
|
|
187
|
+
export * from './SystemBar/system-bar.type';
|
|
186
188
|
export * from './CommandPalette/command-palette.type';
|
|
187
189
|
export * from './Switch/switch.type';
|
|
188
190
|
export * from './Switch/switch-track.type';
|
package/dist/src/types/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./Alert/alert.type.js";
|
|
|
2
2
|
export * from "./App/app.type.js";
|
|
3
3
|
export * from "./App/app-bar.type.js";
|
|
4
4
|
export * from "./Avatar/avatar.type.js";
|
|
5
|
+
export * from "./Avatar/avatar-group.type.js";
|
|
5
6
|
export * from "./Badge/badge.type.js";
|
|
6
7
|
export * from "./Blockquote/blockquote.type.js";
|
|
7
8
|
export * from "./BottomNav/bottom-nav.type.js";
|
|
@@ -183,6 +184,7 @@ export * from "./SliderField/slider-field-track.type.js";
|
|
|
183
184
|
export * from "./Snackbar/snackbar.type.js";
|
|
184
185
|
export * from "./Snackbar/snackbar-item.type.js";
|
|
185
186
|
export * from "./Snackbar/snackbar-group.type.js";
|
|
187
|
+
export * from "./SystemBar/system-bar.type.js";
|
|
186
188
|
export * from "./CommandPalette/command-palette.type.js";
|
|
187
189
|
export * from "./Switch/switch.type.js";
|
|
188
190
|
export * from "./Switch/switch-track.type.js";
|