@cratis/components 4.24.0 → 4.25.1
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/compat-manifest.json +11 -11
- package/dist/esm/CommandDialog/CommandDialog.d.ts.map +1 -1
- package/dist/esm/CommandDialog/CommandDialog.js +1 -1
- package/dist/esm/CommandDialog/CommandDialog.js.map +1 -1
- package/dist/esm/Common/CratisComponentsProvider.d.ts +2 -0
- package/dist/esm/Common/CratisComponentsProvider.d.ts.map +1 -1
- package/dist/esm/Common/CratisComponentsProvider.js.map +1 -1
- package/dist/esm/ConfigurationEditor/ConfigurationDestination.d.ts +13 -0
- package/dist/esm/ConfigurationEditor/ConfigurationDestination.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationDestination.js +4 -0
- package/dist/esm/ConfigurationEditor/ConfigurationDestination.js.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditor.d.ts +27 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditor.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditor.js +13 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditor.js.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorPartAttributes.d.ts +6 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorPartAttributes.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorPartAttributes.js +4 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorPartAttributes.js.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorProvider.d.ts +28 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorProvider.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorProvider.js +16 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorProvider.js.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorRenderProps.d.ts +20 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorRenderProps.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorRenderProps.js +4 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorRenderProps.js.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorRenderer.d.ts +5 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorRenderer.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorRenderer.js +4 -0
- package/dist/esm/ConfigurationEditor/ConfigurationEditorRenderer.js.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationIconReference.d.ts +17 -0
- package/dist/esm/ConfigurationEditor/ConfigurationIconReference.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/ConfigurationIconReference.js +4 -0
- package/dist/esm/ConfigurationEditor/ConfigurationIconReference.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItem.d.ts +16 -0
- package/dist/esm/ConfigurationEditor/OrderedItem.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItem.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItem.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemCapabilities.d.ts +23 -0
- package/dist/esm/ConfigurationEditor/OrderedItemCapabilities.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemCapabilities.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemCapabilities.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemDestinationField.d.ts +22 -0
- package/dist/esm/ConfigurationEditor/OrderedItemDestinationField.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemDestinationField.js +23 -0
- package/dist/esm/ConfigurationEditor/OrderedItemDestinationField.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemEditor.d.ts +74 -0
- package/dist/esm/ConfigurationEditor/OrderedItemEditor.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemEditor.js +188 -0
- package/dist/esm/ConfigurationEditor/OrderedItemEditor.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemEditorParts.d.ts +43 -0
- package/dist/esm/ConfigurationEditor/OrderedItemEditorParts.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemEditorParts.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemEditorParts.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemField.d.ts +3 -0
- package/dist/esm/ConfigurationEditor/OrderedItemField.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemField.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemField.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemFieldAccess.d.ts +9 -0
- package/dist/esm/ConfigurationEditor/OrderedItemFieldAccess.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemFieldAccess.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemFieldAccess.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemIconField.d.ts +32 -0
- package/dist/esm/ConfigurationEditor/OrderedItemIconField.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemIconField.js +26 -0
- package/dist/esm/ConfigurationEditor/OrderedItemIconField.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemIconFieldProps.d.ts +26 -0
- package/dist/esm/ConfigurationEditor/OrderedItemIconFieldProps.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemIconFieldProps.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemIconFieldProps.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemLabels.d.ts +47 -0
- package/dist/esm/ConfigurationEditor/OrderedItemLabels.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemLabels.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemLabels.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemOperation.d.ts +3 -0
- package/dist/esm/ConfigurationEditor/OrderedItemOperation.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemOperation.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemOperation.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemProposal.d.ts +45 -0
- package/dist/esm/ConfigurationEditor/OrderedItemProposal.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemProposal.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemProposal.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemRow.d.ts +5 -0
- package/dist/esm/ConfigurationEditor/OrderedItemRow.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemRow.js +59 -0
- package/dist/esm/ConfigurationEditor/OrderedItemRow.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemRowProps.d.ts +43 -0
- package/dist/esm/ConfigurationEditor/OrderedItemRowProps.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemRowProps.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemRowProps.js.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemValidation.d.ts +7 -0
- package/dist/esm/ConfigurationEditor/OrderedItemValidation.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/OrderedItemValidation.js +4 -0
- package/dist/esm/ConfigurationEditor/OrderedItemValidation.js.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyChangeProposal.d.ts +15 -0
- package/dist/esm/ConfigurationEditor/PropertyChangeProposal.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyChangeProposal.js +4 -0
- package/dist/esm/ConfigurationEditor/PropertyChangeProposal.js.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyChoice.d.ts +8 -0
- package/dist/esm/ConfigurationEditor/PropertyChoice.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyChoice.js +4 -0
- package/dist/esm/ConfigurationEditor/PropertyChoice.js.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyControl.d.ts +17 -0
- package/dist/esm/ConfigurationEditor/PropertyControl.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyControl.js +88 -0
- package/dist/esm/ConfigurationEditor/PropertyControl.js.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyControls.d.ts +40 -0
- package/dist/esm/ConfigurationEditor/PropertyControls.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyControls.js +41 -0
- package/dist/esm/ConfigurationEditor/PropertyControls.js.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyControlsLabels.d.ts +18 -0
- package/dist/esm/ConfigurationEditor/PropertyControlsLabels.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyControlsLabels.js +4 -0
- package/dist/esm/ConfigurationEditor/PropertyControlsLabels.js.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyControlsParts.d.ts +31 -0
- package/dist/esm/ConfigurationEditor/PropertyControlsParts.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyControlsParts.js +4 -0
- package/dist/esm/ConfigurationEditor/PropertyControlsParts.js.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyDescriptor.d.ts +55 -0
- package/dist/esm/ConfigurationEditor/PropertyDescriptor.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyDescriptor.js +4 -0
- package/dist/esm/ConfigurationEditor/PropertyDescriptor.js.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyGroup.d.ts +16 -0
- package/dist/esm/ConfigurationEditor/PropertyGroup.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/PropertyGroup.js +4 -0
- package/dist/esm/ConfigurationEditor/PropertyGroup.js.map +1 -0
- package/dist/esm/ConfigurationEditor/defaultOrderedItemLabels.d.ts +4 -0
- package/dist/esm/ConfigurationEditor/defaultOrderedItemLabels.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/defaultOrderedItemLabels.js +25 -0
- package/dist/esm/ConfigurationEditor/defaultOrderedItemLabels.js.map +1 -0
- package/dist/esm/ConfigurationEditor/defaultPropertyControlsLabels.d.ts +4 -0
- package/dist/esm/ConfigurationEditor/defaultPropertyControlsLabels.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/defaultPropertyControlsLabels.js +12 -0
- package/dist/esm/ConfigurationEditor/defaultPropertyControlsLabels.js.map +1 -0
- package/dist/esm/ConfigurationEditor/index.d.ts +32 -0
- package/dist/esm/ConfigurationEditor/index.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/index.js +7 -0
- package/dist/esm/ConfigurationEditor/index.js.map +1 -0
- package/dist/esm/ConfigurationEditor/moveOrderedItem.d.ts +5 -0
- package/dist/esm/ConfigurationEditor/moveOrderedItem.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/moveOrderedItem.js +9 -0
- package/dist/esm/ConfigurationEditor/moveOrderedItem.js.map +1 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemDropIndex.d.ts +10 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemDropIndex.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemDropIndex.js +7 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemDropIndex.js.map +1 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemFieldAccess.d.ts +6 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemFieldAccess.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemFieldAccess.js +4 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemFieldAccess.js.map +1 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemLabels.d.ts +4 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemLabels.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemLabels.js +13 -0
- package/dist/esm/ConfigurationEditor/resolveOrderedItemLabels.js.map +1 -0
- package/dist/esm/ConfigurationEditor/validateOrderedItem.d.ts +18 -0
- package/dist/esm/ConfigurationEditor/validateOrderedItem.d.ts.map +1 -0
- package/dist/esm/ConfigurationEditor/validateOrderedItem.js +21 -0
- package/dist/esm/ConfigurationEditor/validateOrderedItem.js.map +1 -0
- package/dist/esm/Toolbar/ToolbarButton.d.ts +4 -1
- package/dist/esm/Toolbar/ToolbarButton.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarButton.js +12 -2
- package/dist/esm/Toolbar/ToolbarButton.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarDrawerContext.d.ts +13 -0
- package/dist/esm/Toolbar/ToolbarDrawerContext.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarDrawerContext.js +7 -0
- package/dist/esm/Toolbar/ToolbarDrawerContext.js.map +1 -0
- package/dist/esm/Toolbar/ToolbarDrawerItem.d.ts +23 -0
- package/dist/esm/Toolbar/ToolbarDrawerItem.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarDrawerItem.js +4 -0
- package/dist/esm/Toolbar/ToolbarDrawerItem.js.map +1 -0
- package/dist/esm/Toolbar/ToolbarDrawerPlacement.d.ts +57 -0
- package/dist/esm/Toolbar/ToolbarDrawerPlacement.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarDrawerPlacement.js +51 -0
- package/dist/esm/Toolbar/ToolbarDrawerPlacement.js.map +1 -0
- package/dist/esm/Toolbar/ToolbarDrawerTile.d.ts +43 -0
- package/dist/esm/Toolbar/ToolbarDrawerTile.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarDrawerTile.js +31 -0
- package/dist/esm/Toolbar/ToolbarDrawerTile.js.map +1 -0
- package/dist/esm/Toolbar/ToolbarFolder.d.ts +51 -5
- package/dist/esm/Toolbar/ToolbarFolder.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarFolder.js +109 -10
- package/dist/esm/Toolbar/ToolbarFolder.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarFolderPresentation.d.ts +8 -0
- package/dist/esm/Toolbar/ToolbarFolderPresentation.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarFolderPresentation.js +4 -0
- package/dist/esm/Toolbar/ToolbarFolderPresentation.js.map +1 -0
- package/dist/esm/Toolbar/index.d.ts +2 -0
- package/dist/esm/Toolbar/index.d.ts.map +1 -1
- package/dist/esm/configuration/CratisComponentsDefaults.d.ts.map +1 -1
- package/dist/esm/configuration/CratisComponentsDefaults.js +1 -0
- package/dist/esm/configuration/CratisComponentsDefaults.js.map +1 -1
- package/dist/esm/styles.ConfigurationEditor.css +710 -0
- package/dist/esm/styles.IconPicker.css +5 -0
- package/dist/esm/styles.Toolbar.css +174 -0
- package/dist/esm/styles.css +425 -0
- package/dist/esm/types/parts.d.ts +41 -1
- package/dist/esm/types/parts.d.ts.map +1 -1
- package/dist/esm/types/parts.js +41 -1
- package/dist/esm/types/parts.js.map +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
@layer cratis-components {
|
|
2
|
+
/* @cratis/components/ConfigurationEditor/styles — requires @cratis/components/styles/base. Areas: ConfigurationEditor, IconPicker. */
|
|
3
|
+
/* ── ./ConfigurationEditor/ConfigurationEditor.css ─────────────────────────────────────── */
|
|
4
|
+
/* Copyright (c) Cratis. All rights reserved. */
|
|
5
|
+
/* Licensed under the MIT license. See LICENSE file in the project root for full license information. */
|
|
6
|
+
|
|
7
|
+
.cratis-ordered-item-editor,
|
|
8
|
+
.cratis-property-controls {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 1rem;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
color: var(--cratis-text-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.cratis-ordered-item-editor__section,
|
|
17
|
+
.cratis-property-controls__group {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: 0.5rem;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cratis-ordered-item-editor__title,
|
|
25
|
+
.cratis-property-controls__title {
|
|
26
|
+
margin: 0;
|
|
27
|
+
font-size: 0.875rem;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cratis-ordered-item-editor__list {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 0.5rem;
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
list-style: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cratis-ordered-item-editor__empty,
|
|
41
|
+
.cratis-property-controls__description {
|
|
42
|
+
margin: 0;
|
|
43
|
+
color: var(--cratis-text-color-secondary);
|
|
44
|
+
font-size: 0.875rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ── Items ───────────────────────────────────────────────────────────────── */
|
|
48
|
+
|
|
49
|
+
.cratis-ordered-item {
|
|
50
|
+
position: relative;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
align-items: flex-start;
|
|
54
|
+
gap: 0.5rem;
|
|
55
|
+
padding: 0.5rem 0.75rem;
|
|
56
|
+
border: 1px solid var(--cratis-surface-border);
|
|
57
|
+
border-radius: var(--cratis-border-radius);
|
|
58
|
+
background: var(--cratis-surface-card);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.cratis-ordered-item:focus-visible {
|
|
62
|
+
outline: none;
|
|
63
|
+
box-shadow: var(--cratis-focus-ring);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* A locked item is told apart by its dashed border and its "Locked" text, never by opacity. */
|
|
67
|
+
.cratis-ordered-item[data-locked] {
|
|
68
|
+
border-style: dashed;
|
|
69
|
+
background: var(--cratis-surface-100);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.cratis-ordered-item[data-dragging] {
|
|
73
|
+
border-color: var(--cratis-primary-color);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.cratis-ordered-item[data-drop-position='before'] {
|
|
77
|
+
box-shadow: 0 -2px 0 0 var(--cratis-primary-color);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cratis-ordered-item[data-drop-position='after'] {
|
|
81
|
+
box-shadow: 0 2px 0 0 var(--cratis-primary-color);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.cratis-ordered-item__reorder {
|
|
85
|
+
display: flex;
|
|
86
|
+
gap: 0.25rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cratis-ordered-item__fields {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex: 1 1 14rem;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
gap: 0.5rem;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cratis-ordered-item__text {
|
|
98
|
+
min-width: 0;
|
|
99
|
+
overflow-wrap: anywhere;
|
|
100
|
+
font-size: 0.875rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cratis-ordered-item__state {
|
|
104
|
+
flex: none;
|
|
105
|
+
padding: 0.125rem 0.5rem;
|
|
106
|
+
border: 1px solid var(--cratis-surface-border);
|
|
107
|
+
border-radius: 999px;
|
|
108
|
+
color: var(--cratis-text-color);
|
|
109
|
+
font-size: 0.75rem;
|
|
110
|
+
font-weight: 600;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cratis-ordered-item__input,
|
|
114
|
+
.cratis-property__input:not([type='checkbox']) {
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
width: 100%;
|
|
117
|
+
min-height: var(--cratis-control-height);
|
|
118
|
+
padding: 0.375rem 0.75rem;
|
|
119
|
+
border: 1px solid var(--cratis-control-border);
|
|
120
|
+
border-radius: var(--cratis-border-radius);
|
|
121
|
+
background: var(--cratis-control-background);
|
|
122
|
+
color: inherit;
|
|
123
|
+
font: inherit;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.cratis-ordered-item__input:focus-visible,
|
|
127
|
+
.cratis-property__input:focus-visible {
|
|
128
|
+
outline: none;
|
|
129
|
+
box-shadow: var(--cratis-focus-ring);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cratis-ordered-item__input[data-invalid],
|
|
133
|
+
.cratis-property__input[data-invalid] {
|
|
134
|
+
border-color: var(--cratis-red-500);
|
|
135
|
+
border-style: dashed;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.cratis-ordered-item__button {
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
min-width: var(--cratis-control-height);
|
|
143
|
+
min-height: var(--cratis-control-height);
|
|
144
|
+
padding: 0 0.5rem;
|
|
145
|
+
border: 1px solid var(--cratis-control-border);
|
|
146
|
+
border-radius: var(--cratis-border-radius);
|
|
147
|
+
background: var(--cratis-control-background);
|
|
148
|
+
color: inherit;
|
|
149
|
+
font: inherit;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.cratis-ordered-item__button:hover {
|
|
154
|
+
background: var(--cratis-surface-hover);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.cratis-ordered-item__button:focus-visible {
|
|
158
|
+
outline: none;
|
|
159
|
+
box-shadow: var(--cratis-focus-ring);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.cratis-ordered-item__button[aria-disabled='true'] {
|
|
163
|
+
border-style: dashed;
|
|
164
|
+
color: var(--cratis-text-color-secondary);
|
|
165
|
+
cursor: not-allowed;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.cratis-ordered-item__handle {
|
|
169
|
+
cursor: grab;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.cratis-ordered-item__handle:active {
|
|
173
|
+
cursor: grabbing;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.cratis-ordered-item-editor__add {
|
|
177
|
+
align-self: flex-start;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.cratis-ordered-item__message,
|
|
181
|
+
.cratis-property__message {
|
|
182
|
+
margin: 0;
|
|
183
|
+
font-size: 0.8125rem;
|
|
184
|
+
color: var(--cratis-red-500);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* A restriction note reads as information, not as an error. */
|
|
188
|
+
.cratis-ordered-item__message--note,
|
|
189
|
+
.cratis-property__message--note {
|
|
190
|
+
color: var(--cratis-text-color-secondary);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.cratis-ordered-item__hidden {
|
|
194
|
+
position: absolute;
|
|
195
|
+
width: 1px;
|
|
196
|
+
height: 1px;
|
|
197
|
+
margin: -1px;
|
|
198
|
+
padding: 0;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
clip-path: inset(50%);
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
border: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* ── Property controls ───────────────────────────────────────────────────── */
|
|
206
|
+
|
|
207
|
+
.cratis-property {
|
|
208
|
+
display: grid;
|
|
209
|
+
grid-template-columns: minmax(6rem, 1fr) minmax(0, 2fr) auto;
|
|
210
|
+
align-items: center;
|
|
211
|
+
gap: 0.25rem 0.75rem;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.cratis-property > .cratis-property__message {
|
|
215
|
+
grid-column: 2 / -1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.cratis-property__label {
|
|
219
|
+
font-size: 0.875rem;
|
|
220
|
+
overflow-wrap: anywhere;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.cratis-property__value {
|
|
224
|
+
font-size: 0.875rem;
|
|
225
|
+
font-weight: 500;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.cratis-property__unit {
|
|
229
|
+
color: var(--cratis-text-color-secondary);
|
|
230
|
+
font-size: 0.8125rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Narrow panels: stack the label above its control. */
|
|
234
|
+
@container (max-width: 22rem) {
|
|
235
|
+
.cratis-property {
|
|
236
|
+
grid-template-columns: minmax(0, 1fr);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.cratis-property > .cratis-property__message {
|
|
240
|
+
grid-column: 1;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.cratis-ordered-item-editor,
|
|
245
|
+
.cratis-property-controls {
|
|
246
|
+
container-type: inline-size;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* ── ./IconPicker/IconPicker.css ─────────────────────────────────────── */
|
|
250
|
+
/* Copyright (c) Cratis. All rights reserved. */
|
|
251
|
+
/* Licensed under the MIT license. See LICENSE file in the project root for full license information. */
|
|
252
|
+
.cratis-icon-picker {
|
|
253
|
+
display: inline-flex;
|
|
254
|
+
flex-direction: column;
|
|
255
|
+
gap: 0.25rem;
|
|
256
|
+
max-width: 100%;
|
|
257
|
+
color: var(--cratis-text-color);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.cratis-icon-picker__trigger {
|
|
261
|
+
display: inline-flex;
|
|
262
|
+
min-height: var(--cratis-control-height);
|
|
263
|
+
max-width: 100%;
|
|
264
|
+
box-sizing: border-box;
|
|
265
|
+
align-items: center;
|
|
266
|
+
gap: 0.625rem;
|
|
267
|
+
padding: 0.375rem 0.75rem;
|
|
268
|
+
border: 1px solid var(--cratis-control-border);
|
|
269
|
+
border-radius: var(--cratis-border-radius);
|
|
270
|
+
background: var(--cratis-control-background);
|
|
271
|
+
color: inherit;
|
|
272
|
+
font: inherit;
|
|
273
|
+
text-align: start;
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.cratis-icon-picker__trigger[data-hovered] {
|
|
278
|
+
background: var(--cratis-surface-hover);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.cratis-icon-picker__trigger[data-focus-visible],
|
|
282
|
+
.cratis-icon-picker__trigger[data-pressed] {
|
|
283
|
+
outline: none;
|
|
284
|
+
box-shadow: var(--cratis-focus-ring);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.cratis-icon-picker__trigger[data-open] {
|
|
288
|
+
border-color: var(--cratis-primary-color);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.cratis-icon-picker__trigger[data-invalid] {
|
|
292
|
+
border-color: var(--cratis-red-500);
|
|
293
|
+
border-style: dashed;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.cratis-icon-picker__trigger[data-missing] {
|
|
297
|
+
border-color: var(--cratis-orange-500);
|
|
298
|
+
border-style: dashed;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.cratis-icon-picker__trigger[data-readonly] {
|
|
302
|
+
cursor: default;
|
|
303
|
+
background: var(--cratis-surface-100);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.cratis-icon-picker__trigger[data-disabled] {
|
|
307
|
+
opacity: var(--cratis-disabled-opacity);
|
|
308
|
+
cursor: not-allowed;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.cratis-icon-picker__glyph {
|
|
312
|
+
display: inline-flex;
|
|
313
|
+
width: 1.5rem;
|
|
314
|
+
height: 1.5rem;
|
|
315
|
+
flex: none;
|
|
316
|
+
align-items: center;
|
|
317
|
+
justify-content: center;
|
|
318
|
+
font-size: 1.25rem;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.cratis-icon-picker__trigger[data-missing] .cratis-icon-picker__glyph {
|
|
322
|
+
color: var(--cratis-orange-500);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.cratis-icon-picker__name {
|
|
326
|
+
min-width: 0;
|
|
327
|
+
overflow: hidden;
|
|
328
|
+
text-overflow: ellipsis;
|
|
329
|
+
white-space: nowrap;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.cratis-icon-picker__provider {
|
|
333
|
+
min-width: 0;
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
text-overflow: ellipsis;
|
|
336
|
+
white-space: nowrap;
|
|
337
|
+
color: var(--cratis-text-color-secondary);
|
|
338
|
+
font-size: 0.75rem;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.cratis-icon-picker__chevron {
|
|
342
|
+
margin-inline-start: auto;
|
|
343
|
+
flex: none;
|
|
344
|
+
color: var(--cratis-text-color-secondary);
|
|
345
|
+
font-size: 0.75rem;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.cratis-icon-picker__messages {
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
gap: 0.125rem;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.cratis-icon-picker__message {
|
|
355
|
+
margin: 0;
|
|
356
|
+
color: var(--cratis-text-color-secondary);
|
|
357
|
+
font-size: 0.8125rem;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.cratis-icon-picker[data-invalid] .cratis-icon-picker__message {
|
|
361
|
+
color: var(--cratis-red-500);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.cratis-icon-picker__popover {
|
|
365
|
+
z-index: var(--cratis-z-index-overlay);
|
|
366
|
+
display: flex;
|
|
367
|
+
width: min(34rem, calc(100vw - 1rem));
|
|
368
|
+
height: 30rem;
|
|
369
|
+
flex-direction: column;
|
|
370
|
+
box-sizing: border-box;
|
|
371
|
+
overflow: hidden;
|
|
372
|
+
border: 1px solid var(--cratis-surface-border);
|
|
373
|
+
border-radius: var(--cratis-border-radius);
|
|
374
|
+
background: var(--cratis-surface-overlay);
|
|
375
|
+
color: var(--cratis-text-color);
|
|
376
|
+
box-shadow: var(--cratis-shadow-overlay);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.cratis-icon-picker__overlay {
|
|
380
|
+
position: fixed;
|
|
381
|
+
inset: 0;
|
|
382
|
+
z-index: var(--cratis-z-index-overlay);
|
|
383
|
+
display: flex;
|
|
384
|
+
align-items: flex-end;
|
|
385
|
+
background: var(--cratis-maskbg);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.cratis-icon-picker__sheet {
|
|
389
|
+
display: flex;
|
|
390
|
+
width: 100%;
|
|
391
|
+
height: min(36rem, 90dvh);
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
box-sizing: border-box;
|
|
394
|
+
overflow: hidden;
|
|
395
|
+
border: 1px solid var(--cratis-surface-border);
|
|
396
|
+
border-radius: calc(var(--cratis-border-radius) * 2) calc(var(--cratis-border-radius) * 2) 0 0;
|
|
397
|
+
background: var(--cratis-surface-overlay);
|
|
398
|
+
color: var(--cratis-text-color);
|
|
399
|
+
box-shadow: var(--cratis-shadow-dialog);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.cratis-icon-picker__dialog {
|
|
403
|
+
display: flex;
|
|
404
|
+
min-height: 0;
|
|
405
|
+
flex: 1 1 auto;
|
|
406
|
+
flex-direction: column;
|
|
407
|
+
gap: 0.625rem;
|
|
408
|
+
box-sizing: border-box;
|
|
409
|
+
padding: 0.75rem;
|
|
410
|
+
outline: none;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.cratis-icon-picker__header {
|
|
414
|
+
display: flex;
|
|
415
|
+
align-items: center;
|
|
416
|
+
justify-content: space-between;
|
|
417
|
+
gap: 0.5rem;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.cratis-icon-picker__title {
|
|
421
|
+
margin: 0;
|
|
422
|
+
font-size: 1rem;
|
|
423
|
+
font-weight: 600;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.cratis-icon-picker__close,
|
|
427
|
+
.cratis-icon-picker__clear {
|
|
428
|
+
display: inline-flex;
|
|
429
|
+
min-width: 2.25rem;
|
|
430
|
+
min-height: 2.25rem;
|
|
431
|
+
align-items: center;
|
|
432
|
+
justify-content: center;
|
|
433
|
+
border: 1px solid transparent;
|
|
434
|
+
border-radius: var(--cratis-border-radius);
|
|
435
|
+
background: transparent;
|
|
436
|
+
color: var(--cratis-text-color-secondary);
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.cratis-icon-picker__close:hover,
|
|
441
|
+
.cratis-icon-picker__clear:hover {
|
|
442
|
+
background: var(--cratis-surface-hover);
|
|
443
|
+
color: var(--cratis-text-color);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.cratis-icon-picker__close:focus-visible,
|
|
447
|
+
.cratis-icon-picker__clear:focus-visible,
|
|
448
|
+
.cratis-icon-picker__category:focus-visible,
|
|
449
|
+
.cratis-icon-picker__link:focus-visible,
|
|
450
|
+
.cratis-icon-picker__library:focus-visible {
|
|
451
|
+
outline: none;
|
|
452
|
+
box-shadow: var(--cratis-focus-ring);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.cratis-icon-picker__search {
|
|
456
|
+
display: flex;
|
|
457
|
+
flex: none;
|
|
458
|
+
align-items: center;
|
|
459
|
+
gap: 0.25rem;
|
|
460
|
+
padding-inline-start: 0.75rem;
|
|
461
|
+
border: 1px solid var(--cratis-control-border);
|
|
462
|
+
border-radius: var(--cratis-border-radius);
|
|
463
|
+
background: var(--cratis-control-background);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.cratis-icon-picker__search:focus-within {
|
|
467
|
+
border-color: var(--cratis-primary-color);
|
|
468
|
+
box-shadow: var(--cratis-focus-ring);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.cratis-icon-picker__search-icon {
|
|
472
|
+
flex: none;
|
|
473
|
+
color: var(--cratis-text-color-secondary);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.cratis-icon-picker__search-input {
|
|
477
|
+
min-width: 0;
|
|
478
|
+
min-height: 2.25rem;
|
|
479
|
+
flex: 1;
|
|
480
|
+
border: 0;
|
|
481
|
+
background: transparent;
|
|
482
|
+
color: inherit;
|
|
483
|
+
font: inherit;
|
|
484
|
+
outline: none;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.cratis-icon-picker__filters {
|
|
488
|
+
display: flex;
|
|
489
|
+
flex: none;
|
|
490
|
+
flex-wrap: wrap;
|
|
491
|
+
align-items: center;
|
|
492
|
+
gap: 0.5rem;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.cratis-icon-picker__library {
|
|
496
|
+
min-height: 2.25rem;
|
|
497
|
+
max-width: 100%;
|
|
498
|
+
padding: 0 0.5rem;
|
|
499
|
+
border: 1px solid var(--cratis-control-border);
|
|
500
|
+
border-radius: var(--cratis-border-radius);
|
|
501
|
+
background: var(--cratis-control-background);
|
|
502
|
+
color: inherit;
|
|
503
|
+
font: inherit;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.cratis-icon-picker__categories {
|
|
507
|
+
display: flex;
|
|
508
|
+
min-width: 0;
|
|
509
|
+
flex-wrap: wrap;
|
|
510
|
+
gap: 0.375rem;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.cratis-icon-picker__category {
|
|
514
|
+
display: inline-flex;
|
|
515
|
+
min-height: 2.25rem;
|
|
516
|
+
align-items: center;
|
|
517
|
+
gap: 0.375rem;
|
|
518
|
+
padding: 0 0.75rem;
|
|
519
|
+
border: 1px solid var(--cratis-surface-border);
|
|
520
|
+
border-radius: 999px;
|
|
521
|
+
background: transparent;
|
|
522
|
+
color: inherit;
|
|
523
|
+
font: inherit;
|
|
524
|
+
cursor: pointer;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.cratis-icon-picker__category:hover {
|
|
528
|
+
background: var(--cratis-surface-hover);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.cratis-icon-picker__category[data-selected] {
|
|
532
|
+
border: 2px solid var(--cratis-primary-color);
|
|
533
|
+
background: var(--cratis-highlight-bg);
|
|
534
|
+
color: var(--cratis-highlight-text-color);
|
|
535
|
+
font-weight: 600;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.cratis-icon-picker__count {
|
|
539
|
+
color: var(--cratis-text-color-secondary);
|
|
540
|
+
font-size: 0.75rem;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.cratis-icon-picker__summary {
|
|
544
|
+
flex: none;
|
|
545
|
+
margin: 0;
|
|
546
|
+
color: var(--cratis-text-color-secondary);
|
|
547
|
+
font-size: 0.8125rem;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.cratis-icon-picker__body {
|
|
551
|
+
min-height: 0;
|
|
552
|
+
flex: 1 1 auto;
|
|
553
|
+
overflow: auto;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.cratis-icon-picker__results {
|
|
557
|
+
display: flex;
|
|
558
|
+
flex-direction: column;
|
|
559
|
+
gap: 1rem;
|
|
560
|
+
padding: 0.25rem;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.cratis-icon-picker__status {
|
|
564
|
+
display: flex;
|
|
565
|
+
flex-wrap: wrap;
|
|
566
|
+
align-items: center;
|
|
567
|
+
gap: 0.5rem;
|
|
568
|
+
padding: 0.75rem;
|
|
569
|
+
border: 1px dashed var(--cratis-surface-border);
|
|
570
|
+
border-radius: var(--cratis-border-radius);
|
|
571
|
+
color: var(--cratis-text-color-secondary);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.cratis-icon-picker__status[role='alert'] {
|
|
575
|
+
border-color: var(--cratis-red-500);
|
|
576
|
+
color: var(--cratis-red-500);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.cratis-icon-picker__group-header {
|
|
580
|
+
display: flex;
|
|
581
|
+
align-items: baseline;
|
|
582
|
+
justify-content: space-between;
|
|
583
|
+
gap: 0.5rem;
|
|
584
|
+
margin-bottom: 0.375rem;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.cratis-icon-picker__group-title {
|
|
588
|
+
margin: 0;
|
|
589
|
+
font-size: 0.875rem;
|
|
590
|
+
font-weight: 600;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.cratis-icon-picker__link {
|
|
594
|
+
min-height: 2.25rem;
|
|
595
|
+
padding: 0 0.5rem;
|
|
596
|
+
border: 0;
|
|
597
|
+
border-radius: var(--cratis-border-radius);
|
|
598
|
+
background: transparent;
|
|
599
|
+
color: var(--cratis-primary-color);
|
|
600
|
+
font: inherit;
|
|
601
|
+
text-decoration: underline;
|
|
602
|
+
cursor: pointer;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.cratis-icon-picker__grid {
|
|
606
|
+
display: grid;
|
|
607
|
+
grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
|
|
608
|
+
gap: 0.5rem;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.cratis-icon-picker__tile {
|
|
612
|
+
position: relative;
|
|
613
|
+
display: flex;
|
|
614
|
+
min-height: 5.5rem;
|
|
615
|
+
box-sizing: border-box;
|
|
616
|
+
flex-direction: column;
|
|
617
|
+
align-items: center;
|
|
618
|
+
gap: 0.375rem;
|
|
619
|
+
padding: 0.5rem 0.375rem;
|
|
620
|
+
border: 1px solid var(--cratis-control-border);
|
|
621
|
+
border-radius: var(--cratis-border-radius);
|
|
622
|
+
background: var(--cratis-control-background);
|
|
623
|
+
color: inherit;
|
|
624
|
+
text-align: center;
|
|
625
|
+
cursor: pointer;
|
|
626
|
+
content-visibility: auto;
|
|
627
|
+
contain-intrinsic-size: auto 5.5rem;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.cratis-icon-picker__tile:hover {
|
|
631
|
+
background: var(--cratis-surface-hover);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.cratis-icon-picker__tile:focus-visible {
|
|
635
|
+
outline: 3px solid var(--cratis-primary-color);
|
|
636
|
+
outline-offset: 2px;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.cratis-icon-picker__tile[data-selected] {
|
|
640
|
+
border: 3px solid var(--cratis-primary-color);
|
|
641
|
+
padding: calc(0.5rem - 2px) calc(0.375rem - 2px);
|
|
642
|
+
background: var(--cratis-highlight-bg);
|
|
643
|
+
font-weight: 600;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.cratis-icon-picker__tile[data-disabled] {
|
|
647
|
+
border-style: dashed;
|
|
648
|
+
opacity: var(--cratis-disabled-opacity);
|
|
649
|
+
cursor: not-allowed;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.cratis-icon-picker__tile-icon {
|
|
653
|
+
display: flex;
|
|
654
|
+
width: 2.5rem;
|
|
655
|
+
height: 2.5rem;
|
|
656
|
+
flex: none;
|
|
657
|
+
align-items: center;
|
|
658
|
+
justify-content: center;
|
|
659
|
+
font-size: 1.75rem;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.cratis-icon-picker__tile-name {
|
|
663
|
+
max-width: 100%;
|
|
664
|
+
overflow-wrap: anywhere;
|
|
665
|
+
font-size: 0.8125rem;
|
|
666
|
+
line-height: 1.2;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/* The selected tile's highlight background is darker than the surface, so secondary text on it falls short of 4.5:1. */
|
|
670
|
+
.cratis-icon-picker__tile[data-selected] .cratis-icon-picker__provider {
|
|
671
|
+
color: var(--cratis-highlight-text-color);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.cratis-icon-picker__tile .cratis-icon-picker__provider {
|
|
675
|
+
max-width: 100%;
|
|
676
|
+
white-space: normal;
|
|
677
|
+
overflow-wrap: anywhere;
|
|
678
|
+
font-size: 0.6875rem;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.cratis-icon-picker__flag {
|
|
682
|
+
color: var(--cratis-text-color-secondary);
|
|
683
|
+
font-size: 0.6875rem;
|
|
684
|
+
font-weight: 600;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.cratis-icon-picker__check {
|
|
688
|
+
position: absolute;
|
|
689
|
+
inset-block-start: 0.25rem;
|
|
690
|
+
inset-inline-end: 0.25rem;
|
|
691
|
+
padding: 0.125rem;
|
|
692
|
+
border-radius: 50%;
|
|
693
|
+
background: var(--cratis-primary-color);
|
|
694
|
+
color: var(--cratis-primary-color-text);
|
|
695
|
+
font-size: 0.75rem;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.cratis-icon-picker__credits {
|
|
699
|
+
flex: none;
|
|
700
|
+
border-top: 1px solid var(--cratis-surface-border);
|
|
701
|
+
padding-top: 0.375rem;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.cratis-icon-picker__attribution {
|
|
705
|
+
margin: 0;
|
|
706
|
+
color: var(--cratis-text-color-secondary);
|
|
707
|
+
font-size: 0.75rem;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
}
|
|
@@ -420,6 +420,11 @@
|
|
|
420
420
|
line-height: 1.2;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
+
/* The selected tile's highlight background is darker than the surface, so secondary text on it falls short of 4.5:1. */
|
|
424
|
+
.cratis-icon-picker__tile[data-selected] .cratis-icon-picker__provider {
|
|
425
|
+
color: var(--cratis-highlight-text-color);
|
|
426
|
+
}
|
|
427
|
+
|
|
423
428
|
.cratis-icon-picker__tile .cratis-icon-picker__provider {
|
|
424
429
|
max-width: 100%;
|
|
425
430
|
white-space: normal;
|