@sixbell-telco/sdk 0.1.0 → 0.1.3
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 +117 -0
- package/LICENSE +201 -0
- package/README.md +221 -0
- package/banner.png +0 -0
- package/components/accordion/accordion-item/accordion-item.component.d.ts +4 -4
- package/components/avatar/src/avatar.component.d.ts +9 -6
- package/components/button/src/button.component.d.ts +24 -7
- package/components/card/src/card.component.d.ts +9 -4
- package/components/dropdown/src/dropdown.component.d.ts +33 -8
- package/components/dual-list/src/dual-list.component.d.ts +18 -8
- package/components/forms/checkbox/src/checkbox.component.d.ts +6 -10
- package/components/table/src/table.component.d.ts +2 -2
- package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +3 -2
- package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +3 -2
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +6 -6
- package/esm2022/components/avatar/src/avatar.component.mjs +9 -7
- package/esm2022/components/button/src/button.component.mjs +20 -13
- package/esm2022/components/card/src/card.component.mjs +7 -4
- package/esm2022/components/dropdown/src/dropdown.component.mjs +26 -17
- package/esm2022/components/dual-list/src/dual-list.component.mjs +10 -22
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +9 -7
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +5 -4
- package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +5 -4
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +8 -6
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +19 -12
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +6 -3
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +25 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +9 -21
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +8 -6
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +8 -6
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Icon Component**: Added icon component (`528b633`)
|
|
13
|
+
- **Showcase Page**: Set up showcase page for app component (`528b633`)
|
|
14
|
+
- **Husky**: Added pre-commit hook configuration (`528b633`)
|
|
15
|
+
- **Lint-Staged**: Added lint-staged config file (`528b633`)
|
|
16
|
+
- **Tailwind**: Added Tailwind CSS configuration file (`528b633`)
|
|
17
|
+
- **EditorConfig**: Added EditorConfig file (`528b633`)
|
|
18
|
+
- **Jest**: Set up Jest for testing (`528b633`)
|
|
19
|
+
- **Project**: Added codeowners file (`947c434`)
|
|
20
|
+
- **Package**: Installed necessary packages (`528b633`)
|
|
21
|
+
- **Prettier**: Set up Prettier for code formatting (`528b633`)
|
|
22
|
+
- **ESLint**: Set up ESLint for linting (`528b633`)
|
|
23
|
+
- **Components Showcase**: Added components showcase (`528b633`)
|
|
24
|
+
- **Avatar Component**: Added new avatar component (`c61542f`)
|
|
25
|
+
- **Card Component**: Added new card component (`4751878`)
|
|
26
|
+
- **Card Showcase**: Added card component to showcase app (`2c648b1`)
|
|
27
|
+
- **Countdown Component**: Added new countdown component (`8b63fef`)
|
|
28
|
+
- **Countdown Showcase**: Added countdown component to showcase app (`d0c8c6c`)
|
|
29
|
+
- **Link Component**: Added new link component (`f54abe7`)
|
|
30
|
+
- **Link Showcase**: Added link component to showcase app (`2d95a48`)
|
|
31
|
+
- **Modal Component**: Added new modal component (`f0ce897`)
|
|
32
|
+
- **Modal Showcase**: Added modal component to showcase app (`df89fc1`)
|
|
33
|
+
- **Notification Component**: Added new notification component (`ee42035`)
|
|
34
|
+
- **Notification Showcase**: Added notification component to showcase app (`c89b762`)
|
|
35
|
+
- **Tab Component**: Added new tab component (`f8ce307`)
|
|
36
|
+
- **Tab Showcase**: Added tab component to showcase app (`6012f2a`)
|
|
37
|
+
- **Product Card Component**: Added new product card component (`fdd805d`)
|
|
38
|
+
- **Product Card Showcase**: Added product card component to showcase app (`d1a69f8`)
|
|
39
|
+
- **Progress Component**: Added new progress component (`d487595`)
|
|
40
|
+
- **Progress Showcase**: Added progress component to showcase app (`ba3cca1`)
|
|
41
|
+
- **Dropdown Component**: Added new dropdown component (`76bf4a0`)
|
|
42
|
+
- **Dropdown Showcase**: Added dropdown component to showcase app (`63e6e55`)
|
|
43
|
+
- **Paginator Component**: Added new paginator component (`fdaee62`)
|
|
44
|
+
- **Paginator Showcase**: Added paginator and paginator item components to showcase app (`306367f`)
|
|
45
|
+
- **Tooltip Component**: Added new tooltip component (`c40d13f`)
|
|
46
|
+
- **Tooltip Showcase**: Added tooltip component to showcase app (`45e8ef4`)
|
|
47
|
+
- **Toast Component**: Added new toast component (`68d2c15`)
|
|
48
|
+
- **Toast Showcase**: Added toast component to showcase app (`0cc114f`)
|
|
49
|
+
- **UUID Utility**: Added UUID utility function (`f698ba5`)
|
|
50
|
+
- **Dependencies**: Added UUID as peer dependency (`6ce3197`, `ecb2a32`)
|
|
51
|
+
- **Checkbox Component**: Added new checkbox component (`1d5be9b`)
|
|
52
|
+
- **Checkbox Showcase**: Added checkbox component to showcase app (`bb45929`)
|
|
53
|
+
- **Input Component**: Added new input component (`c9b41a4`)
|
|
54
|
+
- **Input Showcase**: Added input component to showcase app (`98d81d0`)
|
|
55
|
+
- **Form Errors Component**: Added new form errors component (`1733925`)
|
|
56
|
+
- **Form Errors Showcase**: Added form errors component to showcase app (`5324283`)
|
|
57
|
+
- **Radio Component**: Added new radio component (`b597539`)
|
|
58
|
+
- **Radio Showcase**: Added radio component to showcase app (`0c1c356`)
|
|
59
|
+
- **Range Component**: Added new range component (`84839f1`)
|
|
60
|
+
- **Range Showcase**: Added range component to showcase app (`901a3f7`)
|
|
61
|
+
- **Select Component**: Added new select component (`eace3ae`)
|
|
62
|
+
- **Select Showcase**: Added select component to showcase app (`93e26ba`)
|
|
63
|
+
- **Switch Component**: Added new switch component (`8e3fd44`)
|
|
64
|
+
- **Switch Showcase**: Added switch component to showcase app (`54030f6`)
|
|
65
|
+
- **Textarea Component**: Added new textarea component (`b849485`)
|
|
66
|
+
- **Textarea Showcase**: Added textarea component to showcase app (`a047d5a`)
|
|
67
|
+
- **Toggle Component**: Add toggle component (`bfda78d`)
|
|
68
|
+
- **Toggle Showcase**: Add toggle component to showcase page (`64c27b8`)
|
|
69
|
+
- **Combobox Component**: Add combobox component (`b875fbe`)
|
|
70
|
+
- **Combobox Showcase**: Add combobox component to showcase page (`4a66061`)
|
|
71
|
+
- **Date Picker**: Add date picker component (`ace6fd0`)
|
|
72
|
+
- **Showcase**: Add date picker to showcase page (`ed919f2`)
|
|
73
|
+
- **Table Component**: Add table component (`d71e13d`)
|
|
74
|
+
- **Showcase**: Add table component to showcase page (`df527e1`)
|
|
75
|
+
- **File Uploader**: Add file uploader and dropzone components (`998e7c5`)
|
|
76
|
+
- **File Uploader Pipes**: Add necessary pipes for file uploader components (`ea38394`)
|
|
77
|
+
- **Showcase**: Add file uploader components to showcase page (`acc9c14`)
|
|
78
|
+
- **Dual List**: Add dual list component (`4e8f652`)
|
|
79
|
+
- **Showcase**: Add dual list component to showcase page (`c5e1111`)
|
|
80
|
+
- **Wizard**: Add wizard component (`9925389`)
|
|
81
|
+
- **Showcase**: Add wizard component to showcase page (`4b68ba4`)
|
|
82
|
+
- **Accordion**: Add accordion component (`8ee00c4`)
|
|
83
|
+
- **Showcase**: Add accordion component to showcase page (`a8935e9`)
|
|
84
|
+
|
|
85
|
+
### Fixed
|
|
86
|
+
|
|
87
|
+
- **Link Component**: Fixed styling issues for button variants (`d56cdf4`)
|
|
88
|
+
- **Form Errors**: Handle case where errors are null (`fdfbe1c`)
|
|
89
|
+
|
|
90
|
+
### Changed
|
|
91
|
+
|
|
92
|
+
- **Changelog**: Updated documentation in changelog.md (`528b633`)
|
|
93
|
+
- **Readme**: Updated documentation in README (`528b633`)
|
|
94
|
+
- **VScode Settings**: Updated VSCode settings (`528b633`)
|
|
95
|
+
- **Project Structure**: Refactored project structure from monolithic export to modular export (`528b633`)
|
|
96
|
+
- **VScode Settings**: Updated VSCode settings (`528b633`)
|
|
97
|
+
- **Basic Configurations**: Updated basic configurations (`528b633`)
|
|
98
|
+
- **Avatar Showcase**: Reverted addition of avatar component to showcase app (`386f05e`)
|
|
99
|
+
- **Tailwind Config**: Added new paths for handling styles (`4c01c3b`)
|
|
100
|
+
- **Project Settings**: Updated tsconfig settings (`a5472d5`)
|
|
101
|
+
- **Project Structure**: Refactored showcase web app with own settings (`ab6a802`)
|
|
102
|
+
- **Dependencies**: Added dayjs as peer dependency for countdown component (`808ddfa`)
|
|
103
|
+
- **Combobox**: Remove unnecessary decorator (`7e466fe`)
|
|
104
|
+
- **Dropzone**: Update extract extension pipe path (`0cc8854`)
|
|
105
|
+
- **Pipes**: Change pipes path (`1852fd8`)
|
|
106
|
+
- **Typography**: Add new style option for fonts (`e82ae80`)
|
|
107
|
+
- **Showcase**: Update dropzone name to file-dropzone (`71b8709`)
|
|
108
|
+
- **Accordion Item**: Fix TypeScript intellisense issues (`25eea37`)
|
|
109
|
+
- **File Dropzone**: Rename dropzone.component to file-dropzone.component (`172e70c`)
|
|
110
|
+
- **Form Error**: Change form-errors name to form-error (`075f0db`)
|
|
111
|
+
- **README**: Update documentation (`8ba33c1`)
|
|
112
|
+
|
|
113
|
+
### Refactored
|
|
114
|
+
|
|
115
|
+
- **SDK**: Refactored SDK module structure (`528b633`)
|
|
116
|
+
- **SVG Add Icon**: Removed unused component from SVG add icon (`528b633`)
|
|
117
|
+
- **SDK**: Fixed TypeScript issues (`2650c35`)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# Sibell Telco SDK
|
|
2
|
+
|
|
3
|
+
Welcome to the project! This README will provide you with an overview of the files and directories in the project and explain how to run it.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Pre-requirements
|
|
8
|
+
|
|
9
|
+
- Angular 18.X.X or later
|
|
10
|
+
|
|
11
|
+
## Available Components
|
|
12
|
+
|
|
13
|
+
### General components
|
|
14
|
+
|
|
15
|
+
| Component | Description |
|
|
16
|
+
| --------------- | ---------------------------------- |
|
|
17
|
+
| Accordion | Expandable/collapsible content |
|
|
18
|
+
| Accordion Item | Item within an accordion |
|
|
19
|
+
| Avatar | User avatar display |
|
|
20
|
+
| Button | Buttons for various actions |
|
|
21
|
+
| Card | Container for content and actions |
|
|
22
|
+
| Countdown | Countdown timer |
|
|
23
|
+
| Dropdown | Dropdown menu for actions or links |
|
|
24
|
+
| Dual List | Dual list for selecting items |
|
|
25
|
+
| File Uploader | Upload files |
|
|
26
|
+
| File Dropzone | Drag and drop file upload |
|
|
27
|
+
| Icon | Display icons |
|
|
28
|
+
| Link | Hyperlink component |
|
|
29
|
+
| Modal | Modal dialog |
|
|
30
|
+
| Notification | Display notifications |
|
|
31
|
+
| Paginator | Pagination controls |
|
|
32
|
+
| Product Card | Display product information |
|
|
33
|
+
| Progress | Progress bar |
|
|
34
|
+
| Tab | Tabbed navigation |
|
|
35
|
+
| Table | Display tabular data |
|
|
36
|
+
| Toast | Toast notifications |
|
|
37
|
+
| Tooltip | Display tooltips |
|
|
38
|
+
| Wizard | Step-by-step wizard |
|
|
39
|
+
|
|
40
|
+
### Forms specific components
|
|
41
|
+
|
|
42
|
+
| Component | Description |
|
|
43
|
+
| ----------- | ------------------------------- |
|
|
44
|
+
| Checkbox | Checkbox input |
|
|
45
|
+
| Combobox | Combo box for selecting options |
|
|
46
|
+
| Datepicker | Date selection input |
|
|
47
|
+
| Form Error | Display form errors |
|
|
48
|
+
| Input | Text input field |
|
|
49
|
+
| Radio | Radio button input |
|
|
50
|
+
| Range | Range slider input |
|
|
51
|
+
| Select | Dropdown select input |
|
|
52
|
+
| Switch | Toggle switch input |
|
|
53
|
+
| Textarea | Multi-line text input |
|
|
54
|
+
| Toggle | Toggle button input |
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Setup
|
|
58
|
+
|
|
59
|
+
### Quick Setup (Recommended)
|
|
60
|
+
|
|
61
|
+
We provide a CLI tool for automatic setup:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npx @sixbell-telco/cli init
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
This will automatically:
|
|
68
|
+
- Install all necessary dependencies
|
|
69
|
+
- Configure Tailwind CSS and Daisy UI
|
|
70
|
+
- Set up required theme configurations
|
|
71
|
+
|
|
72
|
+
> **Note:** The CLI tool is currently a work in progress and is not yet available. Coming soon!
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Manual Setup
|
|
76
|
+
|
|
77
|
+
1. Install dependencies:
|
|
78
|
+
```bash
|
|
79
|
+
npm i @sixbell-telco/sdk @tailwindcss/typography daisyui
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
2. Configure Tailwind CSS ([Tailwind guide](https://tailwindcss.com/docs/guides/angular))
|
|
83
|
+
|
|
84
|
+
3. Add the provided configuration to your `tailwind.config.js` [See detailed config below]
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
/** @type {import('tailwindcss').Config} */
|
|
88
|
+
|
|
89
|
+
module.exports = {
|
|
90
|
+
content: ['./src/**/*.{html,ts}'],
|
|
91
|
+
theme: {
|
|
92
|
+
extend: {
|
|
93
|
+
colors: {
|
|
94
|
+
'secondary-muted': 'rgba(var(--secondary-muted), <alpha-value>)',
|
|
95
|
+
'secondary-muted-content': 'rgba(var(--secondary-muted-content), <alpha-value>)',
|
|
96
|
+
'border-box': 'rgba(var(--border-box))',
|
|
97
|
+
ring: 'rgba(var(--ring), <alpha-value>)',
|
|
98
|
+
'ring-accent': 'rgba(var(--ring-accent), <alpha-value>)',
|
|
99
|
+
separator: 'rgba(var(--separtor), <alpha-value>)',
|
|
100
|
+
'base-200-muted': 'rgba(var(--base-200-muted))',
|
|
101
|
+
},
|
|
102
|
+
fontFamily: {
|
|
103
|
+
poppins: ['Poppins', 'sans-serif'],
|
|
104
|
+
heading: ['Poppins', 'sans-serif'],
|
|
105
|
+
body: ['Poppins', 'sans-serif'],
|
|
106
|
+
},
|
|
107
|
+
boxShadow: {
|
|
108
|
+
primary: '0px 5px 5px 0px rgba(var(--shadow-primary))',
|
|
109
|
+
secondary: '0px 2px 5px 0px rgba(var(--shadow-secondary))',
|
|
110
|
+
},
|
|
111
|
+
borderRadius: {
|
|
112
|
+
'btn-xs': 'var(--rounded-btn-xs)',
|
|
113
|
+
'btn-sm': 'var(--rounded-btn-sm)',
|
|
114
|
+
'btn-md': 'var(--rounded-btn-md)',
|
|
115
|
+
'btn-lg': 'var(--rounded-btn-lg)',
|
|
116
|
+
'box-sm': 'var(--rounded-box-sm)',
|
|
117
|
+
'box-md': 'var(--rounded-box-md)',
|
|
118
|
+
'box-lg': 'var(--rounded-box-lg)',
|
|
119
|
+
},
|
|
120
|
+
fontWeight: {
|
|
121
|
+
inherit: 'inherit',
|
|
122
|
+
},
|
|
123
|
+
transitionTimingFunction: {
|
|
124
|
+
'ease-out-back': 'cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
125
|
+
'ease-in-and-out-back': 'cubic-bezier(0.68, -0.55, 0.27, 1.55)',
|
|
126
|
+
},
|
|
127
|
+
animation: {
|
|
128
|
+
'slide-in': 'slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
129
|
+
'slide-out': 'slideOut 0.8s cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
130
|
+
'toast-slide-out': 'toastSlideOut 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55)',
|
|
131
|
+
'fade-in': 'fadeIn 1s',
|
|
132
|
+
'fade-out': 'fadeOut 1s',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
daisyui: {
|
|
137
|
+
themes: [
|
|
138
|
+
{
|
|
139
|
+
vivid_elegance: {
|
|
140
|
+
// Daisy UI theme variables
|
|
141
|
+
primary: '#4DD6ED',
|
|
142
|
+
'primary-content': '#FFFFFF',
|
|
143
|
+
secondary: '#d9dadd',
|
|
144
|
+
'secondary-content': '#414756',
|
|
145
|
+
accent: '#4DD6ED',
|
|
146
|
+
'accent-content': '#FFFFFF',
|
|
147
|
+
neutral: '#414756',
|
|
148
|
+
'neutral-content': '#FFFFFF',
|
|
149
|
+
'base-100': '#FFFFFF',
|
|
150
|
+
'base-200': '#f6f6f6',
|
|
151
|
+
'base-300': '#4DBED1',
|
|
152
|
+
'base-content': '#1F2937',
|
|
153
|
+
info: '#4DD6ED',
|
|
154
|
+
'info-content': '#FFFFFF',
|
|
155
|
+
success: '#4DD192',
|
|
156
|
+
'success-content': '#FFFFFF',
|
|
157
|
+
warning: '#DBD46C',
|
|
158
|
+
'warning-content': '#414756',
|
|
159
|
+
error: '#E72F40',
|
|
160
|
+
'error-content': '#FFFFFF',
|
|
161
|
+
// Custom colors
|
|
162
|
+
'--secondary-muted': '237, 237, 237',
|
|
163
|
+
'--secondary-muted-content': '65, 71, 86',
|
|
164
|
+
'--shadow-primary': '77, 190, 209, 0.7',
|
|
165
|
+
'--shadow-secondary': '186, 185, 185, 0.40',
|
|
166
|
+
'--separtor': '217, 217, 217',
|
|
167
|
+
'--border-box': '65, 71,68, 0.2',
|
|
168
|
+
'--input-border': '186, 185, 185',
|
|
169
|
+
'--ring': '186, 185, 185',
|
|
170
|
+
'--ring-accent': '77, 214, 237',
|
|
171
|
+
'--base-200-muted': '250, 250, 250, 0.2',
|
|
172
|
+
// Daisy UI utility variables
|
|
173
|
+
'--rounded-box': '1rem', // border radius rounded-box utility class, used in card and other large boxes
|
|
174
|
+
'--rounded-btn': '0.5rem', // border radius rounded-btn utility class, used in buttons and similar element
|
|
175
|
+
'--rounded-badge': '1.9rem', // border radius rounded-badge utility class, used in badges and similar
|
|
176
|
+
'--animation-btn': '0.25s', // duration of animation when you click on button
|
|
177
|
+
'--animation-input': '0.2s', // duration of animation for inputs like checkbox, toggle, radio, etc
|
|
178
|
+
'--btn-focus-scale': '0.95', // scale transform of button when you focus on it
|
|
179
|
+
'--border-btn': '1px', // border width of buttons
|
|
180
|
+
'--tab-border': '1px', // border width of tabs
|
|
181
|
+
'--tab-radius': '0.5rem', // border radius of tabs
|
|
182
|
+
// Custom utility variables
|
|
183
|
+
'--rounded-btn-xs': '0.3rem', // 4.8px
|
|
184
|
+
'--rounded-btn-sm': '0.5rem', // 8px
|
|
185
|
+
'--rounded-btn-md': '0.813rem', // 13px
|
|
186
|
+
'--rounded-btn-lg': '2.25rem', // 36px
|
|
187
|
+
'--rounded-box-sm': '0.5rem', // 8px
|
|
188
|
+
'--rounded-box-md': '0.813rem', // 13px
|
|
189
|
+
'--rounded-box-lg': '2.25rem', // 36px
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
plugins: [require('@midudev/tailwind-animations'), require('@tailwindcss/typography'), require('daisyui')],
|
|
195
|
+
};
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Usage Example
|
|
199
|
+
|
|
200
|
+
Here's a basic example of using a button component:
|
|
201
|
+
|
|
202
|
+
```ts
|
|
203
|
+
// app.component.ts
|
|
204
|
+
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
205
|
+
|
|
206
|
+
@Component({
|
|
207
|
+
imports: [ButtonComponent],
|
|
208
|
+
template: `
|
|
209
|
+
<app-button label="Click me!" [variants]="{ variant: 'primary' }"></app-button>
|
|
210
|
+
`
|
|
211
|
+
})
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Documentation
|
|
215
|
+
|
|
216
|
+
For detailed component documentation, visit our [Storybook](https://your-storybook-url.com)
|
|
217
|
+
|
|
218
|
+
> **Note:** Our Storybook documentation is currently a work in progress and will be available soon!
|
|
219
|
+
|
|
220
|
+
## Last update
|
|
221
|
+
This file was last updated in 11th of November, 2024.
|
package/banner.png
ADDED
|
Binary file
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { AccordionComponent } from '../src/accordion.component';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const accordionItemBase: (props?: ({
|
|
4
|
-
|
|
4
|
+
variant?: "default" | "arrow" | "plus" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
export type
|
|
6
|
+
export type AccordionVariantProp = 'default' | 'arrow' | 'plus' | null | undefined;
|
|
7
7
|
export declare class AccordionItemComponent {
|
|
8
8
|
private accordion;
|
|
9
9
|
header: import("@angular/core").InputSignal<string>;
|
|
10
10
|
opened: import("@angular/core").InputSignal<boolean>;
|
|
11
|
-
|
|
11
|
+
variant: import("@angular/core").InputSignal<AccordionVariantProp>;
|
|
12
12
|
baseClass: import("@angular/core").InputSignal<string>;
|
|
13
13
|
name: string;
|
|
14
14
|
type: string;
|
|
15
15
|
constructor(accordion: AccordionComponent);
|
|
16
16
|
get baseClasses(): string;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, [{ host: true; }]>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "app-accordion-item", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "app-accordion-item", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "baseClass": { "alias": "baseClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
19
19
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export type User = {
|
|
4
3
|
firstName: string;
|
|
@@ -13,18 +12,22 @@ export declare const avatar: (props?: ({
|
|
|
13
12
|
shape?: "round-xs" | "round-sm" | "round-md" | "round-lg" | null | undefined;
|
|
14
13
|
size?: "auto" | null | undefined;
|
|
15
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
-
export type
|
|
15
|
+
export type AvatarVariantProp = 'primary' | null | undefined;
|
|
16
|
+
export type AvatarShapeProp = 'round-xs' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;
|
|
17
|
+
export type AvatarSizeProp = 'auto' | null | undefined;
|
|
17
18
|
export declare class AvatarComponent {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
variant: import("@angular/core").InputSignal<AvatarVariantProp>;
|
|
20
|
+
shape: import("@angular/core").InputSignal<AvatarShapeProp>;
|
|
21
|
+
size: import("@angular/core").InputSignal<AvatarSizeProp>;
|
|
22
|
+
baseClass: import("@angular/core").InputSignal<string>;
|
|
20
23
|
type: import("@angular/core").InputSignal<AvatarTypes>;
|
|
21
24
|
user: import("@angular/core").InputSignal<User>;
|
|
22
25
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
23
26
|
get initials(): string;
|
|
24
|
-
get
|
|
27
|
+
get baseClasses(): string;
|
|
25
28
|
get profile(): string;
|
|
26
29
|
get client(): string;
|
|
27
30
|
formatTitleCase(value: string): string;
|
|
28
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "app-avatar", never, { "
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "app-avatar", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "baseClass": { "alias": "baseClass"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
30
33
|
}
|