yuyeon 0.3.1-rc.2 → 0.3.1-rc.4
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/LICENSE +191 -191
- package/README.md +15 -15
- package/dist/yuyeon.js +1689 -1753
- package/dist/yuyeon.umd.cjs +3 -3
- package/lib/abstract/items.mjs.map +1 -1
- package/lib/components/alert/YAlert.mjs +2 -2
- package/lib/components/alert/YAlert.mjs.map +1 -1
- package/lib/components/alert/YAlert.scss +77 -77
- package/lib/components/app/YApp.mjs +2 -2
- package/lib/components/app/YApp.mjs.map +1 -1
- package/lib/components/bench/YBench.mjs +2 -2
- package/lib/components/bench/YBench.mjs.map +1 -1
- package/lib/components/button/YButton.scss +137 -137
- package/lib/components/card/YCard.mjs.map +1 -1
- package/lib/components/card/YCard.scss +45 -45
- package/lib/components/card/YCardBody.mjs.map +1 -1
- package/lib/components/card/YCardFooter.mjs.map +1 -1
- package/lib/components/card/YCardHeader.mjs.map +1 -1
- package/lib/components/checkbox/YCheckbox.mjs.map +1 -1
- package/lib/components/checkbox/YInputCheckbox.mjs.map +1 -1
- package/lib/components/checkbox/YInputCheckbox.scss +84 -84
- package/lib/components/checkbox/index.mjs.map +1 -1
- package/lib/components/chip/YChip.scss +36 -36
- package/lib/components/date-picker/YDateCalendar.mjs.map +1 -1
- package/lib/components/date-picker/YDateCalendar.scss +84 -84
- package/lib/components/date-picker/YDatePicker.mjs +2 -2
- package/lib/components/date-picker/YDatePicker.mjs.map +1 -1
- package/lib/components/date-picker/YDatePickerControl.mjs.map +1 -1
- package/lib/components/date-picker/YMonthPicker.mjs.map +1 -1
- package/lib/components/date-picker/YYearPicker.mjs.map +1 -1
- package/lib/components/dialog/index.mjs.map +1 -1
- package/lib/components/divider/YDivider.mjs.map +1 -1
- package/lib/components/divider/YDivider.scss +2 -2
- package/lib/components/draggable/YDraggable.mjs +2 -2
- package/lib/components/draggable/YDraggable.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.scss +27 -27
- package/lib/components/field-input/index.mjs.map +1 -1
- package/lib/components/form/YForm.mjs.map +1 -1
- package/lib/components/hover/YHover.mjs +1 -1
- package/lib/components/hover/YHover.mjs.map +1 -1
- package/lib/components/icon/YIcon.mjs.map +1 -1
- package/lib/components/icon/YIcon.scss +18 -18
- package/lib/components/icons/YIconCheckbox.mjs.map +1 -1
- package/lib/components/icons/YIconClear.mjs.map +1 -1
- package/lib/components/icons/YIconDropdown.mjs.map +1 -1
- package/lib/components/icons/YIconExpand.mjs.map +1 -1
- package/lib/components/icons/YIconPageControl.mjs.map +1 -1
- package/lib/components/icons/YIconSort.mjs.map +1 -1
- package/lib/components/icons/YIconSort.scss +24 -24
- package/lib/components/icons/index.mjs.map +1 -1
- package/lib/components/img/YImg.mjs +4 -4
- package/lib/components/img/YImg.mjs.map +1 -1
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/input/YInput.mjs.map +1 -1
- package/lib/components/input/YInput.scss +258 -258
- package/lib/components/ip-field/YIpv4Field.mjs.map +1 -1
- package/lib/components/layer/YLayer.mjs.map +1 -1
- package/lib/components/layer/active-stack.mjs.map +1 -1
- package/lib/components/layer/base.mjs.map +1 -1
- package/lib/components/layer/content.mjs.map +1 -1
- package/lib/components/layer/scroll-strategies.mjs.map +1 -1
- package/lib/components/list/YList.mjs.map +1 -1
- package/lib/components/list/YListItem.mjs.map +1 -1
- package/lib/components/loading/YSpinnerRing.mjs.map +1 -1
- package/lib/components/menu/YMenu.mjs +2 -2
- package/lib/components/menu/YMenu.mjs.map +1 -1
- package/lib/components/menu/YMenu.scss +25 -25
- package/lib/components/navigation/YNavigation.mjs.map +1 -1
- package/lib/components/pagination/YPagination.mjs.map +1 -1
- package/lib/components/pagination/YPagination.scss +52 -52
- package/lib/components/panel/YDividePanel.mjs.map +1 -1
- package/lib/components/plate/YPlate.mjs +2 -2
- package/lib/components/plate/YPlate.mjs.map +1 -1
- package/lib/components/progress-bar/YProgressBar.mjs.map +1 -1
- package/lib/components/progress-bar/YProgressBar.scss +120 -120
- package/lib/components/progress-ring/YProgressRing.mjs +2 -2
- package/lib/components/progress-ring/YProgressRing.mjs.map +1 -1
- package/lib/components/progress-ring/YProgressRing.scss +38 -38
- package/lib/components/progress-ring/index.mjs.map +1 -1
- package/lib/components/select/YSelect.mjs.map +1 -1
- package/lib/components/slider/YSlider.mjs.map +1 -1
- package/lib/components/snackbar/YSnackbar.mjs +5 -5
- package/lib/components/snackbar/YSnackbar.mjs.map +1 -1
- package/lib/components/switch/YSwitch.mjs.map +1 -1
- package/lib/components/switch/YSwitch.scss +211 -211
- package/lib/components/tab/YTab.mjs.map +1 -1
- package/lib/components/tab/YTab.scss +73 -73
- package/lib/components/tab/YTabs.mjs.map +1 -1
- package/lib/components/tab/YTabs.scss +8 -8
- package/lib/components/tab/index.mjs.map +1 -1
- package/lib/components/tab/types.mjs.map +1 -1
- package/lib/components/table/YDataTableBody.mjs.map +1 -1
- package/lib/components/table/YDataTableCell.mjs.map +1 -1
- package/lib/components/table/YDataTableHead.mjs.map +1 -1
- package/lib/components/table/YDataTableLayer.mjs.map +1 -1
- package/lib/components/table/YDataTableRow.mjs.map +1 -1
- package/lib/components/table/YTable.mjs.map +1 -1
- package/lib/components/table/YTable.scss +157 -157
- package/lib/components/table/composibles/header.mjs.map +1 -1
- package/lib/components/table/composibles/items.mjs.map +1 -1
- package/lib/components/table/composibles/options.mjs.map +1 -1
- package/lib/components/table/composibles/pagination.mjs.map +1 -1
- package/lib/components/table/composibles/selection.mjs.map +1 -1
- package/lib/components/table/composibles/sorted-items.mjs.map +1 -1
- package/lib/components/table/composibles/sorting.mjs.map +1 -1
- package/lib/components/table/types/header.mjs.map +1 -1
- package/lib/components/table/types/index.mjs.map +1 -1
- package/lib/components/table/types/row.mjs.map +1 -1
- package/lib/components/text-ellipsis/YTextEllipsis.mjs.map +1 -1
- package/lib/components/text-ellipsis/YTextEllipsis.scss +43 -43
- package/lib/components/text-highlighter/YTextHighlighter.mjs.map +1 -1
- package/lib/components/text-interpolation/YTi.mjs.map +1 -1
- package/lib/components/textarea/YTextarea.mjs.map +1 -1
- package/lib/components/toggle-button/YToggleButton.mjs.map +1 -1
- package/lib/components/tooltip/YTooltip.mjs +2 -2
- package/lib/components/tooltip/YTooltip.mjs.map +1 -1
- package/lib/components/tree-view/YTreeView.scss +81 -81
- package/lib/components/tree-view/types.mjs.map +1 -1
- package/lib/components/tree-view/util.mjs.map +1 -1
- package/lib/composables/choice.mjs.map +1 -1
- package/lib/composables/communication.mjs.map +1 -1
- package/lib/composables/component.mjs.map +1 -1
- package/lib/composables/coordinate/arrangement.mjs.map +1 -1
- package/lib/composables/coordinate/index.mjs.map +1 -1
- package/lib/composables/coordinate/levitation.mjs +2 -2
- package/lib/composables/coordinate/levitation.mjs.map +1 -1
- package/lib/composables/coordinate/types.mjs.map +1 -1
- package/lib/composables/coordinate/utils/point.mjs.map +1 -1
- package/lib/composables/date/factory.mjs.map +1 -1
- package/lib/composables/date/index.mjs.map +1 -1
- package/lib/composables/date/setting.mjs.map +1 -1
- package/lib/composables/date/types.mjs.map +1 -1
- package/lib/composables/defaults/index.mjs.map +1 -1
- package/lib/composables/defaults/share.mjs.map +1 -1
- package/lib/composables/defaults/types.mjs.map +1 -1
- package/lib/composables/dimension.mjs.map +1 -1
- package/lib/composables/focus.mjs.map +1 -1
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/i18n/index.mjs.map +1 -1
- package/lib/composables/i18n/locale.mjs.map +1 -1
- package/lib/composables/i18n/rtl.mjs.map +1 -1
- package/lib/composables/i18n/share.mjs.map +1 -1
- package/lib/composables/icon.mjs.map +1 -1
- package/lib/composables/index.mjs.map +1 -1
- package/lib/composables/layer-group.mjs.map +1 -1
- package/lib/composables/layout.mjs.map +1 -1
- package/lib/composables/list-items.mjs.map +1 -1
- package/lib/composables/progress.mjs.map +1 -1
- package/lib/composables/ref.mjs.map +1 -1
- package/lib/composables/resize-observer.mjs.map +1 -1
- package/lib/composables/scope.mjs.map +1 -1
- package/lib/composables/theme/factory.mjs.map +1 -1
- package/lib/composables/theme/index.mjs.map +1 -1
- package/lib/composables/theme/setting.mjs.map +1 -1
- package/lib/composables/theme/types.mjs.map +1 -1
- package/lib/composables/timing.mjs.map +1 -1
- package/lib/composables/transition.mjs.map +1 -1
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/composables/vue-router.mjs.map +1 -1
- package/lib/directives/plate-wave/index.mjs +2 -2
- package/lib/directives/plate-wave/index.mjs.map +1 -1
- package/lib/etc/index.mjs.map +1 -1
- package/lib/i18n/built-in.mjs.map +1 -1
- package/lib/i18n/config.mjs.map +1 -1
- package/lib/i18n/types.mjs.map +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/locales/en.mjs.map +1 -1
- package/lib/locales/index.mjs.map +1 -1
- package/lib/locales/ko.mjs.map +1 -1
- package/lib/styles/_elevation.scss +16 -16
- package/lib/styles/_palette.scss +1 -1
- package/lib/styles/base.scss +130 -130
- package/lib/styles/settings/_elevation.scss +20 -20
- package/lib/styles/settings/_variables.scss +14 -14
- package/lib/styles/theme/dark.scss +11 -11
- package/lib/styles/theme/light.scss +11 -11
- package/lib/styles/util/_mixin.scss +33 -33
- package/lib/styles/util/_var.scss +18 -18
- package/lib/util/anchor.mjs.map +1 -1
- package/lib/util/collection.mjs.map +1 -1
- package/lib/util/color/const.mjs.map +1 -1
- package/lib/util/color/index.mjs +12 -12
- package/lib/util/color/index.mjs.map +1 -1
- package/lib/util/color/types.mjs.map +1 -1
- package/lib/util/color/utils/math-utils.mjs +62 -62
- package/lib/util/color/utils/math-utils.mjs.map +1 -1
- package/lib/util/component/component.mjs.map +1 -1
- package/lib/util/component/index.mjs.map +1 -1
- package/lib/util/component/inject-self.mjs.map +1 -1
- package/lib/util/component/props.mjs.map +1 -1
- package/lib/util/component/types.mjs.map +1 -1
- package/lib/util/date/index.mjs.map +1 -1
- package/lib/util/date/types.mjs.map +1 -1
- package/lib/util/debounce.mjs.map +1 -1
- package/lib/util/environments.mjs.map +1 -1
- package/lib/util/index.mjs.map +1 -1
- package/lib/util/reactivity.mjs +3 -3
- package/lib/util/reactivity.mjs.map +1 -1
- package/lib/util/rect.mjs.map +1 -1
- package/lib/util/validation.mjs.map +1 -1
- package/package.json +120 -120
- package/types/globals.d.ts +20 -20
- package/types/shims.d.ts +55 -55
- package/lib/components/icon/poly.mjs +0 -57
- package/lib/components/icon/poly.mjs.map +0 -1
- package/lib/composables/group.mjs +0 -194
- package/lib/composables/group.mjs.map +0 -1
- package/lib/util/parser.mjs +0 -31
- package/lib/util/parser.mjs.map +0 -1
- package/lib/util/vue-component/index.mjs +0 -63
- package/lib/util/vue-component/index.mjs.map +0 -1
- package/lib/util/vue-component/props.mjs +0 -37
- package/lib/util/vue-component/props.mjs.map +0 -1
- package/lib/util/vue-component/types.mjs +0 -2
- package/lib/util/vue-component/types.mjs.map +0 -1
- package/lib/util/vue-component.mjs +0 -102
- package/lib/util/vue-component.mjs.map +0 -1
- package/types/components/select/YSelect.d.ts +0 -7062
- package/types/components/table/pagination.d.ts +0 -78
- package/types/components/tooltip/YTooltip.d.ts +0 -3711
- package/types/util/color/hct/hct_solver.d.ts +0 -146
- package/types/util/color/hct/viewing_conditions.d.ts +0 -74
- package/types/util/color/palettes/tonal_palette.d.ts +0 -55
- package/types/util/color/utils/math_utils.d.ts +0 -82
- package/types/util/parser.d.ts +0 -4
- package/types/util/vue-component/index.d.ts +0 -10
- package/types/util/vue-component/props.d.ts +0 -31
- package/types/util/vue-component/types.d.ts +0 -4
- package/types/util/vue-component.d.ts +0 -39
- /package/types/util/{Rect.d.ts → rect.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.mjs","names":["propsFactory","pressItemsPropsOptions","items","type","Array","default","itemKey","String","itemText","itemChildren","Boolean"],"sources":["../../src/abstract/items.ts"],"sourcesContent":["import { PropType } from 'vue';\
|
|
1
|
+
{"version":3,"file":"items.mjs","names":["propsFactory","pressItemsPropsOptions","items","type","Array","default","itemKey","String","itemText","itemChildren","Boolean"],"sources":["../../src/abstract/items.ts"],"sourcesContent":["import { PropType } from 'vue';\n\nimport { propsFactory } from '../util/component';\n\nexport const pressItemsPropsOptions = propsFactory(\n {\n items: {\n type: Array as PropType<any[]>,\n default: () => [],\n },\n itemKey: {\n type: String as PropType<string>,\n default: 'key',\n },\n itemText: {\n type: String as PropType<string>,\n default: 'text',\n },\n itemChildren: {\n type: [Boolean, String] as PropType<boolean | string>,\n default: 'children',\n },\n },\n 'abstract.items',\n);\n"],"mappings":"SAESA,YAAY;AAErB,OAAO,MAAMC,sBAAsB,GAAGD,YAAY,CAChD;EACEE,KAAK,EAAE;IACLC,IAAI,EAAEC,KAAwB;IAC9BC,OAAO,EAAEA,CAAA,KAAM;EACjB,CAAC;EACDC,OAAO,EAAE;IACPH,IAAI,EAAEI,MAA0B;IAChCF,OAAO,EAAE;EACX,CAAC;EACDG,QAAQ,EAAE;IACRL,IAAI,EAAEI,MAA0B;IAChCF,OAAO,EAAE;EACX,CAAC;EACDI,YAAY,EAAE;IACZN,IAAI,EAAE,CAACO,OAAO,EAAEH,MAAM,CAA+B;IACrDF,OAAO,EAAE;EACX;AACF,CAAC,EACD,gBACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YAlert.mjs","names":["computed","ref","useRender","defineComponent","toKebabCase","YPlate","NAME","KEBAB_NAME","YAlertPropOptions","semantic","String","variation","color","textColor","outlineColor","YAlert","name","props","slots","Object","setup","_ref","el$","variations","split","map","value","trim","filter","v","cssVariables","ret","includes","_withDirectives","_createVNode","leading","title","default","trailing","_resolveDirective"],"sources":["../../../src/components/alert/YAlert.tsx"],"sourcesContent":["import { type PropType, type SlotsType, computed, ref } from 'vue';\
|
|
1
|
+
{"version":3,"file":"YAlert.mjs","names":["computed","ref","useRender","defineComponent","toKebabCase","YPlate","NAME","KEBAB_NAME","YAlertPropOptions","semantic","String","variation","color","textColor","outlineColor","YAlert","name","props","slots","Object","setup","_ref","el$","variations","split","map","value","trim","filter","v","cssVariables","ret","includes","_withDirectives","_createVNode","leading","title","default","trailing","_resolveDirective"],"sources":["../../../src/components/alert/YAlert.tsx"],"sourcesContent":["import { type PropType, type SlotsType, computed, ref } from 'vue';\n\nimport { useRender } from '@/composables/component';\nimport { defineComponent } from '@/util/component';\nimport { toKebabCase } from '@/util/string';\n\nimport { YPlate } from '../plate';\n\nimport './YAlert.scss';\n\nconst NAME = 'YAlert';\nconst KEBAB_NAME = toKebabCase(NAME);\n\nconst YAlertPropOptions = {\n semantic: String as PropType<\n 'info' | 'warning' | 'success' | 'error' | string\n >,\n variation: String as PropType<'outlined' | 'filled' | string>,\n color: String as PropType<string>,\n textColor: String as PropType<string>,\n outlineColor: String as PropType<string>,\n};\n\n/**\n * # Component\n */\nexport const YAlert = defineComponent({\n name: NAME,\n props: {\n ...YAlertPropOptions,\n },\n slots: Object as SlotsType<{\n leading: any;\n trailing: any;\n title: any;\n default: any;\n }>,\n setup(props, { slots }) {\n const el$ = ref<HTMLElement>();\n\n const variations = computed(() => {\n const { variation } = props;\n if (variation) {\n return variation\n .split(',')\n .map((value) => {\n return value.trim();\n })\n .filter((v) => !!v);\n }\n return [];\n });\n\n const cssVariables = computed(() => {\n const ret: Record<string, string | number> = {};\n\n if (props.color) {\n ret['--y-alert-surface-color'] = props.color;\n if (variations.value.includes('filled')) {\n ret['--y-alert-surface-opacity'] = 1;\n } else {\n ret['--y-alert-text-color'] = props.color;\n }\n if (props.textColor) {\n ret['--y-alert-text-color'] = props.textColor;\n }\n if (!props.outlineColor && !props.semantic) {\n ret['--y-alert-outline-color'] = props.color;\n }\n }\n if (props.outlineColor) {\n ret['--y-alert-outline-color'] = props.outlineColor;\n }\n return ret;\n });\n\n useRender(() => (\n <div\n ref={el$}\n class={[\n KEBAB_NAME,\n {\n [`y-alert--${props.semantic}`]: props.semantic,\n 'y-alert--filled': variations.value.includes('filled'),\n 'y-alert--outlined': variations.value.includes('outlined'),\n },\n ]}\n style={cssVariables.value}\n v-theme\n >\n <YPlate></YPlate>\n {slots.leading && (\n <div class={['y-alert__leading']}>{slots.leading()}</div>\n )}\n <div class={['y-alert__content']}>\n {slots.title && <div class={['y-alert__title']}>{slots.title()}</div>}\n {slots.default?.()}\n </div>\n {slots.trailing && (\n <div class={['y-alert__trailing']}>{slots.trailing()}</div>\n )}\n </div>\n ));\n },\n});\n\nexport type YAlert = InstanceType<typeof YAlert>;\n"],"mappings":"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"}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
.y-alert {
|
|
2
|
-
--y-alert-text-color: var(--y-theme-base-font);
|
|
3
|
-
--y-alert-surface-color: var(--y-theme-base-font);
|
|
4
|
-
--y-alert-surface-opacity: var(--y-theme-outline-opacity);
|
|
5
|
-
--y-alert-outline-color: var(--y-theme-outline);
|
|
6
|
-
|
|
7
|
-
display: flex;
|
|
8
|
-
position: relative;
|
|
9
|
-
padding: 16px 24px;
|
|
10
|
-
color: var(--y-alert-text-color);
|
|
11
|
-
align-self: flex-start;
|
|
12
|
-
|
|
13
|
-
&__title {
|
|
14
|
-
font-size: 1.1rem;
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
line-height: 1.74;
|
|
17
|
-
padding-bottom: 0.12rem;
|
|
18
|
-
margin-top: -2px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&__content {
|
|
22
|
-
flex: 1 1;
|
|
23
|
-
min-width: 0;
|
|
24
|
-
padding-top: 2px;
|
|
25
|
-
position: relative;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&__leading,
|
|
29
|
-
&__trailing {
|
|
30
|
-
flex: 0 0 auto;
|
|
31
|
-
position: relative;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&__leading {
|
|
35
|
-
padding-right: 12px;
|
|
36
|
-
margin-top: 0.2rem;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__trailing {
|
|
40
|
-
padding-left: 12px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.y-plate {
|
|
44
|
-
border-radius: inherit;
|
|
45
|
-
|
|
46
|
-
&:before {
|
|
47
|
-
content: '';
|
|
48
|
-
position: absolute;
|
|
49
|
-
top: 0;
|
|
50
|
-
left: 0;
|
|
51
|
-
bottom: 0;
|
|
52
|
-
right: 0;
|
|
53
|
-
background: var(--y-alert-surface-color);
|
|
54
|
-
opacity: var(--y-alert-surface-opacity);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&--outlined {
|
|
59
|
-
.y-plate {
|
|
60
|
-
border: 1px solid var(--y-alert-outline-color);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
$semantics: ('info', 'success', 'warning', 'error');
|
|
65
|
-
|
|
66
|
-
@mixin defineSemantic($name) {
|
|
67
|
-
&--#{$name} {
|
|
68
|
-
--y-alert-text-color: var(--y-theme-#{$name});
|
|
69
|
-
--y-alert-surface-color: var(--y-theme-#{$name});
|
|
70
|
-
--y-alert-outline-color: var(--y-theme-#{$name});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@each $name in $semantics {
|
|
75
|
-
@include defineSemantic($name);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
.y-alert {
|
|
2
|
+
--y-alert-text-color: var(--y-theme-base-font);
|
|
3
|
+
--y-alert-surface-color: var(--y-theme-base-font);
|
|
4
|
+
--y-alert-surface-opacity: var(--y-theme-outline-opacity);
|
|
5
|
+
--y-alert-outline-color: var(--y-theme-outline);
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
position: relative;
|
|
9
|
+
padding: 16px 24px;
|
|
10
|
+
color: var(--y-alert-text-color);
|
|
11
|
+
align-self: flex-start;
|
|
12
|
+
|
|
13
|
+
&__title {
|
|
14
|
+
font-size: 1.1rem;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
line-height: 1.74;
|
|
17
|
+
padding-bottom: 0.12rem;
|
|
18
|
+
margin-top: -2px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__content {
|
|
22
|
+
flex: 1 1;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
padding-top: 2px;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__leading,
|
|
29
|
+
&__trailing {
|
|
30
|
+
flex: 0 0 auto;
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__leading {
|
|
35
|
+
padding-right: 12px;
|
|
36
|
+
margin-top: 0.2rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__trailing {
|
|
40
|
+
padding-left: 12px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.y-plate {
|
|
44
|
+
border-radius: inherit;
|
|
45
|
+
|
|
46
|
+
&:before {
|
|
47
|
+
content: '';
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
background: var(--y-alert-surface-color);
|
|
54
|
+
opacity: var(--y-alert-surface-opacity);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--outlined {
|
|
59
|
+
.y-plate {
|
|
60
|
+
border: 1px solid var(--y-alert-outline-color);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
$semantics: ('info', 'success', 'warning', 'error');
|
|
65
|
+
|
|
66
|
+
@mixin defineSemantic($name) {
|
|
67
|
+
&--#{$name} {
|
|
68
|
+
--y-alert-text-color: var(--y-theme-#{$name});
|
|
69
|
+
--y-alert-surface-color: var(--y-theme-#{$name});
|
|
70
|
+
--y-alert-outline-color: var(--y-theme-#{$name});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@each $name in $semantics {
|
|
75
|
+
@include defineSemantic($name);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YApp.mjs","names":["h","defineComponent","YApp","name","setup","_props","_ref","slots","class"],"sources":["../../../src/components/app/YApp.ts"],"sourcesContent":["import { h } from 'vue';\
|
|
1
|
+
{"version":3,"file":"YApp.mjs","names":["h","defineComponent","YApp","name","setup","_props","_ref","slots","class"],"sources":["../../../src/components/app/YApp.ts"],"sourcesContent":["import { h } from 'vue';\n\nimport { defineComponent } from '@/util/component';\n\nimport './YApp.scss';\n\n/**\n * # App Component\n */\nexport const YApp = defineComponent({\n name: 'YApp',\n setup(_props, { slots }) {\n return () =>\n h(\n 'div',\n { class: 'y-app' },\n h('div', { class: 'y-app__container' }, slots),\n );\n },\n});\n\nexport type YApp = InstanceType<typeof YApp>;\n"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AAAC,SAEfC,eAAe;AAExB;;AAEA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GAAGD,eAAe,CAAC;EAClCE,IAAI,EAAE,MAAM;EACZC,KAAKA,CAACC,MAAM,EAAAC,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACrB,OAAO,MACLN,CAAC,CACC,KAAK,EACL;MAAEQ,KAAK,EAAE;IAAQ,CAAC,EAClBR,CAAC,CAAC,KAAK,EAAE;MAAEQ,KAAK,EAAE;IAAmB,CAAC,EAAED,KAAK,CAC/C,CAAC;EACL;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YBench.mjs","names":["ref","useRender","defineComponent","NAME","YBenchPropOptions","tag","type","String","default","position","floating","Boolean","width","Number","YBench","name","setup","looseProps","_ref","slots","props","defineProps","el$","_createVNode"],"sources":["../../../src/components/bench/YBench.tsx"],"sourcesContent":["import { type PropType, ref } from 'vue';\
|
|
1
|
+
{"version":3,"file":"YBench.mjs","names":["ref","useRender","defineComponent","NAME","YBenchPropOptions","tag","type","String","default","position","floating","Boolean","width","Number","YBench","name","setup","looseProps","_ref","slots","props","defineProps","el$","_createVNode"],"sources":["../../../src/components/bench/YBench.tsx"],"sourcesContent":["import { type PropType, ref } from 'vue';\n\nimport { useRender } from '@/composables/component';\nimport { defineComponent } from '@/util/component';\n\nconst NAME = 'YBench';\n\nconst YBenchPropOptions = {\n tag: {\n type: String as PropType<string>,\n default: 'div',\n },\n position: {\n type: String as PropType<'top' | 'left' | 'right' | 'bottom'>,\n default: 'top',\n },\n floating: {\n type: Boolean as PropType<boolean>,\n default: false,\n },\n width: {\n type: [String, Number] as PropType<string | number>,\n default: 48,\n },\n};\n\n/**\n * # Base Component\n */\nexport const YBench = defineComponent({\n name: NAME,\n setup(looseProps, { slots }) {\n const props = defineProps(YBenchPropOptions);\n const el$ = ref<HTMLElement>();\n\n useRender(() => <props.tag ref={el$}>{slots.default?.()}</props.tag>);\n },\n});\n"],"mappings":";AAAA,SAAwBA,GAAG,QAAQ,KAAK;AAAC,SAEhCC,SAAS;AAAA,SACTC,eAAe;AAExB,MAAMC,IAAI,GAAG,QAAQ;AAErB,MAAMC,iBAAiB,GAAG;EACxBC,GAAG,EAAE;IACHC,IAAI,EAAEC,MAA0B;IAChCC,OAAO,EAAE;EACX,CAAC;EACDC,QAAQ,EAAE;IACRH,IAAI,EAAEC,MAAuD;IAC7DC,OAAO,EAAE;EACX,CAAC;EACDE,QAAQ,EAAE;IACRJ,IAAI,EAAEK,OAA4B;IAClCH,OAAO,EAAE;EACX,CAAC;EACDI,KAAK,EAAE;IACLN,IAAI,EAAE,CAACC,MAAM,EAAEM,MAAM,CAA8B;IACnDL,OAAO,EAAE;EACX;AACF,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMM,MAAM,GAAGZ,eAAe,CAAC;EACpCa,IAAI,EAAEZ,IAAI;EACVa,KAAKA,CAACC,UAAU,EAAAC,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACzB,MAAME,KAAK,GAAGC,WAAW,CAACjB,iBAAiB,CAAC;IAC5C,MAAMkB,GAAG,GAAGtB,GAAG,CAAc,CAAC;IAE9BC,SAAS,CAAC,MAAAsB,YAAA,CAAAH,KAAA,CAAAf,GAAA;MAAA,OAAsBiB;IAAG;MAAAd,OAAA,EAAAA,CAAA,MAAGW,KAAK,CAACX,OAAO,GAAG,CAAC;IAAA,EAAa,CAAC;EACvE;AACF,CAAC,CAAC"}
|
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
@use '../../styles/variables';
|
|
2
|
-
|
|
3
|
-
$button-border-radius: variables.$border-radius-root !default;
|
|
4
|
-
$button-before-opacity: 0.06 !default;
|
|
5
|
-
$button-disabled-background: #d3d3d3 !default;
|
|
6
|
-
|
|
7
|
-
.y-button {
|
|
8
|
-
--y-button__color: var(--y-theme-primary);
|
|
9
|
-
--y-button__text-color: var(--y-theme-on-primary);
|
|
10
|
-
--y-button__disabled-background: #{$button-disabled-background};
|
|
11
|
-
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
display: inline-flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
position: relative;
|
|
17
|
-
border-radius: $button-border-radius;
|
|
18
|
-
font-weight: 500;
|
|
19
|
-
transition: all 240ms cubic-bezier(0.42, 0.5, 0.51, 1.02);
|
|
20
|
-
text-decoration: none;
|
|
21
|
-
|
|
22
|
-
&:before {
|
|
23
|
-
background-color: currentColor;
|
|
24
|
-
border-radius: inherit;
|
|
25
|
-
bottom: 0;
|
|
26
|
-
color: inherit;
|
|
27
|
-
content: '';
|
|
28
|
-
left: 0;
|
|
29
|
-
opacity: 0;
|
|
30
|
-
pointer-events: none;
|
|
31
|
-
position: absolute;
|
|
32
|
-
right: 0;
|
|
33
|
-
top: 0;
|
|
34
|
-
transition: opacity 0.2s cubic-bezier(0.4, 0, 0.6, 1);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:hover:before {
|
|
38
|
-
opacity: 0.06;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
& {
|
|
42
|
-
box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.14);
|
|
43
|
-
|
|
44
|
-
&:active {
|
|
45
|
-
box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.24);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&--filled {
|
|
50
|
-
background-color: var(--y-button__color);
|
|
51
|
-
color: var(--y-button__text-color);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&--text {
|
|
55
|
-
box-shadow: none;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:disabled,
|
|
59
|
-
&--disabled {
|
|
60
|
-
background-color: var(--y-button__disabled-background);
|
|
61
|
-
opacity: 0.4;
|
|
62
|
-
cursor: default;
|
|
63
|
-
box-shadow: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&--rounded {
|
|
67
|
-
border-radius: 10vh;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&--outlined {
|
|
71
|
-
//color: rgba(var(--y-button__color), 1);
|
|
72
|
-
border-width: 1px;
|
|
73
|
-
border-style: solid;
|
|
74
|
-
border-color: currentColor;
|
|
75
|
-
box-shadow: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&--color:not(&--filled) {
|
|
79
|
-
color: var(--y-button__color);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&--loading {
|
|
83
|
-
cursor: wait;
|
|
84
|
-
box-shadow: none;
|
|
85
|
-
|
|
86
|
-
.y-spinner-ring {
|
|
87
|
-
margin-right: 0.4em;
|
|
88
|
-
width: 1em;
|
|
89
|
-
height: 1em;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:active:not(&--loading) {
|
|
94
|
-
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.14);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&--small {
|
|
98
|
-
height: 24px;
|
|
99
|
-
font-size: 0.4rem;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&--small & {
|
|
103
|
-
&__content {
|
|
104
|
-
padding: 4px 6px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&--icon {
|
|
109
|
-
width: 48px;
|
|
110
|
-
height: 48px;
|
|
111
|
-
border-radius: 50%;
|
|
112
|
-
|
|
113
|
-
@at-root &.y-button--small {
|
|
114
|
-
width: 32px;
|
|
115
|
-
height: 32px;
|
|
116
|
-
|
|
117
|
-
.y-button__content {
|
|
118
|
-
padding: 4px;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@at-root &.y-button--x-small {
|
|
123
|
-
width: 24px;
|
|
124
|
-
height: 24px;
|
|
125
|
-
|
|
126
|
-
.y-button__content {
|
|
127
|
-
padding: 4px;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&__content {
|
|
133
|
-
display: flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
padding: 4px 8px;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
1
|
+
@use '../../styles/variables';
|
|
2
|
+
|
|
3
|
+
$button-border-radius: variables.$border-radius-root !default;
|
|
4
|
+
$button-before-opacity: 0.06 !default;
|
|
5
|
+
$button-disabled-background: #d3d3d3 !default;
|
|
6
|
+
|
|
7
|
+
.y-button {
|
|
8
|
+
--y-button__color: var(--y-theme-primary);
|
|
9
|
+
--y-button__text-color: var(--y-theme-on-primary);
|
|
10
|
+
--y-button__disabled-background: #{$button-disabled-background};
|
|
11
|
+
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
position: relative;
|
|
17
|
+
border-radius: $button-border-radius;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
transition: all 240ms cubic-bezier(0.42, 0.5, 0.51, 1.02);
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
|
|
22
|
+
&:before {
|
|
23
|
+
background-color: currentColor;
|
|
24
|
+
border-radius: inherit;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
color: inherit;
|
|
27
|
+
content: '';
|
|
28
|
+
left: 0;
|
|
29
|
+
opacity: 0;
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
position: absolute;
|
|
32
|
+
right: 0;
|
|
33
|
+
top: 0;
|
|
34
|
+
transition: opacity 0.2s cubic-bezier(0.4, 0, 0.6, 1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover:before {
|
|
38
|
+
opacity: 0.06;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
& {
|
|
42
|
+
box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.14);
|
|
43
|
+
|
|
44
|
+
&:active {
|
|
45
|
+
box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.24);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&--filled {
|
|
50
|
+
background-color: var(--y-button__color);
|
|
51
|
+
color: var(--y-button__text-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&--text {
|
|
55
|
+
box-shadow: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:disabled,
|
|
59
|
+
&--disabled {
|
|
60
|
+
background-color: var(--y-button__disabled-background);
|
|
61
|
+
opacity: 0.4;
|
|
62
|
+
cursor: default;
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--rounded {
|
|
67
|
+
border-radius: 10vh;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&--outlined {
|
|
71
|
+
//color: rgba(var(--y-button__color), 1);
|
|
72
|
+
border-width: 1px;
|
|
73
|
+
border-style: solid;
|
|
74
|
+
border-color: currentColor;
|
|
75
|
+
box-shadow: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&--color:not(&--filled) {
|
|
79
|
+
color: var(--y-button__color);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&--loading {
|
|
83
|
+
cursor: wait;
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
|
|
86
|
+
.y-spinner-ring {
|
|
87
|
+
margin-right: 0.4em;
|
|
88
|
+
width: 1em;
|
|
89
|
+
height: 1em;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:active:not(&--loading) {
|
|
94
|
+
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.14);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&--small {
|
|
98
|
+
height: 24px;
|
|
99
|
+
font-size: 0.4rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&--small & {
|
|
103
|
+
&__content {
|
|
104
|
+
padding: 4px 6px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--icon {
|
|
109
|
+
width: 48px;
|
|
110
|
+
height: 48px;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
|
|
113
|
+
@at-root &.y-button--small {
|
|
114
|
+
width: 32px;
|
|
115
|
+
height: 32px;
|
|
116
|
+
|
|
117
|
+
.y-button__content {
|
|
118
|
+
padding: 4px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@at-root &.y-button--x-small {
|
|
123
|
+
width: 24px;
|
|
124
|
+
height: 24px;
|
|
125
|
+
|
|
126
|
+
.y-button__content {
|
|
127
|
+
padding: 4px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&__content {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
padding: 4px 8px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YCard.mjs","names":["h","useRender","pressThemePropsOptions","useLocalTheme","defineComponent","YCard","name","props","outline","type","Boolean","setup","_ref","slots","themeClasses","class","value","default"],"sources":["../../../src/components/card/YCard.ts"],"sourcesContent":["import { type PropType, h } from 'vue';\
|
|
1
|
+
{"version":3,"file":"YCard.mjs","names":["h","useRender","pressThemePropsOptions","useLocalTheme","defineComponent","YCard","name","props","outline","type","Boolean","setup","_ref","slots","themeClasses","class","value","default"],"sources":["../../../src/components/card/YCard.ts"],"sourcesContent":["import { type PropType, h } from 'vue';\n\nimport { useRender } from '@/composables/component';\nimport { pressThemePropsOptions, useLocalTheme } from '@/composables/theme';\nimport { defineComponent } from '@/util/component';\n\nimport './YCard.scss';\n\nexport const YCard = defineComponent({\n name: 'YCard',\n props: {\n outline: {\n type: Boolean as PropType<boolean>,\n },\n ...pressThemePropsOptions(),\n },\n setup(props, { slots }) {\n const { themeClasses } = useLocalTheme(props);\n\n useRender(() =>\n h(\n 'div',\n {\n class: [\n 'y-card',\n { 'y-card--outlined': props.outline },\n themeClasses.value,\n ],\n },\n slots.default?.(),\n ),\n );\n },\n});\n\nexport type YCard = InstanceType<typeof YCard>;\n"],"mappings":"AAAA,SAAwBA,CAAC,QAAQ,KAAK;AAAC,SAE9BC,SAAS;AAAA,SACTC,sBAAsB,EAAEC,aAAa;AAAA,SACrCC,eAAe;AAExB;AAEA,OAAO,MAAMC,KAAK,GAAGD,eAAe,CAAC;EACnCE,IAAI,EAAE,OAAO;EACbC,KAAK,EAAE;IACLC,OAAO,EAAE;MACPC,IAAI,EAAEC;IACR,CAAC;IACD,GAAGR,sBAAsB,CAAC;EAC5B,CAAC;EACDS,KAAKA,CAACJ,KAAK,EAAAK,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACpB,MAAM;MAAEE;IAAa,CAAC,GAAGX,aAAa,CAACI,KAAK,CAAC;IAE7CN,SAAS,CAAC,MACRD,CAAC,CACC,KAAK,EACL;MACEe,KAAK,EAAE,CACL,QAAQ,EACR;QAAE,kBAAkB,EAAER,KAAK,CAACC;MAAQ,CAAC,EACrCM,YAAY,CAACE,KAAK;IAEtB,CAAC,EACDH,KAAK,CAACI,OAAO,GAAG,CAClB,CACF,CAAC;EACH;AACF,CAAC,CAAC"}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
@use '../../styles/variables';
|
|
2
|
-
|
|
3
|
-
$card__border-radius: variables.$border-radius-root !default;
|
|
4
|
-
$card__padding: 24px;
|
|
5
|
-
|
|
6
|
-
.y-card {
|
|
7
|
-
--y-card__border-radius: #{$card__border-radius};
|
|
8
|
-
--y-card__default-background: #ffffff;
|
|
9
|
-
--y-card__background: var(
|
|
10
|
-
--y-theme-surface,
|
|
11
|
-
var(--y-card__default-background)
|
|
12
|
-
);
|
|
13
|
-
--y-card__outline-color: var(--y-theme-outline);
|
|
14
|
-
|
|
15
|
-
background-color: var(--y-card__background);
|
|
16
|
-
border-radius: var(--y-card__border-radius, $card__border-radius);
|
|
17
|
-
|
|
18
|
-
&__header {
|
|
19
|
-
padding: $card__padding $card__padding 0;
|
|
20
|
-
display: flex;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&__body {
|
|
24
|
-
padding: 0 $card__padding;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&__footer {
|
|
30
|
-
padding: 12px 24px;
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-title {
|
|
36
|
-
font-weight: bolder;
|
|
37
|
-
font-size: 1.12em;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&--outlined {
|
|
41
|
-
border-width: 1px;
|
|
42
|
-
border-style: solid;
|
|
43
|
-
border-color: var(--y-card__outline-color);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
@use '../../styles/variables';
|
|
2
|
+
|
|
3
|
+
$card__border-radius: variables.$border-radius-root !default;
|
|
4
|
+
$card__padding: 24px;
|
|
5
|
+
|
|
6
|
+
.y-card {
|
|
7
|
+
--y-card__border-radius: #{$card__border-radius};
|
|
8
|
+
--y-card__default-background: #ffffff;
|
|
9
|
+
--y-card__background: var(
|
|
10
|
+
--y-theme-surface,
|
|
11
|
+
var(--y-card__default-background)
|
|
12
|
+
);
|
|
13
|
+
--y-card__outline-color: var(--y-theme-outline);
|
|
14
|
+
|
|
15
|
+
background-color: var(--y-card__background);
|
|
16
|
+
border-radius: var(--y-card__border-radius, $card__border-radius);
|
|
17
|
+
|
|
18
|
+
&__header {
|
|
19
|
+
padding: $card__padding $card__padding 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__body {
|
|
24
|
+
padding: 0 $card__padding;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__footer {
|
|
30
|
+
padding: 12px 24px;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-title {
|
|
36
|
+
font-weight: bolder;
|
|
37
|
+
font-size: 1.12em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--outlined {
|
|
41
|
+
border-width: 1px;
|
|
42
|
+
border-style: solid;
|
|
43
|
+
border-color: var(--y-card__outline-color);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YCardBody.mjs","names":["h","defineComponent","YCardBody","name","render","class","$slots","default"],"sources":["../../../src/components/card/YCardBody.ts"],"sourcesContent":["import { h } from 'vue';\
|
|
1
|
+
{"version":3,"file":"YCardBody.mjs","names":["h","defineComponent","YCardBody","name","render","class","$slots","default"],"sources":["../../../src/components/card/YCardBody.ts"],"sourcesContent":["import { h } from 'vue';\n\nimport { defineComponent } from '@/util/component';\n\nexport const YCardBody = defineComponent({\n name: 'YCardBody',\n render() {\n return h('div', { class: 'y-card__body' }, this.$slots.default?.());\n },\n});\n\nexport type YCardBody = InstanceType<typeof YCardBody>;\n"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AAAC,SAEfC,eAAe;AAExB,OAAO,MAAMC,SAAS,GAAGD,eAAe,CAAC;EACvCE,IAAI,EAAE,WAAW;EACjBC,MAAMA,CAAA,EAAG;IACP,OAAOJ,CAAC,CAAC,KAAK,EAAE;MAAEK,KAAK,EAAE;IAAe,CAAC,EAAE,IAAI,CAACC,MAAM,CAACC,OAAO,GAAG,CAAC,CAAC;EACrE;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YCardFooter.mjs","names":["h","defineComponent","YCardFooter","name","render","class","$slots","default"],"sources":["../../../src/components/card/YCardFooter.ts"],"sourcesContent":["import { h } from 'vue';\
|
|
1
|
+
{"version":3,"file":"YCardFooter.mjs","names":["h","defineComponent","YCardFooter","name","render","class","$slots","default"],"sources":["../../../src/components/card/YCardFooter.ts"],"sourcesContent":["import { h } from 'vue';\n\nimport { defineComponent } from '@/util/component';\n\nexport const YCardFooter = defineComponent({\n name: 'YCardFooter',\n render() {\n return h('div', { class: 'y-card__footer' }, this.$slots.default?.());\n },\n});\n\nexport type YCardFooter = InstanceType<typeof YCardFooter>;\n"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AAAC,SAEfC,eAAe;AAExB,OAAO,MAAMC,WAAW,GAAGD,eAAe,CAAC;EACzCE,IAAI,EAAE,aAAa;EACnBC,MAAMA,CAAA,EAAG;IACP,OAAOJ,CAAC,CAAC,KAAK,EAAE;MAAEK,KAAK,EAAE;IAAiB,CAAC,EAAE,IAAI,CAACC,MAAM,CAACC,OAAO,GAAG,CAAC,CAAC;EACvE;AACF,CAAC,CAAC"}
|