@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.
Files changed (49) hide show
  1. package/README.md +69 -16
  2. package/fesm2022/3dsource-source-ui-native.mjs +116 -33
  3. package/fesm2022/3dsource-source-ui-native.mjs.map +1 -1
  4. package/index.d.ts +294 -5
  5. package/package.json +1 -1
  6. package/styles/elements/_src-button.scss +2 -0
  7. package/styles/elements/_src-form.scss +2 -0
  8. package/styles/elements/_src-modal.scss +93 -0
  9. package/styles/elements/_src-popover.scss +60 -0
  10. package/styles/elements/elements.scss +2 -0
  11. package/styles/utils.scss +0 -16
  12. package/lib/components/source-badge/components/source-badge.component.d.ts +0 -16
  13. package/lib/components/source-badge/constants/index.d.ts +0 -2
  14. package/lib/components/source-badge/constants/sourceBadgeSize.d.ts +0 -6
  15. package/lib/components/source-badge/constants/sourceBadgeType.d.ts +0 -9
  16. package/lib/components/source-badge/index.d.ts +0 -2
  17. package/lib/components/source-banner/components/source-banner.component.d.ts +0 -9
  18. package/lib/components/source-banner/constants/sourceBannerType.d.ts +0 -8
  19. package/lib/components/source-banner/index.d.ts +0 -2
  20. package/lib/components/source-button/components/source-button.component.d.ts +0 -27
  21. package/lib/components/source-button/constants/index.d.ts +0 -5
  22. package/lib/components/source-button/constants/sourceButtonAppearance.d.ts +0 -5
  23. package/lib/components/source-button/constants/sourceButtonColorScheme.d.ts +0 -6
  24. package/lib/components/source-button/constants/sourceButtonDefaultConfig.d.ts +0 -2
  25. package/lib/components/source-button/constants/sourceButtonSize.d.ts +0 -7
  26. package/lib/components/source-button/constants/sourceButtonType.d.ts +0 -6
  27. package/lib/components/source-button/index.d.ts +0 -3
  28. package/lib/components/source-button/interfaces/index.d.ts +0 -1
  29. package/lib/components/source-button/interfaces/sourceButton.interface.d.ts +0 -16
  30. package/lib/components/source-copyright/components/source-copyright.component.d.ts +0 -7
  31. package/lib/components/source-copyright/index.d.ts +0 -1
  32. package/lib/components/source-divider/components/source-divider.component.d.ts +0 -7
  33. package/lib/components/source-divider/index.d.ts +0 -1
  34. package/lib/components/source-hint/components/source-hint.component.d.ts +0 -7
  35. package/lib/components/source-hint/index.d.ts +0 -1
  36. package/lib/components/source-icon-button/components/source-icon-button.component.d.ts +0 -17
  37. package/lib/components/source-icon-button/constants/index.d.ts +0 -3
  38. package/lib/components/source-icon-button/constants/sourceIconButtonShape.d.ts +0 -5
  39. package/lib/components/source-icon-button/constants/sourceIconButtonSize.d.ts +0 -8
  40. package/lib/components/source-icon-button/constants/sourceIconButtonType.d.ts +0 -6
  41. package/lib/components/source-icon-button/index.d.ts +0 -2
  42. package/lib/components/source-loading/components/source-loading.component.d.ts +0 -18
  43. package/lib/components/source-loading/constants/sourceLoadingLineCap.d.ts +0 -6
  44. package/lib/components/source-loading/index.d.ts +0 -1
  45. package/lib/components/source-logo-loading/components/source-logo-loading.component.d.ts +0 -8
  46. package/lib/components/source-logo-loading/index.d.ts +0 -1
  47. package/lib/components/source-slider/components/source-slider.component.d.ts +0 -25
  48. package/lib/components/source-slider/index.d.ts +0 -1
  49. package/public-api.d.ts +0 -10
package/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # @3dsource/source-ui-native
2
2
 
3
- ### A bunch of native ui elements
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
- ## Installation
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
- ### add a library
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
- #### import needed styles in your main styles file
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
- _List of native ui elements_
22
-
23
- - [source-badge](src/lib/components/source-badge)
24
- - [source-banner](src/lib/components/source-banner)
25
- - [source-button](src/lib/components/source-button)
26
- - [source-copyright](src/lib/components/source-copyright)
27
- - [source-divider](src/lib/components/source-divider)
28
- - [source-hint](src/lib/components/source-hint)
29
- - [source-icon-button](src/lib/components/source-icon-button)
30
- - [source-loading](src/lib/components/source-loading)
31
- - [source-logo-loading](src/lib/components/source-logo-loading)
32
- - [source-slider](src/lib/components/source-slider)
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)