@threadlabs/looma 0.41.2 → 0.43.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/components/ui-action-bar/ui-action-bar.html +1 -7
- package/components/ui-affordance-scope/ui-affordance-scope.html +4 -4
- package/components/ui-avatar/ui-avatar.html +0 -22
- package/components/ui-avatar-group/ui-avatar-group.html +1 -11
- package/components/ui-badge/ui-badge.html +57 -78
- package/components/ui-button/ui-button.html +66 -90
- package/components/ui-button/ui-button.js +2 -2
- package/components/ui-callout/ui-callout.html +31 -69
- package/components/ui-card/ui-card.html +47 -21
- package/components/ui-checkbox/ui-checkbox.html +2 -16
- package/components/ui-cluster/ui-cluster.html +1 -7
- package/components/ui-combobox/ui-combobox.html +7 -70
- package/components/ui-container/ui-container.html +2 -12
- package/components/ui-context-menu/ui-context-menu.html +1 -23
- package/components/ui-dialog/ui-dialog.html +9 -41
- package/components/ui-disclosure/ui-disclosure.html +1 -15
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +1 -1
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +1 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
- package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
- package/components/ui-form-field/ui-form-field.html +2 -32
- package/components/ui-grid/ui-grid.html +1 -11
- package/components/ui-icon/ui-icon.html +1 -12
- package/components/ui-icon-button/ui-icon-button.html +94 -94
- package/components/ui-input/ui-input.html +5 -55
- package/components/ui-input-group/ui-input-group.html +1 -13
- package/components/ui-light-editor/ui-light-editor.html +1 -1
- package/components/ui-list/ui-list.html +0 -10
- package/components/ui-list-item/ui-list-item.html +1 -19
- package/components/ui-listbox/ui-listbox.html +0 -21
- package/components/ui-menu/ui-menu.html +8 -32
- package/components/ui-menu-item/ui-menu-item.html +1 -27
- package/components/ui-meter/ui-meter.html +11 -6
- package/components/ui-nav-item/ui-nav-item.html +0 -18
- package/components/ui-popover/ui-popover.html +9 -41
- package/components/ui-radio/ui-radio.html +58 -12
- package/components/ui-radio-group/ui-radio-group.html +0 -5
- package/components/ui-reel/ui-reel.html +1 -11
- package/components/ui-search-result-row/ui-search-result-row.html +0 -34
- package/components/ui-search-shell/ui-search-shell.html +1 -43
- package/components/ui-section/ui-section.html +1 -1
- package/components/ui-select/ui-select.html +0 -42
- package/components/ui-separator/ui-separator.html +0 -6
- package/components/ui-sidebar/ui-sidebar.html +2 -24
- package/components/ui-site-header/ui-site-header.html +0 -25
- package/components/ui-skeleton/ui-skeleton.html +0 -9
- package/components/ui-stack/ui-stack.html +6 -11
- package/components/ui-status-message/ui-status-message.html +1 -1
- package/components/ui-swatch/ui-swatch.html +0 -5
- package/components/ui-switch/ui-switch.html +6 -17
- package/components/ui-switcher/ui-switcher.html +1 -11
- package/components/ui-tabs/ui-tabs.html +4 -22
- package/components/ui-text/ui-text.html +20 -7
- package/components/ui-textarea/ui-textarea.html +0 -50
- package/components/ui-toast/ui-toast.html +12 -27
- package/components/ui-toast-region/ui-toast-region.html +13 -34
- package/components/ui-tooltip/ui-tooltip.html +9 -53
- package/components/ui-top-bar/ui-top-bar.html +1 -31
- package/components/ui-tree/ui-tree.html +1 -16
- package/components/ui-tree-item/ui-tree-item.html +1 -23
- package/components/ui-tree-item/ui-tree-item.js +0 -1
- package/dist/index.js +1 -1
- package/docs/README.md +15 -9
- package/docs/catalog.json +973 -186
- package/docs/customizer-render.mjs +25 -9
- package/docs/customizer.js +42 -2
- package/docs/fonts.mjs +1 -1
- package/docs/palette.mjs +5 -4
- package/docs/theme.mjs +214 -51
- package/docs/value-editors.mjs +2 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +3 -11
- package/styles/ui-affordance-scope.css +4 -4
- package/styles/ui-avatar-group.css +3 -15
- package/styles/ui-avatar.css +2 -26
- package/styles/ui-badge.css +56 -80
- package/styles/ui-button.css +65 -92
- package/styles/ui-callout.css +33 -73
- package/styles/ui-card.css +42 -18
- package/styles/ui-checkbox.css +4 -20
- package/styles/ui-cluster.css +2 -10
- package/styles/ui-combobox.css +7 -140
- package/styles/ui-container.css +2 -14
- package/styles/ui-context-menu.css +3 -27
- package/styles/ui-dialog.css +22 -88
- package/styles/ui-disclosure.css +3 -19
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +2 -2
- package/styles/ui-editor-table-toolbar.css +2 -2
- package/styles/ui-floating-action-button.css +2 -18
- package/styles/ui-form-field.css +4 -36
- package/styles/ui-grid.css +2 -14
- package/styles/ui-icon-button.css +93 -96
- package/styles/ui-icon.css +3 -16
- package/styles/ui-input-group.css +2 -14
- package/styles/ui-input.css +6 -57
- package/styles/ui-light-editor.css +2 -2
- package/styles/ui-list-item.css +3 -23
- package/styles/ui-list.css +2 -14
- package/styles/ui-listbox.css +2 -44
- package/styles/ui-menu-item.css +3 -31
- package/styles/ui-menu.css +11 -37
- package/styles/ui-meter.css +8 -4
- package/styles/ui-nav-item.css +2 -22
- package/styles/ui-popover.css +12 -46
- package/styles/ui-radio-group.css +1 -6
- package/styles/ui-radio.css +68 -15
- package/styles/ui-reel.css +2 -14
- package/styles/ui-search-result-row.css +2 -38
- package/styles/ui-search-shell.css +3 -47
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +2 -46
- package/styles/ui-separator.css +2 -10
- package/styles/ui-sidebar.css +4 -28
- package/styles/ui-site-header.css +1 -26
- package/styles/ui-skeleton.css +2 -12
- package/styles/ui-stack.css +4 -12
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -6
- package/styles/ui-switch.css +8 -21
- package/styles/ui-switcher.css +2 -14
- package/styles/ui-tabs.css +6 -26
- package/styles/ui-text.css +11 -3
- package/styles/ui-textarea.css +2 -54
- package/styles/ui-toast-region.css +29 -73
- package/styles/ui-toast.css +24 -54
- package/styles/ui-tooltip.css +12 -58
- package/styles/ui-top-bar.css +3 -35
- package/styles/ui-tree-item.css +5 -51
- package/styles/ui-tree.css +3 -20
- package/theme-system.css +16 -10
- package/tokens.css +75 -18
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vue/UiActionBar.vue +3 -9
- package/vue/UiAffordanceScope.vue +4 -4
- package/vue/UiAvatar.vue +1 -28
- package/vue/UiAvatarGroup.vue +1 -11
- package/vue/UiBadge.d.ts +2 -2
- package/vue/UiBadge.vue +84 -81
- package/vue/UiButton.d.ts +2 -2
- package/vue/UiButton.vue +120 -106
- package/vue/UiCallout.vue +31 -72
- package/vue/UiCard.d.ts +2 -2
- package/vue/UiCard.vue +77 -32
- package/vue/UiCheckbox.vue +2 -16
- package/vue/UiCluster.vue +1 -10
- package/vue/UiCombobox.vue +13 -72
- package/vue/UiContainer.vue +1 -13
- package/vue/UiContextMenu.vue +1 -30
- package/vue/UiDialog.vue +23 -77
- package/vue/UiDisclosure.vue +1 -15
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +2 -2
- package/vue/UiEditorTableToolbar.vue +2 -2
- package/vue/UiFloatingActionButton.vue +0 -22
- package/vue/UiFormField.vue +6 -33
- package/vue/UiGrid.vue +1 -13
- package/vue/UiIcon.vue +1 -16
- package/vue/UiIconButton.d.ts +2 -2
- package/vue/UiIconButton.vue +145 -106
- package/vue/UiInput.vue +1 -54
- package/vue/UiInputGroup.vue +8 -20
- package/vue/UiLightEditor.vue +2 -2
- package/vue/UiList.vue +2 -12
- package/vue/UiListItem.vue +8 -26
- package/vue/UiListbox.vue +0 -23
- package/vue/UiMenu.vue +12 -44
- package/vue/UiMenuItem.vue +1 -27
- package/vue/UiMeter.d.ts +2 -2
- package/vue/UiMeter.vue +47 -12
- package/vue/UiNavItem.vue +3 -21
- package/vue/UiPopover.vue +12 -53
- package/vue/UiRadio.vue +58 -12
- package/vue/UiRadioGroup.vue +0 -11
- package/vue/UiReel.vue +1 -11
- package/vue/UiSearchResultRow.vue +0 -35
- package/vue/UiSearchShell.vue +1 -53
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +0 -42
- package/vue/UiSeparator.vue +0 -7
- package/vue/UiSidebar.vue +3 -26
- package/vue/UiSiteHeader.vue +0 -24
- package/vue/UiSkeleton.vue +0 -9
- package/vue/UiStack.vue +6 -11
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwatch.vue +1 -6
- package/vue/UiSwitch.vue +6 -17
- package/vue/UiSwitcher.vue +1 -14
- package/vue/UiTabs.vue +4 -22
- package/vue/UiText.d.ts +2 -2
- package/vue/UiText.vue +30 -5
- package/vue/UiTextarea.vue +0 -50
- package/vue/UiToast.vue +26 -34
- package/vue/UiToastRegion.vue +26 -55
- package/vue/UiTooltip.vue +12 -64
- package/vue/UiTopBar.vue +1 -34
- package/vue/UiTree.vue +2 -17
- package/vue/UiTreeItem.vue +2 -28
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +4 -2
- package/vue/chunks/UiButton.js +4 -2
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +5 -3
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +3 -3
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +4 -2
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiLightEditor.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +4 -2
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/chunks/UiSkeleton.js +1 -1
- package/vue/chunks/UiStack.js +3 -3
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwatch.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +2 -2
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +4 -2
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +857 -2184
- package/vue/editor/index.js +8 -2
package/vue/UiButton.vue
CHANGED
|
@@ -134,8 +134,17 @@ const propValidityContract = {
|
|
|
134
134
|
required: false,
|
|
135
135
|
target: { attribute: 'tone' },
|
|
136
136
|
description:
|
|
137
|
-
'Which colour the button speaks in. It applies to every variant, so an outline, a ghost, and a solid in the same tone are the same action at three volumes:\n tone="danger" variant="outline" is a destructive secondary action. neutral is the quiet one, for a button that should not claim a colour. The field\n variant always uses neutral field colors.',
|
|
138
|
-
values: [
|
|
137
|
+
'Which colour the button speaks in. It applies to every variant, so an outline, a ghost, and a solid in the same tone are the same action at three volumes:\n tone="danger" variant="outline" is a destructive secondary action. neutral is the quiet one, for a button that should not claim a colour. The field\n variant always uses neutral field colors. Supporting brand families use accent-secondary and accent-tertiary; their usable colors derive from the theme,\n and unset families follow the primary accent.',
|
|
138
|
+
values: [
|
|
139
|
+
'accent',
|
|
140
|
+
'accent-secondary',
|
|
141
|
+
'accent-tertiary',
|
|
142
|
+
'neutral',
|
|
143
|
+
'danger',
|
|
144
|
+
'success',
|
|
145
|
+
'warning',
|
|
146
|
+
'info',
|
|
147
|
+
],
|
|
139
148
|
default: 'neutral',
|
|
140
149
|
},
|
|
141
150
|
type: {
|
|
@@ -177,7 +186,15 @@ const props = defineProps({
|
|
|
177
186
|
target: { type: null as unknown as PropType<string | null> },
|
|
178
187
|
tone: {
|
|
179
188
|
type: null as unknown as PropType<
|
|
180
|
-
|
|
189
|
+
| 'accent'
|
|
190
|
+
| 'accent-secondary'
|
|
191
|
+
| 'accent-tertiary'
|
|
192
|
+
| 'neutral'
|
|
193
|
+
| 'danger'
|
|
194
|
+
| 'success'
|
|
195
|
+
| 'warning'
|
|
196
|
+
| 'info'
|
|
197
|
+
| null
|
|
181
198
|
>,
|
|
182
199
|
},
|
|
183
200
|
type: { type: null as unknown as PropType<'button' | 'submit' | 'reset' | null> },
|
|
@@ -308,11 +325,25 @@ const checkedProps = computed(() => {
|
|
|
308
325
|
props[BINDING_INPUTS_PROP],
|
|
309
326
|
) as boolean,
|
|
310
327
|
target: propInputs.value<string | null>('target', props['target'], props[BINDING_INPUTS_PROP]),
|
|
311
|
-
tone: propInputs.value<
|
|
312
|
-
'
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
328
|
+
tone: propInputs.value<
|
|
329
|
+
| 'accent'
|
|
330
|
+
| 'accent-secondary'
|
|
331
|
+
| 'accent-tertiary'
|
|
332
|
+
| 'neutral'
|
|
333
|
+
| 'danger'
|
|
334
|
+
| 'success'
|
|
335
|
+
| 'warning'
|
|
336
|
+
| 'info'
|
|
337
|
+
| null
|
|
338
|
+
>('tone', props['tone'], props[BINDING_INPUTS_PROP]) as
|
|
339
|
+
| 'accent'
|
|
340
|
+
| 'accent-secondary'
|
|
341
|
+
| 'accent-tertiary'
|
|
342
|
+
| 'neutral'
|
|
343
|
+
| 'danger'
|
|
344
|
+
| 'success'
|
|
345
|
+
| 'warning'
|
|
346
|
+
| 'info',
|
|
316
347
|
type: propInputs.value<'button' | 'submit' | 'reset' | null>(
|
|
317
348
|
'type',
|
|
318
349
|
props['type'],
|
|
@@ -930,80 +961,6 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
930
961
|
</template>
|
|
931
962
|
|
|
932
963
|
<style scoped>
|
|
933
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
934
|
-
@property --ui-button-active-surface {
|
|
935
|
-
syntax: "*";
|
|
936
|
-
inherits: false;
|
|
937
|
-
}
|
|
938
|
-
@property --ui-button-border {
|
|
939
|
-
syntax: "*";
|
|
940
|
-
inherits: false;
|
|
941
|
-
}
|
|
942
|
-
@property --ui-button-disabled-filter {
|
|
943
|
-
syntax: "*";
|
|
944
|
-
inherits: false;
|
|
945
|
-
}
|
|
946
|
-
@property --ui-button-disabled-opacity {
|
|
947
|
-
syntax: "*";
|
|
948
|
-
inherits: false;
|
|
949
|
-
}
|
|
950
|
-
@property --ui-button-ghost-active-surface {
|
|
951
|
-
syntax: "*";
|
|
952
|
-
inherits: false;
|
|
953
|
-
}
|
|
954
|
-
@property --ui-button-ghost-hover-surface {
|
|
955
|
-
syntax: "*";
|
|
956
|
-
inherits: false;
|
|
957
|
-
}
|
|
958
|
-
@property --ui-button-ghost-text {
|
|
959
|
-
syntax: "*";
|
|
960
|
-
inherits: false;
|
|
961
|
-
}
|
|
962
|
-
@property --ui-button-hover-border {
|
|
963
|
-
syntax: "*";
|
|
964
|
-
inherits: false;
|
|
965
|
-
}
|
|
966
|
-
@property --ui-button-hover-surface {
|
|
967
|
-
syntax: "*";
|
|
968
|
-
inherits: false;
|
|
969
|
-
}
|
|
970
|
-
@property --ui-button-link-hover-text {
|
|
971
|
-
syntax: "*";
|
|
972
|
-
inherits: false;
|
|
973
|
-
}
|
|
974
|
-
@property --ui-button-link-text {
|
|
975
|
-
syntax: "*";
|
|
976
|
-
inherits: false;
|
|
977
|
-
}
|
|
978
|
-
@property --ui-button-min-block-size {
|
|
979
|
-
syntax: "*";
|
|
980
|
-
inherits: false;
|
|
981
|
-
}
|
|
982
|
-
@property --ui-button-radius {
|
|
983
|
-
syntax: "*";
|
|
984
|
-
inherits: false;
|
|
985
|
-
}
|
|
986
|
-
@property --ui-button-shadow {
|
|
987
|
-
syntax: "*";
|
|
988
|
-
inherits: false;
|
|
989
|
-
}
|
|
990
|
-
@property --ui-button-solid-shadow {
|
|
991
|
-
syntax: "*";
|
|
992
|
-
inherits: false;
|
|
993
|
-
}
|
|
994
|
-
@property --ui-button-surface {
|
|
995
|
-
syntax: "*";
|
|
996
|
-
inherits: false;
|
|
997
|
-
}
|
|
998
|
-
@property --ui-button-text {
|
|
999
|
-
syntax: "*";
|
|
1000
|
-
inherits: false;
|
|
1001
|
-
}
|
|
1002
|
-
@property --ui-button-white-space {
|
|
1003
|
-
syntax: "*";
|
|
1004
|
-
inherits: false;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
964
|
/* An anchor keeps the boxed button look even when an app styles ordinary links. */
|
|
1008
965
|
|
|
1009
966
|
/* A count is an adornment, not another line of label text. Keep the standard control height
|
|
@@ -1067,12 +1024,15 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1067
1024
|
--_ui-action-shadow:
|
|
1068
1025
|
var(--_ui-action-edge),
|
|
1069
1026
|
0 1px 2px light-dark(rgb(0 0 0 / 0.10), rgb(0 0 0 / 0.20));
|
|
1027
|
+
--_tone-border: var(--ui-accent-border, var(--ui-accent));
|
|
1028
|
+
--_tone-hover-border: var(--ui-accent-hover-border, var(--ui-accent-hover));
|
|
1029
|
+
--_tone-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
|
|
1070
1030
|
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
1071
1031
|
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
1072
1032
|
--_hue: var(--ui-accent);
|
|
1073
1033
|
--_hue-hover: var(--ui-accent-hover);
|
|
1074
1034
|
--_hue-active: var(--ui-accent-active);
|
|
1075
|
-
--_hue-text: var(--ui-accent-
|
|
1035
|
+
--_hue-text: var(--ui-accent-subtle-text);
|
|
1076
1036
|
--_on-hue: var(--ui-on-accent);
|
|
1077
1037
|
|
|
1078
1038
|
--_tone: var(--_hue);
|
|
@@ -1088,21 +1048,17 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1088
1048
|
vertical-align: middle;
|
|
1089
1049
|
color: var(--_tone-text);
|
|
1090
1050
|
}
|
|
1091
|
-
|
|
1092
1051
|
:global(:scope:dir(rtl):where([data-hn-ui-button])) {
|
|
1093
1052
|
--_ui-action-start: -1px;
|
|
1094
1053
|
}
|
|
1095
|
-
|
|
1096
1054
|
:global(:scope[data-ui-button-state~="align=start"]:where([data-hn-ui-button])) {
|
|
1097
1055
|
justify-content: flex-start !important;
|
|
1098
1056
|
text-align: start;
|
|
1099
1057
|
}
|
|
1100
|
-
|
|
1101
1058
|
:global(:scope[data-ui-button-state~="stretch"]:where([data-hn-ui-button])) {
|
|
1102
1059
|
display: flex !important;
|
|
1103
1060
|
inline-size: 100%;
|
|
1104
1061
|
}
|
|
1105
|
-
|
|
1106
1062
|
:global(:scope:where([data-hn-ui-button])) {
|
|
1107
1063
|
--_button-square-size: var(--ui-button-min-block-size, var(--ui-control-size-md));
|
|
1108
1064
|
box-sizing: border-box !important;
|
|
@@ -1110,9 +1066,12 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1110
1066
|
min-block-size: var(--ui-button-min-block-size, var(--ui-control-size-md));
|
|
1111
1067
|
border-style: solid;
|
|
1112
1068
|
border-width: var(--ui-border-width);
|
|
1113
|
-
border-color: var(--ui-button-border, var(--_tone));
|
|
1069
|
+
border-color: var(--ui-button-border, var(--_tone-text));
|
|
1114
1070
|
border-radius: var(--ui-button-radius, var(--ui-action-radius, var(--ui-radius-md)));
|
|
1115
|
-
background-color: var(
|
|
1071
|
+
background-color: var(
|
|
1072
|
+
--ui-button-surface,
|
|
1073
|
+
oklch(from var(--_tone) l c h / calc(5% * var(--ui-tonal-opacity, 1)))
|
|
1074
|
+
);
|
|
1116
1075
|
color: var(--ui-button-text, var(--_tone-text));
|
|
1117
1076
|
font: inherit;
|
|
1118
1077
|
font-weight: var(--ui-font-medium);
|
|
@@ -1243,8 +1202,11 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1243
1202
|
align-self: center;
|
|
1244
1203
|
}
|
|
1245
1204
|
:global(:scope:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1246
|
-
border-color: var(--ui-button-hover-border, var(--_tone-
|
|
1247
|
-
background-color: var(
|
|
1205
|
+
border-color: var(--ui-button-hover-border, var(--_tone-text));
|
|
1206
|
+
background-color: var(
|
|
1207
|
+
--ui-button-hover-surface,
|
|
1208
|
+
oklch(from var(--_tone) l c h / calc(12% * var(--ui-tonal-opacity, 1)))
|
|
1209
|
+
);
|
|
1248
1210
|
}
|
|
1249
1211
|
|
|
1250
1212
|
:global(:scope[data-appearance="card"][data-tone="neutral"]:where([data-hn-ui-button])) {
|
|
@@ -1262,14 +1224,17 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1262
1224
|
}
|
|
1263
1225
|
:global(:scope:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1264
1226
|
scale: var(--ui-press-scale, 1);
|
|
1265
|
-
background-color: var(
|
|
1227
|
+
background-color: var(
|
|
1228
|
+
--ui-button-active-surface,
|
|
1229
|
+
oklch(from var(--_tone) l c h / calc(18% * var(--ui-tonal-opacity, 1)))
|
|
1230
|
+
);
|
|
1266
1231
|
background-image: none;
|
|
1267
1232
|
box-shadow: var(--ui-pressed);
|
|
1268
1233
|
}
|
|
1269
1234
|
|
|
1270
1235
|
:global(:scope[data-appearance="solid"]:where([data-hn-ui-button])),
|
|
1271
1236
|
:global(:scope[data-appearance="danger"]:where([data-hn-ui-button])) {
|
|
1272
|
-
border-color: var(--_tone);
|
|
1237
|
+
border-color: var(--ui-button-border, var(--_tone-border));
|
|
1273
1238
|
background-color: var(--_tone);
|
|
1274
1239
|
color: var(--_on-tone);
|
|
1275
1240
|
background-image: var(--_tone-highlight);
|
|
@@ -1278,18 +1243,54 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1278
1243
|
var(--_tone-glow);
|
|
1279
1244
|
}
|
|
1280
1245
|
|
|
1281
|
-
:global(:
|
|
1246
|
+
:global(:scope[data-appearance="solid"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])),
|
|
1247
|
+
:global(:scope[data-appearance="danger"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1282
1248
|
background-color: var(--_tone-hover);
|
|
1283
|
-
border-color: var(--_tone-hover);
|
|
1249
|
+
border-color: var(--ui-button-hover-border, var(--_tone-hover-border));
|
|
1284
1250
|
}
|
|
1285
1251
|
|
|
1286
1252
|
:global(:is(:scope[data-appearance="solid"], :scope[data-appearance="danger"]):active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1287
1253
|
background-color: var(--_tone-active);
|
|
1288
|
-
border-color: var(--_tone-active);
|
|
1254
|
+
border-color: var(--_tone-active-border);
|
|
1289
1255
|
background-image: none;
|
|
1290
1256
|
box-shadow: var(--ui-pressed);
|
|
1291
1257
|
}
|
|
1258
|
+
:global(:scope[data-tone="accent-secondary"]:where([data-hn-ui-button])) {
|
|
1259
|
+
--_tone-border: var(--ui-accent-secondary-border, var(--ui-accent-secondary));
|
|
1260
|
+
--_tone-hover-border: var(--ui-accent-secondary-hover-border, var(--ui-accent-secondary-hover));
|
|
1261
|
+
--_tone-active-border: var(
|
|
1262
|
+
--ui-accent-secondary-active-border,
|
|
1263
|
+
var(--ui-accent-secondary-active)
|
|
1264
|
+
);
|
|
1265
|
+
--_tone-highlight: var(--ui-accent-secondary-highlight, none);
|
|
1266
|
+
--_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
|
|
1267
|
+
--_hue: var(--ui-accent-secondary);
|
|
1268
|
+
--_hue-hover: var(--ui-accent-secondary-hover);
|
|
1269
|
+
--_hue-active: var(--ui-accent-secondary-active);
|
|
1270
|
+
--_hue-text: var(--ui-accent-secondary-subtle-text);
|
|
1271
|
+
--_on-hue: var(--ui-accent-secondary-on-strong);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
:global(:scope[data-tone="accent-tertiary"]:where([data-hn-ui-button])) {
|
|
1275
|
+
--_tone-border: var(--ui-accent-tertiary-border, var(--ui-accent-tertiary));
|
|
1276
|
+
--_tone-hover-border: var(--ui-accent-tertiary-hover-border, var(--ui-accent-tertiary-hover));
|
|
1277
|
+
--_tone-active-border: var(
|
|
1278
|
+
--ui-accent-tertiary-active-border,
|
|
1279
|
+
var(--ui-accent-tertiary-active)
|
|
1280
|
+
);
|
|
1281
|
+
--_tone-highlight: var(--ui-accent-tertiary-highlight, none);
|
|
1282
|
+
--_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
|
|
1283
|
+
--_hue: var(--ui-accent-tertiary);
|
|
1284
|
+
--_hue-hover: var(--ui-accent-tertiary-hover);
|
|
1285
|
+
--_hue-active: var(--ui-accent-tertiary-active);
|
|
1286
|
+
--_hue-text: var(--ui-accent-tertiary-subtle-text);
|
|
1287
|
+
--_on-hue: var(--ui-accent-tertiary-on-strong);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1292
1290
|
:global(:scope[data-tone="neutral"]:where([data-hn-ui-button])) {
|
|
1291
|
+
--_tone-border: var(--ui-control-border, var(--ui-neutral-surface));
|
|
1292
|
+
--_tone-hover-border: var(--ui-control-border-hover, var(--ui-neutral-hover));
|
|
1293
|
+
--_tone-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
|
|
1293
1294
|
--_tone-highlight: var(--ui-neutral-highlight, none);
|
|
1294
1295
|
--_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
|
|
1295
1296
|
--_hue: var(--ui-text);
|
|
@@ -1300,37 +1301,38 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1300
1301
|
}
|
|
1301
1302
|
|
|
1302
1303
|
:global(:scope[data-tone="neutral"][data-appearance="solid"]:where([data-hn-ui-button])) {
|
|
1303
|
-
border-color: var(--ui-button-border, var(--
|
|
1304
|
+
border-color: var(--ui-button-border, var(--_tone-border));
|
|
1304
1305
|
background-color: var(--ui-button-surface, var(--ui-neutral-surface));
|
|
1306
|
+
box-shadow: var(--ui-button-solid-shadow, var(--ui-button-shadow, var(--ui-neutral-shadow)));
|
|
1305
1307
|
color: var(--ui-button-text, var(--ui-text));
|
|
1306
1308
|
}
|
|
1307
1309
|
:global(:scope[data-tone="neutral"][data-appearance="outline"]:where([data-hn-ui-button])) {
|
|
1308
1310
|
border-color: var(--ui-button-border, var(--ui-control-border));
|
|
1309
1311
|
background-color: var(--ui-button-surface, transparent);
|
|
1312
|
+
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
1310
1313
|
}
|
|
1311
1314
|
:global(:scope[data-tone="neutral"][data-appearance="outline"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1312
|
-
border-color: var(
|
|
1313
|
-
--ui-button-hover-border,
|
|
1314
|
-
var(--ui-control-border-hover, var(--ui-control-border))
|
|
1315
|
-
);
|
|
1315
|
+
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
|
|
1316
1316
|
background-color: var(--ui-button-hover-surface, var(--ui-neutral-hover));
|
|
1317
1317
|
}
|
|
1318
1318
|
:global(:scope[data-tone="neutral"][data-appearance="outline"]:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1319
|
-
border-color: var(
|
|
1320
|
-
--ui-button-hover-border,
|
|
1321
|
-
var(--ui-control-border-hover, var(--ui-control-border))
|
|
1322
|
-
);
|
|
1319
|
+
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
|
|
1323
1320
|
background-color: var(--ui-button-active-surface, var(--ui-neutral-active));
|
|
1324
1321
|
}
|
|
1325
1322
|
:global(:scope[data-tone="neutral"][data-appearance="solid"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1323
|
+
border-color: var(--ui-button-hover-border, var(--_tone-hover-border));
|
|
1326
1324
|
background-color: var(--ui-button-hover-surface, var(--ui-neutral-hover));
|
|
1327
1325
|
}
|
|
1328
1326
|
:global(:scope[data-tone="neutral"][data-appearance="solid"]:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1327
|
+
border-color: var(--_tone-active-border);
|
|
1329
1328
|
background-color: var(--ui-button-active-surface, var(--ui-neutral-active));
|
|
1330
1329
|
}
|
|
1331
1330
|
|
|
1332
1331
|
:global(:scope[data-tone="danger"]:where([data-hn-ui-button])),
|
|
1333
1332
|
:global(:scope[data-appearance="danger"]:where([data-hn-ui-button])) {
|
|
1333
|
+
--_tone-border: var(--ui-danger-border, var(--ui-danger));
|
|
1334
|
+
--_tone-hover-border: var(--ui-danger-hover-border, var(--ui-danger-hover));
|
|
1335
|
+
--_tone-active-border: var(--ui-danger-active-border, var(--ui-danger-active));
|
|
1334
1336
|
--_tone-highlight: var(--ui-danger-highlight, none);
|
|
1335
1337
|
--_tone-glow: var(--ui-danger-glow, 0 0 transparent);
|
|
1336
1338
|
--_hue: var(--ui-danger);
|
|
@@ -1341,6 +1343,9 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1341
1343
|
}
|
|
1342
1344
|
|
|
1343
1345
|
:global(:scope[data-tone="success"]:where([data-hn-ui-button])) {
|
|
1346
|
+
--_tone-border: var(--ui-success-border, var(--ui-success));
|
|
1347
|
+
--_tone-hover-border: var(--ui-success-hover-border, var(--ui-success-hover));
|
|
1348
|
+
--_tone-active-border: var(--ui-success-active-border, var(--ui-success-active));
|
|
1344
1349
|
--_tone-highlight: var(--ui-success-highlight, none);
|
|
1345
1350
|
--_tone-glow: var(--ui-success-glow, 0 0 transparent);
|
|
1346
1351
|
--_hue: var(--ui-success);
|
|
@@ -1351,6 +1356,9 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1351
1356
|
}
|
|
1352
1357
|
|
|
1353
1358
|
:global(:scope[data-tone="warning"]:where([data-hn-ui-button])) {
|
|
1359
|
+
--_tone-border: var(--ui-warning-border, var(--ui-warning));
|
|
1360
|
+
--_tone-hover-border: var(--ui-warning-hover-border, var(--ui-warning-hover));
|
|
1361
|
+
--_tone-active-border: var(--ui-warning-active-border, var(--ui-warning-active));
|
|
1354
1362
|
--_tone-highlight: var(--ui-warning-highlight, none);
|
|
1355
1363
|
--_tone-glow: var(--ui-warning-glow, 0 0 transparent);
|
|
1356
1364
|
--_hue: var(--ui-warning);
|
|
@@ -1361,6 +1369,9 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1361
1369
|
}
|
|
1362
1370
|
|
|
1363
1371
|
:global(:scope[data-tone="info"]:where([data-hn-ui-button])) {
|
|
1372
|
+
--_tone-border: var(--ui-info-border, var(--ui-info));
|
|
1373
|
+
--_tone-hover-border: var(--ui-info-hover-border, var(--ui-info-hover));
|
|
1374
|
+
--_tone-active-border: var(--ui-info-active-border, var(--ui-info-active));
|
|
1364
1375
|
--_tone-highlight: var(--ui-info-highlight, none);
|
|
1365
1376
|
--_tone-glow: var(--ui-info-glow, 0 0 transparent);
|
|
1366
1377
|
--_hue: var(--ui-info);
|
|
@@ -1411,7 +1422,10 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1411
1422
|
color: var(--ui-button-ghost-text, var(--_tone-text));
|
|
1412
1423
|
}
|
|
1413
1424
|
:global(:scope[data-appearance="ghost"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1414
|
-
background-color: var(
|
|
1425
|
+
background-color: var(
|
|
1426
|
+
--ui-button-ghost-hover-surface,
|
|
1427
|
+
oklch(from var(--_tone) l c h / calc(10% * var(--ui-tonal-opacity, 1)))
|
|
1428
|
+
);
|
|
1415
1429
|
border-color: transparent;
|
|
1416
1430
|
}
|
|
1417
1431
|
|
package/vue/UiCallout.vue
CHANGED
|
@@ -266,52 +266,6 @@ const hostState = computed(() =>
|
|
|
266
266
|
</template>
|
|
267
267
|
|
|
268
268
|
<style scoped>
|
|
269
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
270
|
-
@property --ui-callout-border {
|
|
271
|
-
syntax: "*";
|
|
272
|
-
inherits: false;
|
|
273
|
-
}
|
|
274
|
-
@property --ui-callout-border-width {
|
|
275
|
-
syntax: "*";
|
|
276
|
-
inherits: false;
|
|
277
|
-
}
|
|
278
|
-
@property --ui-callout-gap {
|
|
279
|
-
syntax: "*";
|
|
280
|
-
inherits: false;
|
|
281
|
-
}
|
|
282
|
-
@property --ui-callout-icon {
|
|
283
|
-
syntax: "*";
|
|
284
|
-
inherits: false;
|
|
285
|
-
}
|
|
286
|
-
@property --ui-callout-icon-column {
|
|
287
|
-
syntax: "*";
|
|
288
|
-
inherits: false;
|
|
289
|
-
}
|
|
290
|
-
@property --ui-callout-icon-size {
|
|
291
|
-
syntax: "*";
|
|
292
|
-
inherits: false;
|
|
293
|
-
}
|
|
294
|
-
@property --ui-callout-leading-border-width {
|
|
295
|
-
syntax: "*";
|
|
296
|
-
inherits: false;
|
|
297
|
-
}
|
|
298
|
-
@property --ui-callout-padding-block {
|
|
299
|
-
syntax: "*";
|
|
300
|
-
inherits: false;
|
|
301
|
-
}
|
|
302
|
-
@property --ui-callout-padding-inline {
|
|
303
|
-
syntax: "*";
|
|
304
|
-
inherits: false;
|
|
305
|
-
}
|
|
306
|
-
@property --ui-callout-surface {
|
|
307
|
-
syntax: "*";
|
|
308
|
-
inherits: false;
|
|
309
|
-
}
|
|
310
|
-
@property --ui-callout-text {
|
|
311
|
-
syntax: "*";
|
|
312
|
-
inherits: false;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
269
|
/* One line box tall, so the icon centres on the first line of text. */
|
|
316
270
|
|
|
317
271
|
/* A link in the callout's text is underlined, so it reads as a link by more than colour. */
|
|
@@ -320,20 +274,14 @@ const hostState = computed(() =>
|
|
|
320
274
|
|
|
321
275
|
@scope (.ui-callout) to ([data-hn]) {
|
|
322
276
|
:global(:scope:where([data-hn-ui-callout])) {
|
|
323
|
-
/*
|
|
277
|
+
/* Resolve shared part values at the component root. */
|
|
324
278
|
--_ui-callout-icon-column: var(--ui-callout-icon-column);
|
|
325
279
|
--_ui-callout-icon: var(--ui-callout-icon);
|
|
326
280
|
--_ui-callout-icon-size: var(--ui-callout-icon-size);
|
|
327
281
|
|
|
328
|
-
|
|
329
|
-
--_callout-
|
|
330
|
-
|
|
331
|
-
from var(--_callout-border)
|
|
332
|
-
96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg)))))
|
|
333
|
-
h
|
|
334
|
-
),
|
|
335
|
-
oklch(from var(--_callout-border) 25% min(c, 0.035) h)
|
|
336
|
-
);
|
|
282
|
+
--_callout-surface: var(--ui-info-soft);
|
|
283
|
+
--_callout-tone-text: var(--ui-info-subtle-text);
|
|
284
|
+
--_ui-surface-text: var(--ui-callout-text, var(--_callout-tone-text));
|
|
337
285
|
--_ui-selection-context-surface: light-dark(
|
|
338
286
|
oklch(
|
|
339
287
|
from var(--ui-callout-surface, var(--_callout-surface))
|
|
@@ -364,8 +312,8 @@ const hostState = computed(() =>
|
|
|
364
312
|
);
|
|
365
313
|
--_ui-selection-context-text: var(--ui-text-primary);
|
|
366
314
|
|
|
367
|
-
--_callout-border: var(--ui-info-
|
|
368
|
-
--_callout-icon: var(--ui-info-
|
|
315
|
+
--_callout-border: var(--ui-info-soft-border);
|
|
316
|
+
--_callout-icon: var(--ui-info-subtle-text);
|
|
369
317
|
|
|
370
318
|
display: grid !important;
|
|
371
319
|
grid-template-columns: var(--ui-callout-icon-column, 1.125rem) minmax(0, 1fr);
|
|
@@ -376,14 +324,14 @@ const hostState = computed(() =>
|
|
|
376
324
|
padding-inline-start: var(--ui-callout-padding-inline, var(--ui-space-2)) !important;
|
|
377
325
|
padding-inline-end: var(--ui-callout-padding-inline, var(--ui-space-3)) !important;
|
|
378
326
|
border: var(--ui-callout-border-width, var(--ui-border-width)) solid
|
|
379
|
-
|
|
327
|
+
var(--ui-callout-border, var(--_callout-border));
|
|
380
328
|
border-inline-start: var(
|
|
381
329
|
--ui-callout-leading-border-width,
|
|
382
330
|
var(--ui-callout-border-width, var(--ui-border-width))
|
|
383
|
-
) solid
|
|
331
|
+
) solid var(--ui-callout-border, var(--_callout-border));
|
|
384
332
|
border-radius: var(--ui-radius-md);
|
|
385
333
|
background: var(--ui-callout-surface, var(--_callout-surface));
|
|
386
|
-
color: var(--ui-callout-text, var(--
|
|
334
|
+
color: var(--ui-callout-text, var(--_ui-surface-text));
|
|
387
335
|
font-family: var(--ui-font-family-sans);
|
|
388
336
|
font-size: var(--ui-font-size-sm);
|
|
389
337
|
font-weight: var(--ui-font-normal);
|
|
@@ -417,37 +365,48 @@ const hostState = computed(() =>
|
|
|
417
365
|
--_ui-selection-context-border: initial;
|
|
418
366
|
--_ui-selection-context-text: initial;
|
|
419
367
|
--_callout-surface: var(--ui-surface-muted);
|
|
368
|
+
--_callout-tone-text: var(--ui-text-primary);
|
|
420
369
|
--_callout-border: var(--ui-border-strong);
|
|
421
370
|
--_callout-icon: var(--ui-text-secondary);
|
|
422
371
|
}
|
|
423
372
|
|
|
424
373
|
:global(:scope[data-ui-callout-state~="tone=tip"]:where([data-hn-ui-callout])) {
|
|
425
|
-
--_callout-border: var(--ui-success-
|
|
426
|
-
--_callout-
|
|
374
|
+
--_callout-border: var(--ui-success-soft-border);
|
|
375
|
+
--_callout-surface: var(--ui-success-soft);
|
|
376
|
+
--_callout-tone-text: var(--ui-success-subtle-text);
|
|
377
|
+
--_callout-icon: var(--ui-success-subtle-text);
|
|
427
378
|
}
|
|
428
379
|
|
|
429
380
|
:global(:scope[data-ui-callout-state~="tone=important"]:where([data-hn-ui-callout])) {
|
|
430
|
-
--_callout-border: var(--ui-accent-
|
|
431
|
-
--_callout-
|
|
381
|
+
--_callout-border: var(--ui-accent-soft-border);
|
|
382
|
+
--_callout-surface: var(--ui-accent-soft);
|
|
383
|
+
--_callout-tone-text: var(--ui-accent-subtle-text);
|
|
384
|
+
--_callout-icon: var(--ui-accent-subtle-text);
|
|
432
385
|
}
|
|
433
386
|
|
|
434
387
|
:global(:scope[data-ui-callout-state~="tone=warning"]:where([data-hn-ui-callout])) {
|
|
435
|
-
--_callout-border: var(--ui-warning-
|
|
436
|
-
--_callout-
|
|
388
|
+
--_callout-border: var(--ui-warning-soft-border);
|
|
389
|
+
--_callout-surface: var(--ui-warning-soft);
|
|
390
|
+
--_callout-tone-text: var(--ui-warning-subtle-text);
|
|
391
|
+
--_callout-icon: var(--ui-warning-subtle-text);
|
|
437
392
|
}
|
|
438
393
|
|
|
439
394
|
:global(:scope[data-ui-callout-state~="tone=success"]:where([data-hn-ui-callout])) {
|
|
440
|
-
--_callout-border: var(--ui-success-
|
|
441
|
-
--_callout-
|
|
395
|
+
--_callout-border: var(--ui-success-soft-border);
|
|
396
|
+
--_callout-surface: var(--ui-success-soft);
|
|
397
|
+
--_callout-tone-text: var(--ui-success-subtle-text);
|
|
398
|
+
--_callout-icon: var(--ui-success-subtle-text);
|
|
442
399
|
}
|
|
443
400
|
|
|
444
401
|
:global(:scope[data-ui-callout-state~="tone=danger"]:where([data-hn-ui-callout])),
|
|
445
402
|
:global(:scope[data-ui-callout-state~="tone=caution"]:where([data-hn-ui-callout])) {
|
|
446
|
-
--_callout-border: var(--ui-danger-
|
|
447
|
-
--_callout-
|
|
403
|
+
--_callout-border: var(--ui-danger-soft-border);
|
|
404
|
+
--_callout-surface: var(--ui-danger-soft);
|
|
405
|
+
--_callout-tone-text: var(--ui-danger-subtle-text);
|
|
406
|
+
--_callout-icon: var(--ui-danger-subtle-text);
|
|
448
407
|
}
|
|
449
408
|
:global(.content :where(:not([data-hn-ui-callout])):is(a)) {
|
|
450
|
-
color: var(--ui-accent-
|
|
409
|
+
color: var(--ui-accent-subtle-text);
|
|
451
410
|
text-decoration: underline;
|
|
452
411
|
text-decoration-thickness: 0.06em;
|
|
453
412
|
text-underline-offset: 0.18em;
|
package/vue/UiCard.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
21
21
|
type: PropType<"content" | "sm" | "md" | "lg" | null>;
|
|
22
22
|
};
|
|
23
23
|
tone: {
|
|
24
|
-
type: PropType<"neutral" | "accent" | "info" | "success" | "warning" | "danger" | null>;
|
|
24
|
+
type: PropType<"neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null>;
|
|
25
25
|
};
|
|
26
26
|
treatment: {
|
|
27
27
|
type: PropType<"standard" | "expressive" | null>;
|
|
@@ -43,7 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
43
43
|
type: PropType<"content" | "sm" | "md" | "lg" | null>;
|
|
44
44
|
};
|
|
45
45
|
tone: {
|
|
46
|
-
type: PropType<"neutral" | "accent" | "info" | "success" | "warning" | "danger" | null>;
|
|
46
|
+
type: PropType<"neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null>;
|
|
47
47
|
};
|
|
48
48
|
treatment: {
|
|
49
49
|
type: PropType<"standard" | "expressive" | null>;
|