@3dsource/source-ui-native 1.0.17 → 1.0.19

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 (57) hide show
  1. package/README.md +80 -15
  2. package/fesm2022/3dsource-source-ui-native.mjs +120 -120
  3. package/fesm2022/3dsource-source-ui-native.mjs.map +1 -1
  4. package/index.d.ts +294 -5
  5. package/package.json +2 -2
  6. package/styles/elements/_src-button.scss +2 -0
  7. package/styles/elements/_src-form.scss +2 -0
  8. package/styles/elements/_src-icon-button.scss +82 -0
  9. package/styles/elements/_src-modal.scss +0 -20
  10. package/styles/elements/_src-popover.scss +60 -0
  11. package/styles/elements/elements.scss +2 -0
  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-modal-element/components/source-modal-element.component.d.ts +0 -13
  48. package/lib/components/source-modal-element/components/source-overlay-container.component.d.ts +0 -9
  49. package/lib/components/source-modal-element/constants/modalData.token.d.ts +0 -3
  50. package/lib/components/source-modal-element/constants/sourceModalSize.const.d.ts +0 -5
  51. package/lib/components/source-modal-element/index.d.ts +0 -5
  52. package/lib/components/source-modal-element/interfaces/index.d.ts +0 -1
  53. package/lib/components/source-modal-element/interfaces/sourceModalElementData.interface.d.ts +0 -18
  54. package/lib/components/source-modal-element/services/sourceModalElement.service.d.ts +0 -11
  55. package/lib/components/source-slider/components/source-slider.component.d.ts +0 -25
  56. package/lib/components/source-slider/index.d.ts +0 -1
  57. package/public-api.d.ts +0 -11
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 3D Source 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,84 @@
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_
25
+ ### Using Components
26
+
27
+ The components can be used directly in your HTML:
28
+
29
+ ```html
30
+ <src-button>Click Me</src-button>
31
+ ```
32
+
33
+ ## Available Components
34
+
35
+ ### UI Elements
36
+
37
+ - **[src-badge](https://preview.3dsource.com/front-libraries/master/#/components/SourceBadgeComponent)** - Display badges and tags
38
+ - **[src-banner](https://preview.3dsource.com/front-libraries/master/#/components/SourceBannerComponent)** - Show notification banners
39
+ - **[src-button](https://preview.3dsource.com/front-libraries/master/#/components/SourceButtonComponent)** - Customizable button component
40
+ - **[src-copyright](https://preview.3dsource.com/front-libraries/master/#/components/SourceCopyrightComponent)** - Display copyright information
41
+ - **[src-divider](https://preview.3dsource.com/front-libraries/master/#/components/SourceDividerComponent)** - Horizontal divider for lists
42
+ - **[src-hint](https://preview.3dsource.com/front-libraries/master/#/components/SourceHintComponent)** - Show hints or error messages
43
+ - **[src-icon-button](https://preview.3dsource.com/front-libraries/master/#/components/SourceIconButtonComponent)** - Display icon button
44
+ - **[src-loading](https://preview.3dsource.com/front-libraries/master/#/components/SourceLoadingComponent)** - Loading indicator
45
+ - **[src-logo-loading](https://preview.3dsource.com/front-libraries/master/#/components/SourceLogoLoadingComponent)** - Loading indicator with logo
46
+ - **[src-modal](https://preview.3dsource.com/front-libraries/master/#/components/SourceModalElement)** - Modal element for simple modals
47
+ - **[src-slider](https://preview.3dsource.com/front-libraries/master/#/components/SourceSliderComponent)** - Simple slider component
48
+ - Basic styles for lists, form elements, overlays
49
+
50
+ ## Component Examples
51
+
52
+ ### Button Component
53
+
54
+ ```html
55
+ <src-button colorScheme="primary" size="medium"> Click Me </src-button>
56
+ ```
57
+
58
+ ### Badge Component
59
+
60
+ ```html
61
+ <src-badge type="informational">Info</src-badge>
62
+ ```
63
+
64
+ ### Loading Component
65
+
66
+ ```html
67
+ <src-loading [size]="64" backgroundStrokeColor="#e0f8ee" progressStrokeColor="#007a5c"></src-loading>
68
+ ```
69
+
70
+ ## Customization
71
+
72
+ Components can be customized by overriding global CSS variables or by setting values for particular components variables. Whole table of CSS custom properties is available in the **[documentation site](https://preview.3dsource.com/front-libraries/master/#/components/design-tokens)**
73
+
74
+ ```css
75
+ :root {
76
+ --src-color-brand-500: #3f51b5;
77
+ --src-color-text-default: #fff;
78
+ }
79
+ ```
80
+
81
+ ```css
82
+ .src-button {
83
+ --srcButtonBgColor: #3f51b5;
84
+ --srcButtonBorderRadius: 6px;
85
+ --srcButtonFontColor: #fff;
86
+ --srcButtonPaddings: 8px 16px;
87
+ }
88
+ ```
89
+
90
+ You can see all available options and examples in **[documentation](https://preview.3dsource.com/front-libraries/master/#/components/getting-started)**
91
+
92
+ ## Browser Support
22
93
 
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)
94
+ - Chrome (latest)
95
+ - Firefox (latest)
96
+ - Safari (latest)
97
+ - Edge (latest)