numori-ui 0.2.0 → 0.3.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/CHANGELOG.md +40 -0
- package/README.md +12 -10
- package/dist/components/Banner.js +179 -0
- package/dist/components/Banner.js.map +1 -0
- package/dist/components/CodeBlock.js +101 -0
- package/dist/components/CodeBlock.js.map +1 -0
- package/dist/components/ComparisonTable.js +152 -0
- package/dist/components/ComparisonTable.js.map +1 -0
- package/dist/components/Spinner.js +87 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/ThemeToggle.js +85 -0
- package/dist/components/ThemeToggle.js.map +1 -0
- package/dist/components/Toast.js +107 -0
- package/dist/components/Toast.js.map +1 -0
- package/dist/components/index.js +73 -61
- package/dist/components/index.js.map +1 -1
- package/dist/icons/mdi.js +9 -0
- package/dist/icons/mdi.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +38 -32
- package/dist/index.js.map +1 -1
- package/dist/manifest.js +6 -0
- package/dist/manifest.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Banner.vue +149 -0
- package/src/components/CodeBlock.vue +99 -0
- package/src/components/ComparisonTable.vue +141 -0
- package/src/components/Spinner.vue +70 -0
- package/src/components/ThemeToggle.vue +81 -0
- package/src/components/Toast.vue +106 -0
- package/src/components/index.js +18 -0
- package/src/icons/mdi.js +9 -0
- package/src/manifest.js +6 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<UiButton
|
|
3
|
+
variant="ghost"
|
|
4
|
+
color="gray"
|
|
5
|
+
icon-only
|
|
6
|
+
:title="label"
|
|
7
|
+
:aria-label="label"
|
|
8
|
+
class="group"
|
|
9
|
+
@click="emit('toggle')"
|
|
10
|
+
>
|
|
11
|
+
<!--
|
|
12
|
+
The two glyphs occupy the same grid cell and cross-fade with a quarter
|
|
13
|
+
turn, so flipping the theme reads as one control turning over rather than
|
|
14
|
+
an icon being swapped out.
|
|
15
|
+
-->
|
|
16
|
+
<span class="grid size-5 place-items-center">
|
|
17
|
+
<UiIcon
|
|
18
|
+
name="mdi:weather-sunny"
|
|
19
|
+
class="col-start-1 row-start-1 size-5 transition-all duration-300"
|
|
20
|
+
:class="isDark ? 'rotate-0 scale-100 opacity-100' : '-rotate-90 scale-50 opacity-0'"
|
|
21
|
+
/>
|
|
22
|
+
<UiIcon
|
|
23
|
+
name="mdi:weather-night"
|
|
24
|
+
class="col-start-1 row-start-1 size-5 transition-all duration-300"
|
|
25
|
+
:class="isDark ? 'rotate-90 scale-50 opacity-0' : 'rotate-0 scale-100 opacity-100'"
|
|
26
|
+
/>
|
|
27
|
+
</span>
|
|
28
|
+
</UiButton>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script setup>
|
|
32
|
+
/**
|
|
33
|
+
* UiThemeToggle — an icon button that flips between light and dark.
|
|
34
|
+
*
|
|
35
|
+
* Deliberately presentational and stateless. Numori UI's dark mode is a `.dark`
|
|
36
|
+
* class on `<html>`, but *how* that class gets toggled and persisted is the
|
|
37
|
+
* host's decision — `@nuxtjs/color-mode`, VueUse's `useDark`, or two hand-written
|
|
38
|
+
* lines. So this component owns none of that: it takes the current state as
|
|
39
|
+
* `isDark` and emits `toggle`, and the parent does the flip.
|
|
40
|
+
*
|
|
41
|
+
* Because it is icon-only it carries both `title` (for pointer users) and
|
|
42
|
+
* `aria-label` (an icon has no accessible name otherwise), both from `label`.
|
|
43
|
+
* The sun and moon share one grid cell and cross-fade with a rotation.
|
|
44
|
+
*
|
|
45
|
+
* Under SSR the rendered theme is not known until the client reads the stored
|
|
46
|
+
* preference, so wrap it in whatever your framework uses to defer to the client
|
|
47
|
+
* (Nuxt's `<ClientOnly>`, for instance) if you render on the server, to avoid a
|
|
48
|
+
* hydration mismatch on the icon.
|
|
49
|
+
*
|
|
50
|
+
* @example With @nuxtjs/color-mode
|
|
51
|
+
* <script setup>
|
|
52
|
+
* const colorMode = useColorMode()
|
|
53
|
+
* const isDark = computed(() => colorMode.value === 'dark')
|
|
54
|
+
* const toggle = () => { colorMode.preference = isDark.value ? 'light' : 'dark' }
|
|
55
|
+
* <\/script>
|
|
56
|
+
*
|
|
57
|
+
* <UiThemeToggle :is-dark="isDark" :label="isDark ? 'Switch to light' : 'Switch to dark'"
|
|
58
|
+
* @toggle="toggle" />
|
|
59
|
+
*/
|
|
60
|
+
import UiButton from './Button.vue'
|
|
61
|
+
import UiIcon from '../icons/Icon.vue'
|
|
62
|
+
|
|
63
|
+
defineProps({
|
|
64
|
+
/**
|
|
65
|
+
* Whether the dark theme is currently active. Drives which glyph is shown.
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
isDark: { type: Boolean, default: false },
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Accessible name and hover tooltip. Should describe the action the control
|
|
73
|
+
* performs, e.g. "Switch to dark mode".
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @default 'Toggle theme'
|
|
76
|
+
*/
|
|
77
|
+
label: { type: String, default: 'Toggle theme' },
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
const emit = defineEmits(['toggle'])
|
|
81
|
+
</script>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Teleport to="body">
|
|
3
|
+
<div
|
|
4
|
+
class="fixed left-1/2 -translate-x-1/2 z-[100] flex flex-col items-center gap-2 pointer-events-none"
|
|
5
|
+
:class="positionClass"
|
|
6
|
+
>
|
|
7
|
+
<TransitionGroup
|
|
8
|
+
enter-active-class="transition-all duration-250 ease-out"
|
|
9
|
+
enter-from-class="opacity-0 -translate-y-3 scale-95"
|
|
10
|
+
enter-to-class="opacity-100 translate-y-0 scale-100"
|
|
11
|
+
leave-active-class="transition-all duration-200 ease-in"
|
|
12
|
+
leave-from-class="opacity-100 translate-y-0 scale-100"
|
|
13
|
+
leave-to-class="opacity-0 -translate-y-1 scale-95"
|
|
14
|
+
>
|
|
15
|
+
<div
|
|
16
|
+
v-for="toast in toasts"
|
|
17
|
+
:key="toast.id"
|
|
18
|
+
class="pointer-events-auto flex items-center gap-2 px-4 py-2.5 rounded-xl shadow-lg text-sm font-medium backdrop-blur-xs"
|
|
19
|
+
:class="toastClass(toast.type)"
|
|
20
|
+
role="status"
|
|
21
|
+
>
|
|
22
|
+
<UiIcon v-if="toast.icon" :name="toast.icon" class="w-4 h-4 shrink-0" />
|
|
23
|
+
<span>{{ toast.message }}</span>
|
|
24
|
+
</div>
|
|
25
|
+
</TransitionGroup>
|
|
26
|
+
</div>
|
|
27
|
+
</Teleport>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup>
|
|
31
|
+
/**
|
|
32
|
+
* UiToast — a stack of transient, self-dismissing messages.
|
|
33
|
+
*
|
|
34
|
+
* The presentational half of a toast system: it renders and animates a list of
|
|
35
|
+
* messages, teleported to `<body>` so it floats above everything and clear of
|
|
36
|
+
* any parent's `overflow` or stacking context. Owning the list — adding a toast,
|
|
37
|
+
* timing it out, removing it — is the app's job, because *when* something is
|
|
38
|
+
* worth announcing is application logic, not layout. Hand it a reactive array
|
|
39
|
+
* and mutate that array; the enter/leave transitions handle the rest.
|
|
40
|
+
*
|
|
41
|
+
* Each entry is `{ id, message, type?, icon? }`. `id` must be stable and unique
|
|
42
|
+
* (it keys the transition); `type` picks the colour and defaults to a neutral
|
|
43
|
+
* dark pill; `icon` is optional and drawn through `UiIcon`.
|
|
44
|
+
*
|
|
45
|
+
* The container does not capture pointer events, so it never blocks the UI
|
|
46
|
+
* underneath; only the pills themselves do. Each pill is a `role="status"`, so a
|
|
47
|
+
* screen reader announces it politely without stealing focus.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* <script setup>
|
|
51
|
+
* import { ref } from 'vue'
|
|
52
|
+
* const toasts = ref([])
|
|
53
|
+
* let seq = 0
|
|
54
|
+
* function notify(message, type = 'info') {
|
|
55
|
+
* const id = ++seq
|
|
56
|
+
* toasts.value.push({ id, message, type })
|
|
57
|
+
* setTimeout(() => { toasts.value = toasts.value.filter((t) => t.id !== id) }, 3000)
|
|
58
|
+
* }
|
|
59
|
+
* <\/script>
|
|
60
|
+
*
|
|
61
|
+
* <UiToast :toasts="toasts" />
|
|
62
|
+
* <UiButton @click="notify('Saved', 'success')">Save</UiButton>
|
|
63
|
+
*/
|
|
64
|
+
import { computed } from 'vue'
|
|
65
|
+
import UiIcon from '../icons/Icon.vue'
|
|
66
|
+
|
|
67
|
+
const props = defineProps({
|
|
68
|
+
/**
|
|
69
|
+
* The messages to show. Each is `{ id, message, type?, icon? }`, where `id`
|
|
70
|
+
* is stable and unique, `type` is one of the values below (default neutral),
|
|
71
|
+
* and `icon` is an optional MDI name.
|
|
72
|
+
* @type {Array<{ id: string|number, message: string, type?: string, icon?: string }>}
|
|
73
|
+
* @default []
|
|
74
|
+
*/
|
|
75
|
+
toasts: { type: Array, default: () => [] },
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Where the stack anchors on screen.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @default 'top'
|
|
81
|
+
* @values 'top' | 'bottom'
|
|
82
|
+
*/
|
|
83
|
+
position: { type: String, default: 'top' },
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
const positionClass = computed(() => (props.position === 'bottom' ? 'bottom-6' : 'top-6'))
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Toast colours are drawn from the design tokens (`success`/`warning`/`error`)
|
|
90
|
+
* rather than literal Tailwind palette names, so a rebrand of those ramps
|
|
91
|
+
* carries through here too. Anything unrecognised falls back to a neutral pill.
|
|
92
|
+
* @param {string} type
|
|
93
|
+
*/
|
|
94
|
+
const toastClass = (type) => {
|
|
95
|
+
switch (type) {
|
|
96
|
+
case 'success':
|
|
97
|
+
return 'bg-success-600/90 text-white dark:bg-success-500/90'
|
|
98
|
+
case 'warning':
|
|
99
|
+
return 'bg-warning-500/90 text-white dark:bg-warning-500/90'
|
|
100
|
+
case 'error':
|
|
101
|
+
return 'bg-error-600/90 text-white dark:bg-error-500/90'
|
|
102
|
+
default:
|
|
103
|
+
return 'bg-gray-800/90 text-white dark:bg-gray-200/90 dark:text-gray-900'
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
</script>
|
package/src/components/index.js
CHANGED
|
@@ -12,11 +12,14 @@
|
|
|
12
12
|
import Alert from './Alert.vue'
|
|
13
13
|
import Avatar from './Avatar.vue'
|
|
14
14
|
import Badge from './Badge.vue'
|
|
15
|
+
import Banner from './Banner.vue'
|
|
15
16
|
import Breadcrumb from './Breadcrumb.vue'
|
|
16
17
|
import Button from './Button.vue'
|
|
17
18
|
import ButtonsGroup from './ButtonsGroup.vue'
|
|
18
19
|
import Card from './Card.vue'
|
|
19
20
|
import Checkbox from './Checkbox.vue'
|
|
21
|
+
import CodeBlock from './CodeBlock.vue'
|
|
22
|
+
import ComparisonTable from './ComparisonTable.vue'
|
|
20
23
|
import Divider from './Divider.vue'
|
|
21
24
|
import Dropdown from './Dropdown.vue'
|
|
22
25
|
import DropdownItem from './DropdownItem.vue'
|
|
@@ -39,7 +42,10 @@ import SectionHeading from './SectionHeading.vue'
|
|
|
39
42
|
import Segmented from './Segmented.vue'
|
|
40
43
|
import Select from './Select.vue'
|
|
41
44
|
import Slider from './Slider.vue'
|
|
45
|
+
import Spinner from './Spinner.vue'
|
|
42
46
|
import Stepper from './Stepper.vue'
|
|
47
|
+
import ThemeToggle from './ThemeToggle.vue'
|
|
48
|
+
import Toast from './Toast.vue'
|
|
43
49
|
import Toggle from './Toggle.vue'
|
|
44
50
|
import Tooltip from './Tooltip.vue'
|
|
45
51
|
import Icon from '../icons/Icon.vue'
|
|
@@ -48,11 +54,14 @@ export {
|
|
|
48
54
|
Alert as UiAlert,
|
|
49
55
|
Avatar as UiAvatar,
|
|
50
56
|
Badge as UiBadge,
|
|
57
|
+
Banner as UiBanner,
|
|
51
58
|
Breadcrumb as UiBreadcrumb,
|
|
52
59
|
Button as UiButton,
|
|
53
60
|
ButtonsGroup as UiButtonsGroup,
|
|
54
61
|
Card as UiCard,
|
|
55
62
|
Checkbox as UiCheckbox,
|
|
63
|
+
CodeBlock as UiCodeBlock,
|
|
64
|
+
ComparisonTable as UiComparisonTable,
|
|
56
65
|
Divider as UiDivider,
|
|
57
66
|
Dropdown as UiDropdown,
|
|
58
67
|
DropdownItem as UiDropdownItem,
|
|
@@ -75,7 +84,10 @@ export {
|
|
|
75
84
|
Segmented as UiSegmented,
|
|
76
85
|
Select as UiSelect,
|
|
77
86
|
Slider as UiSlider,
|
|
87
|
+
Spinner as UiSpinner,
|
|
78
88
|
Stepper as UiStepper,
|
|
89
|
+
ThemeToggle as UiThemeToggle,
|
|
90
|
+
Toast as UiToast,
|
|
79
91
|
Toggle as UiToggle,
|
|
80
92
|
Tooltip as UiTooltip,
|
|
81
93
|
Icon as UiIcon,
|
|
@@ -90,11 +102,14 @@ export const components = {
|
|
|
90
102
|
Alert,
|
|
91
103
|
Avatar,
|
|
92
104
|
Badge,
|
|
105
|
+
Banner,
|
|
93
106
|
Breadcrumb,
|
|
94
107
|
Button,
|
|
95
108
|
ButtonsGroup,
|
|
96
109
|
Card,
|
|
97
110
|
Checkbox,
|
|
111
|
+
CodeBlock,
|
|
112
|
+
ComparisonTable,
|
|
98
113
|
Divider,
|
|
99
114
|
Dropdown,
|
|
100
115
|
DropdownItem,
|
|
@@ -117,7 +132,10 @@ export const components = {
|
|
|
117
132
|
Segmented,
|
|
118
133
|
Select,
|
|
119
134
|
Slider,
|
|
135
|
+
Spinner,
|
|
120
136
|
Stepper,
|
|
137
|
+
ThemeToggle,
|
|
138
|
+
Toast,
|
|
121
139
|
Toggle,
|
|
122
140
|
Tooltip,
|
|
123
141
|
Icon,
|
package/src/icons/mdi.js
CHANGED
|
@@ -29,9 +29,11 @@ export const mdiPaths = {
|
|
|
29
29
|
'chevron-up': "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6z",
|
|
30
30
|
'close': "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z",
|
|
31
31
|
'close-circle': "M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41z",
|
|
32
|
+
'content-copy': "M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12z",
|
|
32
33
|
'delete': "M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6z",
|
|
33
34
|
'dots-vertical': "M12 16a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2",
|
|
34
35
|
'email': "m20 8l-8 5l-8-5V6l8 5l8-5m0-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2",
|
|
36
|
+
'email-alert-outline': "M24 7h-2v6h2zm0 8h-2v2h2zm-4-9c0-1.1-.9-2-2-2H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zm-2 0l-8 5l-8-5zm0 12H2V8l8 5l8-5z",
|
|
35
37
|
'eraser': "m16.24 3.56l4.95 4.94c.78.79.78 2.05 0 2.84L12 20.53a4.01 4.01 0 0 1-5.66 0L2.81 17c-.78-.79-.78-2.05 0-2.84l10.6-10.6c.79-.78 2.05-.78 2.83 0M4.22 15.58l3.54 3.53c.78.79 2.04.79 2.83 0l3.53-3.53l-4.95-4.95z",
|
|
36
38
|
'eye-off-outline': "M2 5.27L3.28 4L20 20.72L18.73 22l-3.08-3.08c-1.15.38-2.37.58-3.65.58c-5 0-9.27-3.11-11-7.5c.69-1.76 1.79-3.31 3.19-4.54zM12 9a3 3 0 0 1 3 3a3 3 0 0 1-.17 1L11 9.17A3 3 0 0 1 12 9m0-4.5c5 0 9.27 3.11 11 7.5a11.8 11.8 0 0 1-4 5.19l-1.42-1.43A9.86 9.86 0 0 0 20.82 12A9.82 9.82 0 0 0 12 6.5c-1.09 0-2.16.18-3.16.5L7.3 5.47c1.44-.62 3.03-.97 4.7-.97M3.18 12A9.82 9.82 0 0 0 12 17.5c.69 0 1.37-.07 2-.21L11.72 15A3.064 3.064 0 0 1 9 12.28L5.6 8.87c-.99.85-1.82 1.91-2.42 3.13",
|
|
37
39
|
'eye-outline': "M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-4.5c5 0 9.27 3.11 11 7.5c-1.73 4.39-6 7.5-11 7.5S2.73 16.39 1 12c1.73-4.39 6-7.5 11-7.5M3.18 12a9.821 9.821 0 0 0 17.64 0a9.821 9.821 0 0 0-17.64 0",
|
|
@@ -43,15 +45,22 @@ export const mdiPaths = {
|
|
|
43
45
|
'lock': "M12 17a2 2 0 0 0 2-2a2 2 0 0 0-2-2a2 2 0 0 0-2 2a2 2 0 0 0 2 2m6-9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h1V6a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6-5a3 3 0 0 0-3 3v2h6V6a3 3 0 0 0-3-3",
|
|
44
46
|
'logout': "m17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5M4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z",
|
|
45
47
|
'minus': "M19 13H5v-2h14z",
|
|
48
|
+
'minus-circle-outline': "M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2M7 13h10v-2H7",
|
|
49
|
+
'note-text-outline': "M15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9zm4 16H5V5h9v5h5m-2 4H7v-2h10m-3 5H7v-2h7",
|
|
46
50
|
'pen': "M20.71 7.04c-.34.34-.67.67-.68 1c-.03.32.31.65.63.96c.48.5.95.95.93 1.44s-.53 1-1.04 1.5l-4.13 4.14L15 14.66l4.25-4.24l-.96-.96l-1.42 1.41l-3.75-3.75l3.84-3.83c.39-.39 1.04-.39 1.41 0l2.34 2.34c.39.37.39 1.02 0 1.41M3 17.25l9.56-9.57l3.75 3.75L6.75 21H3z",
|
|
47
51
|
'pencil': "M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75z",
|
|
48
52
|
'plus': "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z",
|
|
49
53
|
'share': "m21 12l-7-7v4C7 10 4 15 3 20c2.5-3.5 6-5.1 11-5.1V19z",
|
|
54
|
+
'shield-lock-outline': "M21 11c0 5.55-3.84 10.74-9 12c-5.16-1.26-9-6.45-9-12V5l9-4l9 4zm-9 10c3.75-1 7-5.46 7-9.78V6.3l-7-3.12L5 6.3v4.92C5 15.54 8.25 20 12 21m2.8-10V9.5C14.8 8.1 13.4 7 12 7S9.2 8.1 9.2 9.5V11c-.6 0-1.2.6-1.2 1.2v3.5c0 .7.6 1.3 1.2 1.3h5.5c.7 0 1.3-.6 1.3-1.2v-3.5c0-.7-.6-1.3-1.2-1.3m-1.3 0h-3V9.5c0-.8.7-1.3 1.5-1.3s1.5.5 1.5 1.3z",
|
|
55
|
+
'sync': "M12 18a6 6 0 0 1-6-6c0-1 .25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12a8 8 0 0 0 8 8v3l4-4l-4-4m0-11V1L8 5l4 4V6a6 6 0 0 1 6 6c0 1-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12a8 8 0 0 0-8-8",
|
|
50
56
|
'translate': "m12.87 15.07l-2.54-2.51l.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5l3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7l1.62-4.33L19.12 17z",
|
|
51
57
|
'trash-can': "M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3zm0 5h2v9H9zm4 0h2v9h-2z",
|
|
52
58
|
'trash-can-outline': "M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3zM7 6h10v13H7zm2 2v9h2V8zm4 0v9h2V8z",
|
|
53
59
|
'view-grid': "M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3",
|
|
54
60
|
'view-list': "M9 5v4h12V5M9 19h12v-4H9m0-1h12v-4H9M4 9h4V5H4m0 14h4v-4H4m0-1h4v-4H4z",
|
|
61
|
+
'weather-night': "m17.75 4.09l-2.53 1.94l.91 3.06l-2.63-1.81l-2.63 1.81l.91-3.06l-2.53-1.94L12.44 4l1.06-3l1.06 3zm3.5 6.91l-1.64 1.25l.59 1.98l-1.7-1.17l-1.7 1.17l.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95zm-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85c-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14c.4-.4.82-.76 1.27-1.08c.75-.53 1.93.36 1.85 1.19c-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82c-2.81 3.14-2.7 7.96.31 10.98c3.02 3.01 7.84 3.12 10.98.31",
|
|
62
|
+
'weather-sunny': "M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3m0-7l2.39 3.42C13.65 5.15 12.84 5 12 5s-1.65.15-2.39.42zM3.34 7l4.16-.35A7.2 7.2 0 0 0 5.94 8.5c-.44.74-.69 1.5-.83 2.29zm.02 10l1.76-3.77a7.13 7.13 0 0 0 2.38 4.14zM20.65 7l-1.77 3.79a7.02 7.02 0 0 0-2.38-4.15zm-.01 10l-4.14.36c.59-.51 1.12-1.14 1.54-1.86c.42-.73.69-1.5.83-2.29zM12 22l-2.41-3.44c.74.27 1.55.44 2.41.44c.82 0 1.63-.17 2.37-.44z",
|
|
63
|
+
'wifi-off': "M2.28 3L1 4.27l1.47 1.47c-.43.26-.86.55-1.27.86L3 9c.53-.4 1.08-.75 1.66-1.07l2.23 2.23c-.74.34-1.45.75-2.09 1.24l1.8 2.4c.78-.58 1.66-1.03 2.6-1.33L11.75 15c-1.25.07-2.41.5-3.35 1.2L12 21l2.46-3.27L17.74 21L19 19.72M12 3c-2.15 0-4.2.38-6.1 1.07l2.39 2.4C9.5 6.16 10.72 6 12 6c3.38 0 6.5 1.11 9 3l1.8-2.4C19.79 4.34 16.06 3 12 3m0 6c-.38 0-.75 0-1.12.05l3.19 3.2c1.22.28 2.36.82 3.33 1.55l1.8-2.4C17.2 9.89 14.7 9 12 9",
|
|
55
64
|
'wrap': "M21 5H3v2h18zM3 19h7v-2H3zm0-6h15c1 0 2 .43 2 2s-1 2-2 2h-2v-2l-4 3l4 3v-2h2c2.95 0 4-1.27 4-4c0-2.72-1-4-4-4H3z",
|
|
56
65
|
}
|
|
57
66
|
|
package/src/manifest.js
CHANGED
|
@@ -23,11 +23,14 @@ export const COMPONENT_NAMES = [
|
|
|
23
23
|
'Alert',
|
|
24
24
|
'Avatar',
|
|
25
25
|
'Badge',
|
|
26
|
+
'Banner',
|
|
26
27
|
'Breadcrumb',
|
|
27
28
|
'Button',
|
|
28
29
|
'ButtonsGroup',
|
|
29
30
|
'Card',
|
|
30
31
|
'Checkbox',
|
|
32
|
+
'CodeBlock',
|
|
33
|
+
'ComparisonTable',
|
|
31
34
|
'Divider',
|
|
32
35
|
'Dropdown',
|
|
33
36
|
'DropdownItem',
|
|
@@ -50,7 +53,10 @@ export const COMPONENT_NAMES = [
|
|
|
50
53
|
'Segmented',
|
|
51
54
|
'Select',
|
|
52
55
|
'Slider',
|
|
56
|
+
'Spinner',
|
|
53
57
|
'Stepper',
|
|
58
|
+
'ThemeToggle',
|
|
59
|
+
'Toast',
|
|
54
60
|
'Toggle',
|
|
55
61
|
'Tooltip',
|
|
56
62
|
]
|