@rotki/ui-library 0.6.0 → 0.8.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/README.md +11 -8
- package/dist/all-icons.d.ts +82 -21
- package/dist/all-icons.es.js +4996 -4752
- package/dist/components/alerts/Alert.vue.d.ts +10 -10
- package/dist/components/buttons/button/Button.vue.d.ts +1 -0
- package/dist/components/buttons/button-group/ButtonGroup.vue.d.ts +1 -0
- package/dist/components/cards/Card.vue.d.ts +21 -1
- package/dist/components/cards/CardHeader.vue.d.ts +1 -1
- package/dist/components/chips/Chip.vue.d.ts +55 -15
- package/dist/components/divider/Divider.vue.d.ts +17 -0
- package/dist/components/forms/auto-complete/AutoComplete.vue.d.ts +25 -25
- package/dist/components/forms/auto-complete/AutoCompleteSelection.vue.d.ts +1 -1
- package/dist/components/forms/checkbox/Checkbox.vue.d.ts +36 -16
- package/dist/components/forms/radio-button/radio/Radio.vue.d.ts +37 -17
- package/dist/components/forms/radio-button/radio-group/RadioGroup.vue.d.ts +63 -12
- package/dist/components/forms/revealable-text-field/RevealableTextField.vue.d.ts +52 -43
- package/dist/components/forms/select/SimpleSelect.vue.d.ts +1 -1
- package/dist/components/forms/text-area/TextArea.vue.d.ts +233 -0
- package/dist/components/forms/text-field/TextField.vue.d.ts +59 -47
- package/dist/components/helpers/FormTextDetail.vue.d.ts +32 -0
- package/dist/components/icons/Icon.vue.d.ts +1 -1
- package/dist/components/index.d.ts +6 -2
- package/dist/components/index.es.js +28 -24
- package/dist/components/loaders/Skeleton.vue.d.ts +27 -0
- package/dist/components/loaders/SkeletonBase.vue.d.ts +17 -0
- package/dist/components/logos/Logo.vue.d.ts +1 -1
- package/dist/components/overlays/badge/Badge.vue.d.ts +4 -4
- package/dist/components/overlays/dialog/Dialog.vue.d.ts +1 -1
- package/dist/components/overlays/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/components/progress/Progress.vue.d.ts +1 -1
- package/dist/components/steppers/FooterStepper.vue.d.ts +1 -1
- package/dist/components/steppers/Stepper.vue.d.ts +1 -1
- package/dist/components/steppers/StepperCustomIcon.vue.d.ts +1 -1
- package/dist/components/steppers/StepperIcon.vue.d.ts +1 -1
- package/dist/components/tables/DataTable.vue.d.ts +47 -2
- package/dist/components/tables/ExpandButton.vue.d.ts +34 -0
- package/dist/components/tables/TablePagination.vue.d.ts +1 -1
- package/dist/components/tabs/tab/Tab.vue.d.ts +1 -1
- package/dist/components/tabs/tab-item/TabItem.vue.d.ts +1 -1
- package/dist/components/tabs/tab-items/TabItems.vue.d.ts +1 -1
- package/dist/components/tabs/tabs/Tabs.vue.d.ts +1 -1
- package/dist/composables/defaults/table.d.ts +9 -0
- package/dist/composables/index.es.js +2 -2
- package/dist/composables/popper.d.ts +1 -1
- package/dist/composables/sticky-header.d.ts +9 -0
- package/dist/index-2YbRDW3N.js +6333 -0
- package/dist/{index-393a0e94.js → index-W2poXQa4.js} +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.es.js +2578 -2505
- package/dist/style.css +1 -1
- package/dist/theme/index.es.js +1 -1
- package/dist/utils/form-text-detail.d.ts +8 -0
- package/dist/utils/helpers.d.ts +27 -0
- package/package.json +39 -39
- package/dist/index-2e3eeb1f.js +0 -5701
- /package/dist/{colors-01d79c7b.js → colors-ikihApJv.js} +0 -0
package/README.md
CHANGED
|
@@ -27,11 +27,11 @@ import '@fontsource/roboto/latin.css';
|
|
|
27
27
|
To use the library you must install the library plugin:
|
|
28
28
|
|
|
29
29
|
```typescript
|
|
30
|
-
import {
|
|
30
|
+
import { createRui } from "@rotki/ui-library";
|
|
31
31
|
|
|
32
32
|
...
|
|
33
|
-
|
|
34
|
-
app.use(RuiPlugin
|
|
33
|
+
const RuiPlugin = createRui(options);
|
|
34
|
+
app.use(RuiPlugin);
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
### Using the components
|
|
@@ -72,11 +72,14 @@ switchThemeScheme(ThemeMode.dark);
|
|
|
72
72
|
|
|
73
73
|
You need to specify which icons you want to enable, when installing the RuiPlugin.
|
|
74
74
|
```typescript
|
|
75
|
-
import { Ri4kFill, Ri4kLine,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
import { Ri4kFill, Ri4kLine, createRui } from '@rotki/ui-library';
|
|
76
|
+
|
|
77
|
+
const RuiPlugin = createRui({
|
|
78
|
+
theme: {
|
|
79
|
+
icons: [Ri4kFill, Ri4kLine]
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
app.use(RuiPlugin);
|
|
80
83
|
```
|
|
81
84
|
|
|
82
85
|
```vue
|