@crowdstrike/glide-core 0.29.2 → 0.30.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/dist/accordion.js +240 -1
- package/dist/accordion.styles.js +13 -7
- package/dist/button-group.button.js +143 -1
- package/dist/button-group.button.styles.js +43 -15
- package/dist/button-group.js +249 -1
- package/dist/button-group.styles.js +10 -5
- package/dist/button.js +206 -1
- package/dist/button.styles.js +12 -7
- package/dist/checkbox-group.js +479 -14
- package/dist/checkbox-group.styles.js +5 -2
- package/dist/checkbox.js +519 -32
- package/dist/checkbox.styles.js +10 -5
- package/dist/drawer.js +168 -1
- package/dist/drawer.styles.js +5 -2
- package/dist/dropdown.js +2423 -123
- package/dist/dropdown.option.js +536 -1
- package/dist/dropdown.option.styles.js +5 -2
- package/dist/dropdown.styles.js +15 -8
- package/dist/form-controls-layout.js +102 -1
- package/dist/form-controls-layout.styles.js +5 -2
- package/dist/icon-button.js +139 -1
- package/dist/icon-button.styles.js +19 -7
- package/dist/icons/checked.js +28 -1
- package/dist/icons/chevron.js +21 -1
- package/dist/icons/magnifying-glass.js +23 -1
- package/dist/icons/pencil.js +21 -1
- package/dist/icons/severity-critical.js +20 -1
- package/dist/icons/severity-informational.js +20 -1
- package/dist/icons/severity-medium.js +20 -1
- package/dist/icons/x.js +21 -1
- package/dist/inline-alert.js +118 -1
- package/dist/inline-alert.styles.js +5 -2
- package/dist/input.d.ts +8 -2
- package/dist/input.js +505 -41
- package/dist/input.styles.js +25 -4
- package/dist/label.js +303 -1
- package/dist/label.styles.js +11 -5
- package/dist/library/assert-slot.js +136 -1
- package/dist/library/expect-unhandled-rejection.js +14 -1
- package/dist/library/expect-window-error.js +26 -1
- package/dist/library/final.js +18 -1
- package/dist/library/form-control.js +1 -1
- package/dist/library/localize.js +10 -1
- package/dist/library/mouse.js +35 -1
- package/dist/library/on-resize.js +24 -1
- package/dist/library/required.js +35 -1
- package/dist/library/shadow-root-mode.js +4 -1
- package/dist/library/unique-id.js +3 -1
- package/dist/link.js +92 -1
- package/dist/link.styles.js +10 -5
- package/dist/menu.d.ts +3 -2
- package/dist/menu.js +1259 -1
- package/dist/menu.styles.js +35 -19
- package/dist/modal.d.ts +4 -0
- package/dist/modal.icon-button.js +60 -1
- package/dist/modal.icon-button.styles.js +5 -2
- package/dist/modal.js +473 -1
- package/dist/modal.styles.js +71 -22
- package/dist/option.d.ts +74 -0
- package/dist/option.js +498 -0
- package/dist/option.styles.js +140 -0
- package/dist/{menu.options.d.ts → options.d.ts} +5 -6
- package/dist/options.js +130 -0
- package/dist/options.styles.js +21 -0
- package/dist/popover.js +620 -1
- package/dist/popover.styles.js +11 -5
- package/dist/radio-group.js +624 -17
- package/dist/radio-group.radio.js +211 -1
- package/dist/radio-group.radio.styles.js +9 -4
- package/dist/radio-group.styles.js +5 -2
- package/dist/slider.js +1040 -61
- package/dist/slider.styles.js +9 -4
- package/dist/spinner.js +60 -1
- package/dist/spinner.styles.js +5 -2
- package/dist/split-button.js +116 -1
- package/dist/split-button.primary-button.js +100 -1
- package/dist/split-button.primary-button.styles.js +13 -6
- package/dist/split-button.primary-link.js +102 -1
- package/dist/split-button.secondary-button.d.ts +2 -3
- package/dist/split-button.secondary-button.js +121 -1
- package/dist/split-button.secondary-button.styles.js +12 -7
- package/dist/split-button.styles.js +9 -4
- package/dist/styles/focus-outline.js +9 -3
- package/dist/styles/fonts.css +6 -1
- package/dist/styles/opacity-and-scale-animation.js +6 -3
- package/dist/styles/skeleton.js +6 -3
- package/dist/styles/variables.css +410 -1
- package/dist/styles/visually-hidden.js +6 -3
- package/dist/tab.group.js +386 -1
- package/dist/tab.group.styles.js +5 -2
- package/dist/tab.js +133 -1
- package/dist/tab.panel.js +93 -1
- package/dist/tab.panel.styles.js +11 -5
- package/dist/tab.styles.js +9 -4
- package/dist/tag.js +207 -1
- package/dist/tag.styles.js +10 -5
- package/dist/textarea.js +353 -19
- package/dist/textarea.styles.js +23 -4
- package/dist/toast.js +130 -1
- package/dist/toast.toasts.js +248 -25
- package/dist/toast.toasts.styles.js +9 -4
- package/dist/toggle.js +178 -1
- package/dist/toggle.styles.js +25 -5
- package/dist/tooltip.container.js +130 -1
- package/dist/tooltip.container.styles.js +5 -2
- package/dist/tooltip.js +484 -1
- package/dist/tooltip.styles.js +21 -5
- package/dist/translations/en.js +36 -1
- package/dist/translations/fr.js +37 -1
- package/dist/translations/ja.js +37 -1
- package/package.json +8 -12
- package/dist/menu.button.d.ts +0 -42
- package/dist/menu.button.js +0 -1
- package/dist/menu.button.styles.js +0 -32
- package/dist/menu.link.d.ts +0 -44
- package/dist/menu.link.js +0 -1
- package/dist/menu.link.styles.js +0 -35
- package/dist/menu.options.js +0 -1
- package/dist/menu.options.styles.d.ts +0 -2
- package/dist/menu.options.styles.js +0 -20
- /package/dist/{menu.button.styles.d.ts → option.styles.d.ts} +0 -0
- /package/dist/{menu.link.styles.d.ts → options.styles.d.ts} +0 -0
@@ -1 +1,102 @@
|
|
1
|
-
var __decorate
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
7
|
+
import { html, LitElement } from 'lit';
|
8
|
+
import { createRef, ref } from 'lit/directives/ref.js';
|
9
|
+
import { customElement, property } from 'lit/decorators.js';
|
10
|
+
import packageJson from '../package.json' with { type: 'json' };
|
11
|
+
import Checkbox from './checkbox.js';
|
12
|
+
import CheckboxGroup from './checkbox-group.js';
|
13
|
+
import Dropdown from './dropdown.js';
|
14
|
+
import Input from './input.js';
|
15
|
+
import RadioGroup from './radio-group.js';
|
16
|
+
import Slider from './slider.js';
|
17
|
+
import TextArea from './textarea.js';
|
18
|
+
import styles from './form-controls-layout.styles.js';
|
19
|
+
import assertSlot from './library/assert-slot.js';
|
20
|
+
import shadowRootMode from './library/shadow-root-mode.js';
|
21
|
+
import final from './library/final.js';
|
22
|
+
/**
|
23
|
+
* @attr {'left'|'middle'|'right'} [split='left']
|
24
|
+
*
|
25
|
+
* @readonly
|
26
|
+
* @attr {string} [version]
|
27
|
+
*
|
28
|
+
* @slot {Checkbox | CheckboxGroup | Dropdown | Input | RadioGroup | Slider | TextArea}
|
29
|
+
*/
|
30
|
+
let FormControlsLayout = class FormControlsLayout extends LitElement {
|
31
|
+
constructor() {
|
32
|
+
super(...arguments);
|
33
|
+
this.version = packageJson.version;
|
34
|
+
this.#slotElementRef = createRef();
|
35
|
+
this.#split = 'left';
|
36
|
+
}
|
37
|
+
static { this.shadowRootOptions = {
|
38
|
+
...LitElement.shadowRootOptions,
|
39
|
+
mode: shadowRootMode,
|
40
|
+
}; }
|
41
|
+
static { this.styles = styles; }
|
42
|
+
/**
|
43
|
+
* @default 'left'
|
44
|
+
*/
|
45
|
+
get split() {
|
46
|
+
return this.#split;
|
47
|
+
}
|
48
|
+
set split(split) {
|
49
|
+
this.#split = split;
|
50
|
+
if (this.#slotElementRef.value) {
|
51
|
+
for (const element of this.#slotElementRef.value.assignedElements()) {
|
52
|
+
if ('privateSplit' in element) {
|
53
|
+
element.privateSplit = this.split;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
render() {
|
59
|
+
return html `<div class="component">
|
60
|
+
<slot
|
61
|
+
@slotchange=${this.#onSlotChange}
|
62
|
+
${assertSlot([
|
63
|
+
Checkbox,
|
64
|
+
CheckboxGroup,
|
65
|
+
Dropdown,
|
66
|
+
Input,
|
67
|
+
RadioGroup,
|
68
|
+
Slider,
|
69
|
+
TextArea,
|
70
|
+
])}
|
71
|
+
${ref(this.#slotElementRef)}
|
72
|
+
>
|
73
|
+
<!-- @type {Checkbox | CheckboxGroup | Dropdown | Input | RadioGroup | Slider | TextArea} -->
|
74
|
+
</slot>
|
75
|
+
</div>`;
|
76
|
+
}
|
77
|
+
#slotElementRef;
|
78
|
+
#split;
|
79
|
+
#onSlotChange() {
|
80
|
+
if (this.#slotElementRef.value) {
|
81
|
+
for (const element of this.#slotElementRef.value.assignedElements()) {
|
82
|
+
if ('privateSplit' in element) {
|
83
|
+
element.privateSplit = this.split;
|
84
|
+
}
|
85
|
+
if ('orientation' in element && element.orientation !== 'horizontal') {
|
86
|
+
throw new TypeError('Only horizontal controls are supported.');
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
};
|
92
|
+
__decorate([
|
93
|
+
property({ reflect: true })
|
94
|
+
], FormControlsLayout.prototype, "split", null);
|
95
|
+
__decorate([
|
96
|
+
property({ reflect: true })
|
97
|
+
], FormControlsLayout.prototype, "version", void 0);
|
98
|
+
FormControlsLayout = __decorate([
|
99
|
+
customElement('glide-core-form-controls-layout'),
|
100
|
+
final
|
101
|
+
], FormControlsLayout);
|
102
|
+
export default FormControlsLayout;
|
package/dist/icon-button.js
CHANGED
@@ -1 +1,139 @@
|
|
1
|
-
var __decorate
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
7
|
+
import { html, LitElement } from 'lit';
|
8
|
+
import { classMap } from 'lit/directives/class-map.js';
|
9
|
+
import { createRef, ref } from 'lit/directives/ref.js';
|
10
|
+
import { customElement, property } from 'lit/decorators.js';
|
11
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
12
|
+
import packageJson from '../package.json' with { type: 'json' };
|
13
|
+
import styles from './icon-button.styles.js';
|
14
|
+
import assertSlot from './library/assert-slot.js';
|
15
|
+
import shadowRootMode from './library/shadow-root-mode.js';
|
16
|
+
import final from './library/final.js';
|
17
|
+
import required from './library/required.js';
|
18
|
+
/**
|
19
|
+
* @attr {string} label - For screenreaders
|
20
|
+
* @attr {string|null} [aria-controls=null]
|
21
|
+
* @attr {string|null} [aria-description=null]
|
22
|
+
* @attr {'true'|'false'|null} [aria-expanded=null]
|
23
|
+
* @attr {'true'|'false'|'menu'|'listbox'|'tree'|'grid'|'dialog'|null} [aria-haspopup=null]
|
24
|
+
* @attr {boolean} [disabled=false]
|
25
|
+
* @attr {'primary'|'secondary'|'tertiary'} [variant='primary']
|
26
|
+
*
|
27
|
+
* @readonly
|
28
|
+
* @attr {string} [version]
|
29
|
+
*
|
30
|
+
* @slot {Element} - An icon
|
31
|
+
*/
|
32
|
+
let IconButton = class IconButton extends LitElement {
|
33
|
+
constructor() {
|
34
|
+
super(...arguments);
|
35
|
+
this.ariaControls = null;
|
36
|
+
this.ariaExpanded = null;
|
37
|
+
this.ariaHasPopup = null;
|
38
|
+
this.disabled = false;
|
39
|
+
this.variant = 'primary';
|
40
|
+
this.version = packageJson.version;
|
41
|
+
this.#ariaDescription = null;
|
42
|
+
this.#buttonElementRef = createRef();
|
43
|
+
this.#defaultSlotElementRef = createRef();
|
44
|
+
}
|
45
|
+
static { this.shadowRootOptions = {
|
46
|
+
...LitElement.shadowRootOptions,
|
47
|
+
delegatesFocus: true,
|
48
|
+
mode: shadowRootMode,
|
49
|
+
}; }
|
50
|
+
static { this.styles = styles; }
|
51
|
+
// A getter and setter because Lit Analzyer doesn't recognize "aria-description"
|
52
|
+
// as a valid attribute on the `<button>` and doesn't provide a way to selectively
|
53
|
+
// disable rules.
|
54
|
+
/**
|
55
|
+
* @default null
|
56
|
+
*/
|
57
|
+
get ariaDescription() {
|
58
|
+
return this.#ariaDescription;
|
59
|
+
}
|
60
|
+
set ariaDescription(description) {
|
61
|
+
this.#ariaDescription = description;
|
62
|
+
if (this.#buttonElementRef.value) {
|
63
|
+
this.#buttonElementRef.value.ariaDescription = description;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
click() {
|
67
|
+
this.#buttonElementRef.value?.click();
|
68
|
+
}
|
69
|
+
firstUpdated() {
|
70
|
+
if (this.#buttonElementRef.value && this.ariaDescription) {
|
71
|
+
this.#buttonElementRef.value.ariaDescription = this.ariaDescription;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
render() {
|
75
|
+
return html `
|
76
|
+
<button
|
77
|
+
aria-controls=${ifDefined(this.ariaControls ?? undefined)}
|
78
|
+
aria-expanded=${ifDefined(this.ariaExpanded ?? undefined)}
|
79
|
+
aria-haspopup=${ifDefined(this.ariaHasPopup ?? undefined)}
|
80
|
+
aria-label=${ifDefined(this.label)}
|
81
|
+
class=${classMap({
|
82
|
+
component: true,
|
83
|
+
primary: this.variant === 'primary',
|
84
|
+
secondary: this.variant === 'secondary',
|
85
|
+
tertiary: this.variant === 'tertiary',
|
86
|
+
})}
|
87
|
+
data-test="button"
|
88
|
+
type="button"
|
89
|
+
?disabled=${this.disabled}
|
90
|
+
${ref(this.#buttonElementRef)}
|
91
|
+
>
|
92
|
+
<slot
|
93
|
+
class="default-slot"
|
94
|
+
${assertSlot()}
|
95
|
+
${ref(this.#defaultSlotElementRef)}
|
96
|
+
>
|
97
|
+
<!--
|
98
|
+
An icon
|
99
|
+
@required
|
100
|
+
@type {Element}
|
101
|
+
-->
|
102
|
+
</slot>
|
103
|
+
</button>
|
104
|
+
`;
|
105
|
+
}
|
106
|
+
#ariaDescription;
|
107
|
+
#buttonElementRef;
|
108
|
+
#defaultSlotElementRef;
|
109
|
+
};
|
110
|
+
__decorate([
|
111
|
+
property({ reflect: true }),
|
112
|
+
required
|
113
|
+
], IconButton.prototype, "label", void 0);
|
114
|
+
__decorate([
|
115
|
+
property({ attribute: 'aria-controls', reflect: true, useDefault: true })
|
116
|
+
], IconButton.prototype, "ariaControls", void 0);
|
117
|
+
__decorate([
|
118
|
+
property({ attribute: 'aria-description', reflect: true })
|
119
|
+
], IconButton.prototype, "ariaDescription", null);
|
120
|
+
__decorate([
|
121
|
+
property({ attribute: 'aria-expanded', reflect: true, useDefault: true })
|
122
|
+
], IconButton.prototype, "ariaExpanded", void 0);
|
123
|
+
__decorate([
|
124
|
+
property({ attribute: 'aria-haspopup', reflect: true, useDefault: true })
|
125
|
+
], IconButton.prototype, "ariaHasPopup", void 0);
|
126
|
+
__decorate([
|
127
|
+
property({ type: Boolean, reflect: true })
|
128
|
+
], IconButton.prototype, "disabled", void 0);
|
129
|
+
__decorate([
|
130
|
+
property({ reflect: true, useDefault: true })
|
131
|
+
], IconButton.prototype, "variant", void 0);
|
132
|
+
__decorate([
|
133
|
+
property({ reflect: true })
|
134
|
+
], IconButton.prototype, "version", void 0);
|
135
|
+
IconButton = __decorate([
|
136
|
+
customElement('glide-core-icon-button'),
|
137
|
+
final
|
138
|
+
], IconButton);
|
139
|
+
export default IconButton;
|
@@ -1,6 +1,10 @@
|
|
1
|
-
import{css}from
|
2
|
-
|
3
|
-
|
1
|
+
import { css } from 'lit';
|
2
|
+
import focusOutline from './styles/focus-outline.js';
|
3
|
+
export default [
|
4
|
+
css `
|
5
|
+
${focusOutline('.component:focus-visible')}
|
6
|
+
`,
|
7
|
+
css `
|
4
8
|
:host {
|
5
9
|
/* Contains elements with "padding" and "width". Inline by default. */
|
6
10
|
display: inline-flex;
|
@@ -10,7 +14,7 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";export
|
|
10
14
|
align-items: center;
|
11
15
|
block-size: var(--private-size, 1.625rem);
|
12
16
|
border-color: transparent;
|
13
|
-
border-radius: var(--glide-core-rounding-base-radius-
|
17
|
+
border-radius: var(--glide-core-rounding-base-radius-sm);
|
14
18
|
border-style: solid;
|
15
19
|
border-width: 1px;
|
16
20
|
cursor: pointer;
|
@@ -18,9 +22,9 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";export
|
|
18
22
|
inline-size: var(--private-size, 1.625rem);
|
19
23
|
justify-content: center;
|
20
24
|
padding-inline: 0;
|
21
|
-
transition-duration:
|
25
|
+
transition-duration: var(--glide-core-duration-moderate-02);
|
22
26
|
transition-property: color, background-color, border-color, fill, stroke;
|
23
|
-
transition-timing-function:
|
27
|
+
transition-timing-function: var(--glide-core-animation-swoop-in);
|
24
28
|
|
25
29
|
&:focus {
|
26
30
|
outline: none;
|
@@ -101,6 +105,7 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";export
|
|
101
105
|
background-color: transparent;
|
102
106
|
block-size: var(--private-size, 1rem);
|
103
107
|
border-color: transparent;
|
108
|
+
border-radius: var(--glide-core-rounding-base-radius-xxs);
|
104
109
|
color: var(
|
105
110
|
--private-icon-color,
|
106
111
|
var(--glide-core-color-interactive-icon-default)
|
@@ -117,10 +122,16 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";export
|
|
117
122
|
}
|
118
123
|
|
119
124
|
&:not(:disabled):active {
|
125
|
+
background-color: var(
|
126
|
+
--glide-core-color-interactive-surface-container-clickable
|
127
|
+
);
|
120
128
|
color: var(--glide-core-color-interactive-icon-active);
|
121
129
|
}
|
122
130
|
|
123
131
|
&:not(:active):hover:not(:disabled) {
|
132
|
+
background-color: var(
|
133
|
+
--glide-core-color-interactive-surface-container-clickable
|
134
|
+
);
|
124
135
|
color: var(
|
125
136
|
--private-hovered-icon-color,
|
126
137
|
var(--glide-core-color-interactive-icon-active--hover)
|
@@ -157,4 +168,5 @@ import{css}from"lit";import focusOutline from"./styles/focus-outline.js";export
|
|
157
168
|
pointer-events: none;
|
158
169
|
}
|
159
170
|
}
|
160
|
-
|
171
|
+
`,
|
172
|
+
];
|
package/dist/icons/checked.js
CHANGED
@@ -1 +1,28 @@
|
|
1
|
-
import{
|
1
|
+
import { html } from 'lit';
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
3
|
+
/**
|
4
|
+
* The class="check" on the path below is used as a CSS selector
|
5
|
+
* in checkbox.styles.ts. Please be cautious when making changes
|
6
|
+
* here as to not break the Checkbox selectors.
|
7
|
+
*/
|
8
|
+
export default html `
|
9
|
+
<svg
|
10
|
+
aria-hidden="true"
|
11
|
+
fill="none"
|
12
|
+
viewBox="0 0 24 24"
|
13
|
+
style=${styleMap({
|
14
|
+
height: 'var(--private-size, 0.875rem)',
|
15
|
+
width: 'var(--private-size, 0.875rem)',
|
16
|
+
})}
|
17
|
+
>
|
18
|
+
<path
|
19
|
+
class="check"
|
20
|
+
data-test="check"
|
21
|
+
d="M20 6L9 17L4 12"
|
22
|
+
stroke="currentColor"
|
23
|
+
stroke-width="2"
|
24
|
+
stroke-linecap="round"
|
25
|
+
stroke-linejoin="round"
|
26
|
+
/>
|
27
|
+
</svg>
|
28
|
+
`;
|
package/dist/icons/chevron.js
CHANGED
@@ -1 +1,21 @@
|
|
1
|
-
import{
|
1
|
+
import { html } from 'lit';
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
3
|
+
export default html `
|
4
|
+
<svg
|
5
|
+
aria-hidden="true"
|
6
|
+
style=${styleMap({
|
7
|
+
height: 'var(--private-size, 1rem)',
|
8
|
+
width: 'var(--private-size, 1rem)',
|
9
|
+
})}
|
10
|
+
viewBox="0 0 24 24"
|
11
|
+
fill="none"
|
12
|
+
>
|
13
|
+
<path
|
14
|
+
d="M6 9L12 15L18 9"
|
15
|
+
stroke="currentColor"
|
16
|
+
stroke-width="2"
|
17
|
+
stroke-linecap="round"
|
18
|
+
stroke-linejoin="round"
|
19
|
+
/>
|
20
|
+
</svg>
|
21
|
+
`;
|
@@ -1 +1,23 @@
|
|
1
|
-
import{
|
1
|
+
import { html } from 'lit';
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
3
|
+
export default html `
|
4
|
+
<svg
|
5
|
+
class="search-icon"
|
6
|
+
data-test="search-icon"
|
7
|
+
fill="none"
|
8
|
+
viewBox="0 0 24 24"
|
9
|
+
stroke-width="1.5"
|
10
|
+
stroke="currentColor"
|
11
|
+
style=${styleMap({
|
12
|
+
display: 'block',
|
13
|
+
height: 'var(--private-size, 1rem)',
|
14
|
+
width: 'var(--private-size, 1rem)',
|
15
|
+
})}
|
16
|
+
>
|
17
|
+
<path
|
18
|
+
stroke-linecap="round"
|
19
|
+
stroke-linejoin="round"
|
20
|
+
d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"
|
21
|
+
/>
|
22
|
+
</svg>
|
23
|
+
`;
|
package/dist/icons/pencil.js
CHANGED
@@ -1 +1,21 @@
|
|
1
|
-
import{
|
1
|
+
import { html } from 'lit';
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
3
|
+
export default html `
|
4
|
+
<svg
|
5
|
+
aria-hidden="true"
|
6
|
+
viewBox="0 0 14 14"
|
7
|
+
fill="none"
|
8
|
+
style=${styleMap({
|
9
|
+
height: 'var(--private-size, 0.875rem)',
|
10
|
+
width: 'var(--private-size, 0.875rem)',
|
11
|
+
})}
|
12
|
+
>
|
13
|
+
<path
|
14
|
+
d="M10.0244 5.95031L8.0395 3.96536M2.06587 11.924L3.74532 11.7374C3.95051 11.7146 4.0531 11.7032 4.149 11.6721C4.23407 11.6446 4.31504 11.6057 4.38969 11.5564C4.47384 11.501 4.54683 11.428 4.69281 11.282L11.5132 4.4616C12.0613 3.91347 12.0613 3.02478 11.5132 2.47665C10.965 1.92852 10.0763 1.92852 9.52821 2.47665L2.70786 9.29703C2.56188 9.44302 2.48889 9.51601 2.4334 9.60015C2.38417 9.67481 2.34526 9.75577 2.31772 9.84085C2.28667 9.93674 2.27527 10.0393 2.25247 10.2445L2.06587 11.924Z"
|
15
|
+
stroke="currentColor"
|
16
|
+
stroke-width="1.2"
|
17
|
+
stroke-linecap="round"
|
18
|
+
stroke-linejoin="round"
|
19
|
+
/>
|
20
|
+
</svg>
|
21
|
+
`;
|
@@ -1 +1,20 @@
|
|
1
|
-
import{
|
1
|
+
import { html } from 'lit';
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
3
|
+
export default html `
|
4
|
+
<svg
|
5
|
+
aria-hidden="true"
|
6
|
+
viewBox="0 0 16 16"
|
7
|
+
fill="none"
|
8
|
+
style=${styleMap({
|
9
|
+
height: 'var(--private-size, 1rem)',
|
10
|
+
width: 'var(--private-size, 1rem)',
|
11
|
+
})}
|
12
|
+
>
|
13
|
+
<path
|
14
|
+
fill-rule="evenodd"
|
15
|
+
clip-rule="evenodd"
|
16
|
+
d="M8.26864 0.790031C8.09143 0.753584 7.90865 0.753584 7.73144 0.790031C7.52659 0.832161 7.3435 0.934713 7.19794 1.01624L7.15826 1.03841L2.22493 3.77915L2.18284 3.8024C2.02875 3.88727 1.835 3.99398 1.68622 4.15543C1.55759 4.29502 1.46024 4.46046 1.40069 4.6407C1.33181 4.84916 1.33262 5.07035 1.33326 5.24627L1.33338 5.29435V10.7058L1.33326 10.7538C1.33262 10.9298 1.33181 11.1509 1.40069 11.3594C1.46024 11.5397 1.55759 11.7051 1.68622 11.8447C1.835 12.0061 2.02873 12.1128 2.18281 12.1977L2.22493 12.221L7.15826 14.9617L7.19793 14.9839C7.34349 15.0654 7.52659 15.1679 7.73144 15.2101C7.90865 15.2465 8.09143 15.2465 8.26864 15.2101C8.4735 15.1679 8.65659 15.0654 8.80215 14.9839L8.84182 14.9617L13.7752 12.221L13.8172 12.1977C13.9713 12.1128 14.1651 12.0061 14.3139 11.8447C14.4425 11.7051 14.5398 11.5397 14.5994 11.3594C14.6683 11.1509 14.6675 10.9298 14.6668 10.7538L14.6667 10.7058V5.29435L14.6668 5.24627C14.6675 5.07035 14.6683 4.84916 14.5994 4.6407C14.5398 4.46046 14.4425 4.29502 14.3139 4.15543C14.1651 3.99398 13.9713 3.88727 13.8172 3.8024L13.7752 3.77915L8.84182 1.03841L8.80215 1.01624C8.65659 0.934713 8.47349 0.832161 8.26864 0.790031ZM8.66671 5.33333C8.66671 4.96514 8.36823 4.66667 8.00004 4.66667C7.63185 4.66667 7.33337 4.96514 7.33337 5.33333V8C7.33337 8.36819 7.63185 8.66667 8.00004 8.66667C8.36823 8.66667 8.66671 8.36819 8.66671 8V5.33333ZM8.00004 10C7.63185 10 7.33337 10.2985 7.33337 10.6667C7.33337 11.0349 7.63185 11.3333 8.00004 11.3333H8.00671C8.3749 11.3333 8.67337 11.0349 8.67337 10.6667C8.67337 10.2985 8.3749 10 8.00671 10H8.00004Z"
|
17
|
+
fill="currentColor"
|
18
|
+
/>
|
19
|
+
</svg>
|
20
|
+
`;
|
@@ -1 +1,20 @@
|
|
1
|
-
import{
|
1
|
+
import { html } from 'lit';
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
3
|
+
export default html `
|
4
|
+
<svg
|
5
|
+
aria-hidden="true"
|
6
|
+
viewBox="0 0 16 16"
|
7
|
+
fill="none"
|
8
|
+
style=${styleMap({
|
9
|
+
height: 'var(--private-size, 1rem)',
|
10
|
+
width: 'var(--private-size, 1rem)',
|
11
|
+
})}
|
12
|
+
>
|
13
|
+
<path
|
14
|
+
fill-rule="evenodd"
|
15
|
+
clip-rule="evenodd"
|
16
|
+
d="M7.99996 0.666672C3.94987 0.666672 0.666626 3.94992 0.666626 8C0.666626 12.0501 3.94987 15.3333 7.99996 15.3333C12.05 15.3333 15.3333 12.0501 15.3333 8C15.3333 3.94992 12.05 0.666672 7.99996 0.666672ZM8.66663 5.33334C8.66663 4.96515 8.36815 4.66667 7.99996 4.66667C7.63177 4.66667 7.33329 4.96515 7.33329 5.33334V8C7.33329 8.36819 7.63177 8.66667 7.99996 8.66667C8.36815 8.66667 8.66663 8.36819 8.66663 8V5.33334ZM7.99996 10C7.63177 10 7.33329 10.2985 7.33329 10.6667C7.33329 11.0349 7.63177 11.3333 7.99996 11.3333H8.00663C8.37482 11.3333 8.67329 11.0349 8.67329 10.6667C8.67329 10.2985 8.37482 10 8.00663 10H7.99996Z"
|
17
|
+
fill="currentColor"
|
18
|
+
/>
|
19
|
+
</svg>
|
20
|
+
`;
|
@@ -1 +1,20 @@
|
|
1
|
-
import{
|
1
|
+
import { html } from 'lit';
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
3
|
+
export default html `
|
4
|
+
<svg
|
5
|
+
aria-hidden="true"
|
6
|
+
viewBox="0 0 16 16"
|
7
|
+
fill="none"
|
8
|
+
style=${styleMap({
|
9
|
+
height: 'var(--private-size, 1rem)',
|
10
|
+
width: 'var(--private-size, 1rem)',
|
11
|
+
})}
|
12
|
+
>
|
13
|
+
<path
|
14
|
+
fill-rule="evenodd"
|
15
|
+
clip-rule="evenodd"
|
16
|
+
d="M8.54175 1.44697C8.19688 1.29362 7.80317 1.29362 7.45829 1.44697C7.19194 1.5654 7.01892 1.77402 6.89852 1.944C6.78014 2.11113 6.6534 2.33007 6.51402 2.57087L1.00258 12.0906C0.862641 12.3323 0.735472 12.5519 0.649245 12.7383C0.561611 12.9277 0.466542 13.1824 0.496841 13.473C0.536048 13.849 0.733076 14.1908 1.03889 14.4131C1.27522 14.585 1.54321 14.6303 1.75105 14.6493C1.95555 14.6681 2.20932 14.6681 2.48858 14.668H13.5114C13.7907 14.6681 14.0445 14.6681 14.249 14.6493C14.4568 14.6303 14.7248 14.585 14.9612 14.4131C15.267 14.1908 15.464 13.849 15.5032 13.473C15.5335 13.1824 15.4384 12.9277 15.3508 12.7383C15.2646 12.5519 15.1374 12.3323 14.9975 12.0907L9.48601 2.57085C9.34664 2.33006 9.2199 2.11112 9.10153 1.944C8.98113 1.77401 8.80811 1.5654 8.54175 1.44697ZM8.66671 6.33472C8.66671 5.96653 8.36823 5.66806 8.00004 5.66806C7.63185 5.66806 7.33337 5.96653 7.33337 6.33472V9.00139C7.33337 9.36958 7.63185 9.66805 8.00004 9.66805C8.36823 9.66805 8.66671 9.36958 8.66671 9.00139V6.33472ZM8.00004 11.0014C7.63185 11.0014 7.33337 11.2999 7.33337 11.6681C7.33337 12.0362 7.63185 12.3347 8.00004 12.3347H8.00671C8.3749 12.3347 8.67337 12.0362 8.67337 11.6681C8.67337 11.2999 8.3749 11.0014 8.00671 11.0014H8.00004Z"
|
17
|
+
fill="currentColor"
|
18
|
+
/>
|
19
|
+
</svg>
|
20
|
+
`;
|
package/dist/icons/x.js
CHANGED
@@ -1 +1,21 @@
|
|
1
|
-
import{
|
1
|
+
import { html } from 'lit';
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
3
|
+
export default html `
|
4
|
+
<svg
|
5
|
+
aria-hidden="true"
|
6
|
+
style=${styleMap({
|
7
|
+
height: 'var(--private-size, 1rem)',
|
8
|
+
width: 'var(--private-size, 1rem)',
|
9
|
+
})}
|
10
|
+
viewBox="0 0 20 20"
|
11
|
+
fill="none"
|
12
|
+
>
|
13
|
+
<path
|
14
|
+
d="M15 5L5 15M5 5L15 15"
|
15
|
+
stroke="currentColor"
|
16
|
+
stroke-width="1.6"
|
17
|
+
stroke-linecap="round"
|
18
|
+
stroke-linejoin="round"
|
19
|
+
/>
|
20
|
+
</svg>
|
21
|
+
`;
|