@3dsource/source-ui-native 1.0.15 → 1.0.18
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 +69 -16
- package/fesm2022/3dsource-source-ui-native.mjs +116 -33
- package/fesm2022/3dsource-source-ui-native.mjs.map +1 -1
- package/index.d.ts +294 -5
- package/package.json +1 -1
- package/styles/elements/_src-button.scss +2 -0
- package/styles/elements/_src-form.scss +2 -0
- package/styles/elements/_src-modal.scss +93 -0
- package/styles/elements/_src-popover.scss +60 -0
- package/styles/elements/elements.scss +2 -0
- package/styles/utils.scss +0 -16
- package/lib/components/source-badge/components/source-badge.component.d.ts +0 -16
- package/lib/components/source-badge/constants/index.d.ts +0 -2
- package/lib/components/source-badge/constants/sourceBadgeSize.d.ts +0 -6
- package/lib/components/source-badge/constants/sourceBadgeType.d.ts +0 -9
- package/lib/components/source-badge/index.d.ts +0 -2
- package/lib/components/source-banner/components/source-banner.component.d.ts +0 -9
- package/lib/components/source-banner/constants/sourceBannerType.d.ts +0 -8
- package/lib/components/source-banner/index.d.ts +0 -2
- package/lib/components/source-button/components/source-button.component.d.ts +0 -27
- package/lib/components/source-button/constants/index.d.ts +0 -5
- package/lib/components/source-button/constants/sourceButtonAppearance.d.ts +0 -5
- package/lib/components/source-button/constants/sourceButtonColorScheme.d.ts +0 -6
- package/lib/components/source-button/constants/sourceButtonDefaultConfig.d.ts +0 -2
- package/lib/components/source-button/constants/sourceButtonSize.d.ts +0 -7
- package/lib/components/source-button/constants/sourceButtonType.d.ts +0 -6
- package/lib/components/source-button/index.d.ts +0 -3
- package/lib/components/source-button/interfaces/index.d.ts +0 -1
- package/lib/components/source-button/interfaces/sourceButton.interface.d.ts +0 -16
- package/lib/components/source-copyright/components/source-copyright.component.d.ts +0 -7
- package/lib/components/source-copyright/index.d.ts +0 -1
- package/lib/components/source-divider/components/source-divider.component.d.ts +0 -7
- package/lib/components/source-divider/index.d.ts +0 -1
- package/lib/components/source-hint/components/source-hint.component.d.ts +0 -7
- package/lib/components/source-hint/index.d.ts +0 -1
- package/lib/components/source-icon-button/components/source-icon-button.component.d.ts +0 -17
- package/lib/components/source-icon-button/constants/index.d.ts +0 -3
- package/lib/components/source-icon-button/constants/sourceIconButtonShape.d.ts +0 -5
- package/lib/components/source-icon-button/constants/sourceIconButtonSize.d.ts +0 -8
- package/lib/components/source-icon-button/constants/sourceIconButtonType.d.ts +0 -6
- package/lib/components/source-icon-button/index.d.ts +0 -2
- package/lib/components/source-loading/components/source-loading.component.d.ts +0 -18
- package/lib/components/source-loading/constants/sourceLoadingLineCap.d.ts +0 -6
- package/lib/components/source-loading/index.d.ts +0 -1
- package/lib/components/source-logo-loading/components/source-logo-loading.component.d.ts +0 -8
- package/lib/components/source-logo-loading/index.d.ts +0 -1
- package/lib/components/source-slider/components/source-slider.component.d.ts +0 -25
- package/lib/components/source-slider/index.d.ts +0 -1
- package/public-api.d.ts +0 -10
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# @3dsource/source-ui-native
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A collection of native UI components for web applications, designed to be used with or without Angular. These components provide a consistent design system for 3dsource applications.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
The Source UI Native library provides framework-agnostic UI components that can be used in any web application. These components are built with vanilla JavaScript and CSS, making them lightweight and performant.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
## Installation
|
|
8
10
|
|
|
9
11
|
```shell
|
|
10
12
|
npm i @3dsource/source-ui-native
|
|
@@ -12,21 +14,72 @@
|
|
|
12
14
|
|
|
13
15
|
## Usage
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
### Importing Styles
|
|
18
|
+
|
|
19
|
+
Add the following import to your main styles file:
|
|
16
20
|
|
|
17
21
|
```scss
|
|
18
22
|
@use '../node_modules/@3dsource/source-ui-native/styles/source.ui.native.scss';
|
|
19
23
|
```
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
### Using Components
|
|
26
|
+
|
|
27
|
+
The components can be used directly in your HTML:
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<source-button>Click Me</source-button>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Available Components
|
|
34
|
+
|
|
35
|
+
### UI Elements
|
|
36
|
+
|
|
37
|
+
- **[source-badge](src/lib/components/source-badge)** - Display badges and tags
|
|
38
|
+
- **[source-banner](src/lib/components/source-banner)** - Show notification banners
|
|
39
|
+
- **[source-button](src/lib/components/source-button)** - Customizable button component
|
|
40
|
+
- **[source-copyright](src/lib/components/source-copyright)** - Display copyright information
|
|
41
|
+
- **[source-divider](src/lib/components/source-divider)** - Horizontal or vertical dividers
|
|
42
|
+
- **[source-hint](src/lib/components/source-hint)** - Show tooltips and hints
|
|
43
|
+
- **[source-icon-button](src/lib/components/source-icon-button)** - Button with icon
|
|
44
|
+
- **[source-loading](src/lib/components/source-loading)** - Loading indicator
|
|
45
|
+
- **[source-logo-loading](src/lib/components/source-logo-loading)** - Loading indicator with logo
|
|
46
|
+
- **[source-slider](src/lib/components/source-slider)** - Range slider component
|
|
47
|
+
|
|
48
|
+
## Component Examples
|
|
49
|
+
|
|
50
|
+
### Button Component
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<source-button variant="primary" size="medium"> Click Me </source-button>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Badge Component
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<source-badge value="New" color="accent"></source-badge>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Loading Component
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<source-loading size="large" color="primary"></source-loading>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Customization
|
|
69
|
+
|
|
70
|
+
Components can be customized using CSS variables:
|
|
71
|
+
|
|
72
|
+
```css
|
|
73
|
+
:root {
|
|
74
|
+
--source-primary-color: #3f51b5;
|
|
75
|
+
--source-accent-color: #ff4081;
|
|
76
|
+
--source-warn-color: #f44336;
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Browser Support
|
|
81
|
+
|
|
82
|
+
- Chrome (latest)
|
|
83
|
+
- Firefox (latest)
|
|
84
|
+
- Safari (latest)
|
|
85
|
+
- Edge (latest)
|