origam 2.37.34 → 2.37.35
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 +17 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark.css +4 -0
- package/dist/src/assets/css/tokens/light.css +2 -0
- package/dist/src/assets/scss/tokens/_dark.scss +4 -0
- package/dist/src/assets/scss/tokens/_light.scss +2 -0
- package/dist/src/components/Alert/OrigamAlert.vue +4 -4
- package/dist/src/components/Badge/OrigamBadge.vue +4 -4
- package/dist/src/components/Btn/OrigamBtn.vue +2 -2
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -306,6 +306,8 @@
|
|
|
306
306
|
--origam-btn---density: 0px;
|
|
307
307
|
--origam-btn---width: auto;
|
|
308
308
|
--origam-btn---min-width: 64px;
|
|
309
|
+
--origam-btn__content---justify-content: center;
|
|
310
|
+
--origam-btn__content---text-align: center;
|
|
309
311
|
--origam-btn---max-width: 100%;
|
|
310
312
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
311
313
|
--origam-btn---max-height: 100%;
|
|
@@ -3352,6 +3354,8 @@
|
|
|
3352
3354
|
--origam-btn---density: 0px;
|
|
3353
3355
|
--origam-btn---width: auto;
|
|
3354
3356
|
--origam-btn---min-width: 64px;
|
|
3357
|
+
--origam-btn__content---justify-content: center;
|
|
3358
|
+
--origam-btn__content---text-align: center;
|
|
3355
3359
|
--origam-btn---max-width: 100%;
|
|
3356
3360
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
3357
3361
|
--origam-btn---max-height: 100%;
|
|
@@ -206,6 +206,8 @@
|
|
|
206
206
|
--origam-btn---density: 0px;
|
|
207
207
|
--origam-btn---width: auto;
|
|
208
208
|
--origam-btn---min-width: 64px;
|
|
209
|
+
--origam-btn__content---justify-content: center;
|
|
210
|
+
--origam-btn__content---text-align: center;
|
|
209
211
|
--origam-btn---max-width: 100%;
|
|
210
212
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
211
213
|
--origam-btn---max-height: 100%;
|
|
@@ -306,6 +306,8 @@
|
|
|
306
306
|
--origam-btn---density: 0px;
|
|
307
307
|
--origam-btn---width: auto;
|
|
308
308
|
--origam-btn---min-width: 64px;
|
|
309
|
+
--origam-btn__content---justify-content: center;
|
|
310
|
+
--origam-btn__content---text-align: center;
|
|
309
311
|
--origam-btn---max-width: 100%;
|
|
310
312
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
311
313
|
--origam-btn---max-height: 100%;
|
|
@@ -3352,6 +3354,8 @@
|
|
|
3352
3354
|
--origam-btn---density: 0px;
|
|
3353
3355
|
--origam-btn---width: auto;
|
|
3354
3356
|
--origam-btn---min-width: 64px;
|
|
3357
|
+
--origam-btn__content---justify-content: center;
|
|
3358
|
+
--origam-btn__content---text-align: center;
|
|
3355
3359
|
--origam-btn---max-width: 100%;
|
|
3356
3360
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
3357
3361
|
--origam-btn---max-height: 100%;
|
|
@@ -206,6 +206,8 @@
|
|
|
206
206
|
--origam-btn---density: 0px;
|
|
207
207
|
--origam-btn---width: auto;
|
|
208
208
|
--origam-btn---min-width: 64px;
|
|
209
|
+
--origam-btn__content---justify-content: center;
|
|
210
|
+
--origam-btn__content---text-align: center;
|
|
209
211
|
--origam-btn---max-width: 100%;
|
|
210
212
|
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
211
213
|
--origam-btn---max-height: 100%;
|
|
@@ -214,7 +214,7 @@ const props = defineProps({
|
|
|
214
214
|
status: { type: null, required: false },
|
|
215
215
|
statusIconPosition: { type: null, required: false },
|
|
216
216
|
icon: { type: null, required: false },
|
|
217
|
-
hover: { type: [Boolean, Object], required: false, default:
|
|
217
|
+
hover: { type: [Boolean, Object], required: false, default: false },
|
|
218
218
|
hoverClass: { type: String, required: false },
|
|
219
219
|
appendAvatar: { type: String, required: false },
|
|
220
220
|
appendIcon: { type: null, required: false },
|
|
@@ -233,7 +233,8 @@ const slots = useSlots();
|
|
|
233
233
|
const { filterProps } = useProps(props);
|
|
234
234
|
const { t } = useLocale();
|
|
235
235
|
const { typographyStyles } = useTypography(props, "alert__title");
|
|
236
|
-
const {
|
|
236
|
+
const { isOn: isActive, toggle: onActive } = useStateFlag(props, { state: "active", source: "modelValue" });
|
|
237
|
+
const isPressed = computed(() => false);
|
|
237
238
|
const {
|
|
238
239
|
isOn: isHover,
|
|
239
240
|
config: hoverState,
|
|
@@ -254,7 +255,7 @@ const {
|
|
|
254
255
|
paddingStyles,
|
|
255
256
|
marginClasses,
|
|
256
257
|
marginStyles
|
|
257
|
-
} = useStateEffect(props, isHover,
|
|
258
|
+
} = useStateEffect(props, isHover, isPressed, hoverState, void 0);
|
|
258
259
|
const { icon, prependIcon, appendIcon, statusClasses } = useStatus(props);
|
|
259
260
|
const {
|
|
260
261
|
onClickPrepend: handleClickPrepend,
|
|
@@ -307,7 +308,6 @@ const alertClasses = computed(() => {
|
|
|
307
308
|
return [
|
|
308
309
|
"origam-alert",
|
|
309
310
|
hoverClasses.value,
|
|
310
|
-
activeClasses.value,
|
|
311
311
|
statusClasses.value,
|
|
312
312
|
colorClasses.value,
|
|
313
313
|
densityClasses.value,
|
|
@@ -104,7 +104,7 @@ import { useStyle } from "../../composables/Commons/style.composable";
|
|
|
104
104
|
import { useTypography } from "../../composables/Commons/typography.composable";
|
|
105
105
|
import vContrast from "../../directives/Contrast/contrast.directive";
|
|
106
106
|
import { omit, pick } from "../../utils/Commons/commons.util";
|
|
107
|
-
import { computed,
|
|
107
|
+
import { computed, ref, StyleValue, useAttrs } from "vue";
|
|
108
108
|
const props = defineProps({
|
|
109
109
|
content: { type: [Number, String], required: false },
|
|
110
110
|
dot: { type: Boolean, required: false },
|
|
@@ -174,8 +174,8 @@ const { filterProps } = useProps(props);
|
|
|
174
174
|
const { t } = useLocale();
|
|
175
175
|
const attrs = useAttrs();
|
|
176
176
|
const { classes: hoverClasses, isOn: isHover, config: hoverState, unset: handleMouseleave, set: handleMouseenter } = useStateFlag(props, { state: "hover" });
|
|
177
|
-
const { classes: activeClasses
|
|
178
|
-
const { colorClasses, colorStyles, borderClasses, borderStyles, roundedClasses, roundedStyles, elevationClasses, elevationStyles } = useStateEffect(props, isHover,
|
|
177
|
+
const { classes: activeClasses } = useStateFlag(props, { state: "active", source: "modelValue" });
|
|
178
|
+
const { colorClasses, colorStyles, borderClasses, borderStyles, roundedClasses, roundedStyles, elevationClasses, elevationStyles } = useStateEffect(props, isHover, ref(false), hoverState, void 0);
|
|
179
179
|
const { typographyStyles } = useTypography(props, "badge__badge");
|
|
180
180
|
const { icon, prependIcon, appendIcon, statusClasses } = useStatus(props);
|
|
181
181
|
const {
|
|
@@ -239,8 +239,8 @@ const badgeClasses = computed(() => {
|
|
|
239
239
|
"origam-badge--floating": props.floating,
|
|
240
240
|
"origam-badge--inline": props.inline
|
|
241
241
|
},
|
|
242
|
-
activeClasses.value,
|
|
243
242
|
hoverClasses.value,
|
|
243
|
+
activeClasses.value,
|
|
244
244
|
statusClasses.value,
|
|
245
245
|
props.class
|
|
246
246
|
];
|
|
@@ -1118,7 +1118,7 @@ defineExpose({
|
|
|
1118
1118
|
&--wrap {
|
|
1119
1119
|
#{$this}__content {
|
|
1120
1120
|
white-space: normal;
|
|
1121
|
-
text-align: center;
|
|
1121
|
+
text-align: var(--origam-btn__content---text-align, center);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
@@ -1193,7 +1193,7 @@ defineExpose({
|
|
|
1193
1193
|
|
|
1194
1194
|
&__content {
|
|
1195
1195
|
grid-area: content;
|
|
1196
|
-
justify-content: center;
|
|
1196
|
+
justify-content: var(--origam-btn__content---justify-content, center);
|
|
1197
1197
|
white-space: nowrap;
|
|
1198
1198
|
|
|
1199
1199
|
margin-inline-start: var(--origam-btn__content---margin-inline-start);
|