@sky.ui/core 0.0.1
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/LICENSE.md +139 -0
- package/README.md +113 -0
- package/auto-import-loader.js +60 -0
- package/auto-import.js +93 -0
- package/dist/custom-elements.json +27051 -0
- package/dist/helper/controllers/animation-controller.d.ts +120 -0
- package/dist/helper/controllers/animation-controller.js +2 -0
- package/dist/helper/controllers/animation-controller.js.map +1 -0
- package/dist/helper/controllers/index.d.ts +2 -0
- package/dist/helper/controllers/popover-controller.d.ts +162 -0
- package/dist/helper/controllers/popover-controller.js +2 -0
- package/dist/helper/controllers/popover-controller.js.map +1 -0
- package/dist/helper/form-control-base.d.ts +1 -0
- package/dist/helper/iconify-offline.d.ts +73 -0
- package/dist/helper/iconify-offline.js +2 -0
- package/dist/helper/iconify-offline.js.map +1 -0
- package/dist/helper/index.d.ts +5 -0
- package/dist/helper/internals/form-control-base.d.ts +81 -0
- package/dist/helper/internals/form-control-base.js +2 -0
- package/dist/helper/internals/form-control-base.js.map +1 -0
- package/dist/helper/internals/index.d.ts +1 -0
- package/dist/helper/utils/color-resolver.d.ts +139 -0
- package/dist/helper/utils/color-resolver.js +2 -0
- package/dist/helper/utils/color-resolver.js.map +1 -0
- package/dist/helper/utils/index.d.ts +2 -0
- package/dist/helper/utils/size-resolver.d.ts +6 -0
- package/dist/helper/utils/size-resolver.js +2 -0
- package/dist/helper/utils/size-resolver.js.map +1 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/sky-accordion/index.d.ts +1 -0
- package/dist/sky-accordion/index.js +1 -0
- package/dist/sky-accordion/sky-accordion.d.ts +201 -0
- package/dist/sky-accordion/sky-accordion.js +85 -0
- package/dist/sky-accordion/sky-accordion.js.map +1 -0
- package/dist/sky-accordion-item/index.d.ts +1 -0
- package/dist/sky-accordion-item/index.js +1 -0
- package/dist/sky-accordion-item/sky-accordion-item.d.ts +161 -0
- package/dist/sky-accordion-item/sky-accordion-item.js +191 -0
- package/dist/sky-accordion-item/sky-accordion-item.js.map +1 -0
- package/dist/sky-alert/index.d.ts +1 -0
- package/dist/sky-alert/index.js +1 -0
- package/dist/sky-alert/sky-alert.d.ts +136 -0
- package/dist/sky-alert/sky-alert.js +292 -0
- package/dist/sky-alert/sky-alert.js.map +1 -0
- package/dist/sky-appbar/index.d.ts +1 -0
- package/dist/sky-appbar/index.js +1 -0
- package/dist/sky-appbar/sky-appbar.d.ts +84 -0
- package/dist/sky-appbar/sky-appbar.js +173 -0
- package/dist/sky-appbar/sky-appbar.js.map +1 -0
- package/dist/sky-avatar/index.d.ts +1 -0
- package/dist/sky-avatar/index.js +1 -0
- package/dist/sky-avatar/sky-avatar.d.ts +104 -0
- package/dist/sky-avatar/sky-avatar.js +152 -0
- package/dist/sky-avatar/sky-avatar.js.map +1 -0
- package/dist/sky-badge/index.d.ts +1 -0
- package/dist/sky-badge/index.js +1 -0
- package/dist/sky-badge/sky-badge.d.ts +154 -0
- package/dist/sky-badge/sky-badge.js +148 -0
- package/dist/sky-badge/sky-badge.js.map +1 -0
- package/dist/sky-breadcrumb/index.d.ts +1 -0
- package/dist/sky-breadcrumb/index.js +1 -0
- package/dist/sky-breadcrumb/sky-breadcrumb.d.ts +111 -0
- package/dist/sky-breadcrumb/sky-breadcrumb.js +230 -0
- package/dist/sky-breadcrumb/sky-breadcrumb.js.map +1 -0
- package/dist/sky-button/index.d.ts +1 -0
- package/dist/sky-button/index.js +1 -0
- package/dist/sky-button/sky-button.d.ts +118 -0
- package/dist/sky-button/sky-button.js +172 -0
- package/dist/sky-button/sky-button.js.map +1 -0
- package/dist/sky-button-group/index.d.ts +1 -0
- package/dist/sky-button-group/index.js +1 -0
- package/dist/sky-button-group/sky-button-group.d.ts +93 -0
- package/dist/sky-button-group/sky-button-group.js +281 -0
- package/dist/sky-button-group/sky-button-group.js.map +1 -0
- package/dist/sky-card/index.d.ts +1 -0
- package/dist/sky-card/index.js +1 -0
- package/dist/sky-card/sky-card.d.ts +143 -0
- package/dist/sky-card/sky-card.js +186 -0
- package/dist/sky-card/sky-card.js.map +1 -0
- package/dist/sky-carousel/index.d.ts +1 -0
- package/dist/sky-carousel/index.js +1 -0
- package/dist/sky-carousel/sky-carousel.d.ts +265 -0
- package/dist/sky-carousel/sky-carousel.js +211 -0
- package/dist/sky-carousel/sky-carousel.js.map +1 -0
- package/dist/sky-checkbox/index.d.ts +1 -0
- package/dist/sky-checkbox/index.js +1 -0
- package/dist/sky-checkbox/sky-checkbox.d.ts +165 -0
- package/dist/sky-checkbox/sky-checkbox.js +276 -0
- package/dist/sky-checkbox/sky-checkbox.js.map +1 -0
- package/dist/sky-chip/index.d.ts +1 -0
- package/dist/sky-chip/index.js +1 -0
- package/dist/sky-chip/sky-chip.d.ts +95 -0
- package/dist/sky-chip/sky-chip.js +210 -0
- package/dist/sky-chip/sky-chip.js.map +1 -0
- package/dist/sky-col/index.d.ts +1 -0
- package/dist/sky-col/index.js +1 -0
- package/dist/sky-col/sky-col.d.ts +84 -0
- package/dist/sky-col/sky-col.js +46 -0
- package/dist/sky-col/sky-col.js.map +1 -0
- package/dist/sky-combobox/index.d.ts +1 -0
- package/dist/sky-combobox/index.js +1 -0
- package/dist/sky-combobox/sky-combobox.d.ts +313 -0
- package/dist/sky-combobox/sky-combobox.js +1146 -0
- package/dist/sky-combobox/sky-combobox.js.map +1 -0
- package/dist/sky-counter/index.d.ts +1 -0
- package/dist/sky-counter/index.js +1 -0
- package/dist/sky-counter/sky-counter.d.ts +130 -0
- package/dist/sky-counter/sky-counter.js +101 -0
- package/dist/sky-counter/sky-counter.js.map +1 -0
- package/dist/sky-dialog/index.d.ts +1 -0
- package/dist/sky-dialog/index.js +1 -0
- package/dist/sky-dialog/sky-dialog.d.ts +237 -0
- package/dist/sky-dialog/sky-dialog.js +265 -0
- package/dist/sky-dialog/sky-dialog.js.map +1 -0
- package/dist/sky-divider/index.d.ts +1 -0
- package/dist/sky-divider/index.js +1 -0
- package/dist/sky-divider/sky-divider.d.ts +120 -0
- package/dist/sky-divider/sky-divider.js +42 -0
- package/dist/sky-divider/sky-divider.js.map +1 -0
- package/dist/sky-drawer/index.d.ts +1 -0
- package/dist/sky-drawer/index.js +1 -0
- package/dist/sky-drawer/sky-drawer.d.ts +161 -0
- package/dist/sky-drawer/sky-drawer.js +177 -0
- package/dist/sky-drawer/sky-drawer.js.map +1 -0
- package/dist/sky-dropdown/index.d.ts +1 -0
- package/dist/sky-dropdown/index.js +1 -0
- package/dist/sky-dropdown/sky-dropdown.d.ts +252 -0
- package/dist/sky-dropdown/sky-dropdown.js +58 -0
- package/dist/sky-dropdown/sky-dropdown.js.map +1 -0
- package/dist/sky-dropdown-item/index.d.ts +1 -0
- package/dist/sky-dropdown-item/index.js +1 -0
- package/dist/sky-dropdown-item/sky-dropdown-item.d.ts +207 -0
- package/dist/sky-dropdown-item/sky-dropdown-item.js +341 -0
- package/dist/sky-dropdown-item/sky-dropdown-item.js.map +1 -0
- package/dist/sky-flexbar/index.d.ts +1 -0
- package/dist/sky-flexbar/index.js +1 -0
- package/dist/sky-flexbar/sky-flexbar.d.ts +189 -0
- package/dist/sky-flexbar/sky-flexbar.js +148 -0
- package/dist/sky-flexbar/sky-flexbar.js.map +1 -0
- package/dist/sky-flexbox/index.d.ts +1 -0
- package/dist/sky-flexbox/index.js +1 -0
- package/dist/sky-flexbox/sky-flexbox.d.ts +156 -0
- package/dist/sky-flexbox/sky-flexbox.js +40 -0
- package/dist/sky-flexbox/sky-flexbox.js.map +1 -0
- package/dist/sky-flexcol/index.d.ts +1 -0
- package/dist/sky-flexcol/index.js +1 -0
- package/dist/sky-flexcol/sky-flexcol.d.ts +154 -0
- package/dist/sky-flexcol/sky-flexcol.js +14 -0
- package/dist/sky-flexcol/sky-flexcol.js.map +1 -0
- package/dist/sky-flexitem/index.d.ts +1 -0
- package/dist/sky-flexitem/index.js +1 -0
- package/dist/sky-flexitem/sky-flexitem.d.ts +114 -0
- package/dist/sky-flexitem/sky-flexitem.js +45 -0
- package/dist/sky-flexitem/sky-flexitem.js.map +1 -0
- package/dist/sky-form/index.d.ts +1 -0
- package/dist/sky-form/index.js +1 -0
- package/dist/sky-form/sky-form.d.ts +286 -0
- package/dist/sky-form/sky-form.js +66 -0
- package/dist/sky-form/sky-form.js.map +1 -0
- package/dist/sky-grid/index.d.ts +1 -0
- package/dist/sky-grid/index.js +1 -0
- package/dist/sky-grid/sky-grid.d.ts +78 -0
- package/dist/sky-grid/sky-grid.js +40 -0
- package/dist/sky-grid/sky-grid.js.map +1 -0
- package/dist/sky-icon/index.d.ts +1 -0
- package/dist/sky-icon/index.js +1 -0
- package/dist/sky-icon/ion-local.json.js +2 -0
- package/dist/sky-icon/ion-local.json.js.map +1 -0
- package/dist/sky-icon/sky-icon.d.ts +123 -0
- package/dist/sky-icon/sky-icon.js +40 -0
- package/dist/sky-icon/sky-icon.js.map +1 -0
- package/dist/sky-image/index.d.ts +1 -0
- package/dist/sky-image/index.js +1 -0
- package/dist/sky-image/sky-image.d.ts +102 -0
- package/dist/sky-image/sky-image.js +29 -0
- package/dist/sky-image/sky-image.js.map +1 -0
- package/dist/sky-input/index.d.ts +1 -0
- package/dist/sky-input/index.js +1 -0
- package/dist/sky-input/sky-input.d.ts +345 -0
- package/dist/sky-input/sky-input.js +820 -0
- package/dist/sky-input/sky-input.js.map +1 -0
- package/dist/sky-list/index.d.ts +1 -0
- package/dist/sky-list/index.js +1 -0
- package/dist/sky-list/sky-list.d.ts +85 -0
- package/dist/sky-list/sky-list.js +41 -0
- package/dist/sky-list/sky-list.js.map +1 -0
- package/dist/sky-listitem/index.d.ts +1 -0
- package/dist/sky-listitem/index.js +1 -0
- package/dist/sky-listitem/sky-listitem.d.ts +76 -0
- package/dist/sky-listitem/sky-listitem.js +104 -0
- package/dist/sky-listitem/sky-listitem.js.map +1 -0
- package/dist/sky-navbar/index.d.ts +1 -0
- package/dist/sky-navbar/index.js +1 -0
- package/dist/sky-navbar/sky-navbar.d.ts +207 -0
- package/dist/sky-navbar/sky-navbar.js +521 -0
- package/dist/sky-navbar/sky-navbar.js.map +1 -0
- package/dist/sky-navpanel/index.d.ts +1 -0
- package/dist/sky-navpanel/index.js +1 -0
- package/dist/sky-navpanel/sky-navpanel.d.ts +186 -0
- package/dist/sky-navpanel/sky-navpanel.js +404 -0
- package/dist/sky-navpanel/sky-navpanel.js.map +1 -0
- package/dist/sky-notification/index.d.ts +1 -0
- package/dist/sky-notification/index.js +1 -0
- package/dist/sky-notification/sky-notification.d.ts +152 -0
- package/dist/sky-notification/sky-notification.js +456 -0
- package/dist/sky-notification/sky-notification.js.map +1 -0
- package/dist/sky-otp/index.d.ts +1 -0
- package/dist/sky-otp/index.js +1 -0
- package/dist/sky-otp/sky-otp.d.ts +101 -0
- package/dist/sky-otp/sky-otp.js +96 -0
- package/dist/sky-otp/sky-otp.js.map +1 -0
- package/dist/sky-overlay/index.d.ts +1 -0
- package/dist/sky-overlay/index.js +1 -0
- package/dist/sky-overlay/sky-overlay.d.ts +71 -0
- package/dist/sky-overlay/sky-overlay.js +26 -0
- package/dist/sky-overlay/sky-overlay.js.map +1 -0
- package/dist/sky-pagination/index.d.ts +1 -0
- package/dist/sky-pagination/index.js +1 -0
- package/dist/sky-pagination/sky-pagination.d.ts +167 -0
- package/dist/sky-pagination/sky-pagination.js +453 -0
- package/dist/sky-pagination/sky-pagination.js.map +1 -0
- package/dist/sky-progress/index.d.ts +1 -0
- package/dist/sky-progress/index.js +1 -0
- package/dist/sky-progress/sky-progress.d.ts +70 -0
- package/dist/sky-progress/sky-progress.js +87 -0
- package/dist/sky-progress/sky-progress.js.map +1 -0
- package/dist/sky-radio/index.d.ts +1 -0
- package/dist/sky-radio/index.js +1 -0
- package/dist/sky-radio/sky-radio.d.ts +118 -0
- package/dist/sky-radio/sky-radio.js +109 -0
- package/dist/sky-radio/sky-radio.js.map +1 -0
- package/dist/sky-radio-group/index.d.ts +1 -0
- package/dist/sky-radio-group/index.js +1 -0
- package/dist/sky-radio-group/sky-radio-group.d.ts +186 -0
- package/dist/sky-radio-group/sky-radio-group.js +239 -0
- package/dist/sky-radio-group/sky-radio-group.js.map +1 -0
- package/dist/sky-range/index.d.ts +1 -0
- package/dist/sky-range/index.js +1 -0
- package/dist/sky-range/sky-range.d.ts +110 -0
- package/dist/sky-range/sky-range.js +196 -0
- package/dist/sky-range/sky-range.js.map +1 -0
- package/dist/sky-row/index.d.ts +1 -0
- package/dist/sky-row/index.js +1 -0
- package/dist/sky-row/sky-row.d.ts +57 -0
- package/dist/sky-row/sky-row.js +6 -0
- package/dist/sky-row/sky-row.js.map +1 -0
- package/dist/sky-serial/index.d.ts +1 -0
- package/dist/sky-serial/index.js +1 -0
- package/dist/sky-serial/sky-serial.d.ts +127 -0
- package/dist/sky-serial/sky-serial.js +133 -0
- package/dist/sky-serial/sky-serial.js.map +1 -0
- package/dist/sky-sheet/index.d.ts +1 -0
- package/dist/sky-sheet/index.js +1 -0
- package/dist/sky-sheet/sky-sheet.d.ts +70 -0
- package/dist/sky-sheet/sky-sheet.js +47 -0
- package/dist/sky-sheet/sky-sheet.js.map +1 -0
- package/dist/sky-skeleton/index.d.ts +1 -0
- package/dist/sky-skeleton/index.js +1 -0
- package/dist/sky-skeleton/sky-skeleton.d.ts +80 -0
- package/dist/sky-skeleton/sky-skeleton.js +233 -0
- package/dist/sky-skeleton/sky-skeleton.js.map +1 -0
- package/dist/sky-slider/index.d.ts +1 -0
- package/dist/sky-slider/index.js +1 -0
- package/dist/sky-slider/sky-slider.d.ts +96 -0
- package/dist/sky-slider/sky-slider.js +139 -0
- package/dist/sky-slider/sky-slider.js.map +1 -0
- package/dist/sky-speeddial/index.d.ts +1 -0
- package/dist/sky-speeddial/index.js +1 -0
- package/dist/sky-speeddial/sky-speeddial.d.ts +86 -0
- package/dist/sky-speeddial/sky-speeddial.js +154 -0
- package/dist/sky-speeddial/sky-speeddial.js.map +1 -0
- package/dist/sky-spinner/index.d.ts +1 -0
- package/dist/sky-spinner/index.js +1 -0
- package/dist/sky-spinner/sky-spinner.d.ts +87 -0
- package/dist/sky-spinner/sky-spinner.js +334 -0
- package/dist/sky-spinner/sky-spinner.js.map +1 -0
- package/dist/sky-steps/index.d.ts +1 -0
- package/dist/sky-steps/index.js +1 -0
- package/dist/sky-steps/sky-steps.d.ts +170 -0
- package/dist/sky-steps/sky-steps.js +455 -0
- package/dist/sky-steps/sky-steps.js.map +1 -0
- package/dist/sky-switch/index.d.ts +1 -0
- package/dist/sky-switch/index.js +1 -0
- package/dist/sky-switch/sky-switch.d.ts +116 -0
- package/dist/sky-switch/sky-switch.js +191 -0
- package/dist/sky-switch/sky-switch.js.map +1 -0
- package/dist/sky-tab/index.d.ts +1 -0
- package/dist/sky-tab/index.js +1 -0
- package/dist/sky-tab/sky-tab.d.ts +188 -0
- package/dist/sky-tab/sky-tab.js +390 -0
- package/dist/sky-tab/sky-tab.js.map +1 -0
- package/dist/sky-tab-button/index.d.ts +1 -0
- package/dist/sky-tab-button/index.js +1 -0
- package/dist/sky-tab-button/sky-tab-button.d.ts +114 -0
- package/dist/sky-tab-button/sky-tab-button.js +167 -0
- package/dist/sky-tab-button/sky-tab-button.js.map +1 -0
- package/dist/sky-theme-provider/index.d.ts +1 -0
- package/dist/sky-theme-provider/index.js +1 -0
- package/dist/sky-theme-provider/sky-theme-provider.d.ts +169 -0
- package/dist/sky-theme-provider/sky-theme-provider.js +12 -0
- package/dist/sky-theme-provider/sky-theme-provider.js.map +1 -0
- package/dist/sky-theme-switcher/index.d.ts +1 -0
- package/dist/sky-theme-switcher/index.js +1 -0
- package/dist/sky-theme-switcher/sky-theme-switcher.d.ts +92 -0
- package/dist/sky-theme-switcher/sky-theme-switcher.js +43 -0
- package/dist/sky-theme-switcher/sky-theme-switcher.js.map +1 -0
- package/dist/sky-tooltip/index.d.ts +1 -0
- package/dist/sky-tooltip/index.js +1 -0
- package/dist/sky-tooltip/sky-tooltip.d.ts +156 -0
- package/dist/sky-tooltip/sky-tooltip.js +242 -0
- package/dist/sky-tooltip/sky-tooltip.js.map +1 -0
- package/package.json +475 -0
- package/plugins/rollup-plugin.d.ts +19 -0
- package/plugins/rollup-plugin.js +129 -0
- package/plugins/vite-plugin.d.ts +22 -0
- package/plugins/vite-plugin.js +116 -0
- package/plugins/webpack-plugin.d.ts +12 -0
- package/plugins/webpack-plugin.js +46 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Sky UI Free End User License Agreement (EULA)
|
|
2
|
+
|
|
3
|
+
Version 1.0
|
|
4
|
+
Effective Date: 2026-06-24
|
|
5
|
+
|
|
6
|
+
This End User License Agreement ("EULA") governs the use of the free tier of Sky UI,
|
|
7
|
+
including the packages published as `@sky.ui/core`, `@sky.ui/react`, `@sky.ui/vue`,
|
|
8
|
+
`@sky.ui/reactivity`, `@sky.ui/utils`, `@sky.ui/mcp`, related VS Code extensions,
|
|
9
|
+
their compiled distributions, documentation, examples, and related materials.
|
|
10
|
+
|
|
11
|
+
Sky UI is **not** open source. Licensor does **not** grant access to source code
|
|
12
|
+
through this EULA.
|
|
13
|
+
|
|
14
|
+
By installing, copying, accessing, or using the Software, you agree to this EULA.
|
|
15
|
+
|
|
16
|
+
## 1. Definitions
|
|
17
|
+
|
|
18
|
+
"Licensor" means Desai Software.
|
|
19
|
+
|
|
20
|
+
"User" means the person, company, or organization that installs or uses the
|
|
21
|
+
Software.
|
|
22
|
+
|
|
23
|
+
"Software" means the free-tier Sky UI component library and related materials made
|
|
24
|
+
available by Licensor, including compiled package files, type definitions,
|
|
25
|
+
documentation, and examples. **Software does not include source code** unless
|
|
26
|
+
Licensor expressly provides it in a separate written agreement.
|
|
27
|
+
|
|
28
|
+
"Project" means a website, application, SaaS product, internal tool, or other
|
|
29
|
+
software product built by User using the Software.
|
|
30
|
+
|
|
31
|
+
## 2. License Grant
|
|
32
|
+
|
|
33
|
+
Subject to compliance with this EULA, Licensor grants User a limited,
|
|
34
|
+
non-exclusive, non-transferable, non-sublicensable license to:
|
|
35
|
+
|
|
36
|
+
1. install the Software from an official distribution channel authorized by Licensor;
|
|
37
|
+
2. import and use the Software in User's Projects;
|
|
38
|
+
3. bundle compiled output of the Software as part of User's Projects;
|
|
39
|
+
4. use the Software in development, testing, staging, production, and CI/CD
|
|
40
|
+
environments.
|
|
41
|
+
|
|
42
|
+
No other rights are granted.
|
|
43
|
+
|
|
44
|
+
## 3. Permitted Usage
|
|
45
|
+
|
|
46
|
+
User may use the Software to build commercial and non-commercial Projects.
|
|
47
|
+
|
|
48
|
+
User may deploy Projects that include bundled output from the Software to end users,
|
|
49
|
+
provided that end users cannot extract, install, or reuse the Software as a
|
|
50
|
+
standalone component library.
|
|
51
|
+
|
|
52
|
+
## 4. Restrictions
|
|
53
|
+
|
|
54
|
+
User may not:
|
|
55
|
+
|
|
56
|
+
1. obtain, copy, publish, distribute, sublicense, sell, rent, lease, or otherwise
|
|
57
|
+
make available the **source code** of the Software, whether from this repository,
|
|
58
|
+
package tarballs, build artifacts, or any other channel, except where expressly
|
|
59
|
+
permitted in writing by Licensor;
|
|
60
|
+
2. redistribute, republish, or publicly share the Software as a standalone package
|
|
61
|
+
or UI kit;
|
|
62
|
+
3. upload the Software to a public npm registry, public GitHub repository, public
|
|
63
|
+
CDN, file-sharing service, torrent, or any other public distribution channel
|
|
64
|
+
except through official channels operated or authorized by Licensor;
|
|
65
|
+
4. remove or modify copyright notices, license notices, or proprietary notices;
|
|
66
|
+
5. use the Software to create a directly competing component library, template
|
|
67
|
+
marketplace, UI kit, design system package, or component generator;
|
|
68
|
+
6. reverse engineer, decompile, or disassemble the Software except where applicable
|
|
69
|
+
law expressly prohibits this restriction;
|
|
70
|
+
7. imply that the Software is open source, MIT-licensed, or freely redistributable
|
|
71
|
+
source code.
|
|
72
|
+
|
|
73
|
+
## 5. No Source Code
|
|
74
|
+
|
|
75
|
+
Unless Licensor provides source code under a separate written agreement, User
|
|
76
|
+
receives only compiled distributions and related published materials. User has no
|
|
77
|
+
right to inspect, modify, fork, or redistribute Sky UI source code.
|
|
78
|
+
|
|
79
|
+
## 6. Ownership
|
|
80
|
+
|
|
81
|
+
Licensor retains all rights, title, and interest in and to the Software, including
|
|
82
|
+
copyrights, trademarks, trade secrets, and other intellectual property rights.
|
|
83
|
+
|
|
84
|
+
No ownership rights are transferred to User.
|
|
85
|
+
|
|
86
|
+
All rights not expressly granted in this EULA are reserved by Licensor.
|
|
87
|
+
|
|
88
|
+
## 7. Third-Party Dependencies
|
|
89
|
+
|
|
90
|
+
The Software may depend on third-party open-source packages. Those third-party
|
|
91
|
+
packages are licensed under their own license terms.
|
|
92
|
+
|
|
93
|
+
This EULA applies only to Licensor's proprietary Sky UI Software and does not
|
|
94
|
+
change the license terms of third-party dependencies.
|
|
95
|
+
|
|
96
|
+
## 8. Feedback
|
|
97
|
+
|
|
98
|
+
If User provides ideas, feedback, suggestions, bug reports, or feature requests,
|
|
99
|
+
Licensor may use them without restriction and without obligation to pay User.
|
|
100
|
+
|
|
101
|
+
## 9. Termination
|
|
102
|
+
|
|
103
|
+
This EULA terminates automatically if User violates it.
|
|
104
|
+
|
|
105
|
+
Upon termination, User must stop installing, copying, updating, and using the
|
|
106
|
+
Software.
|
|
107
|
+
|
|
108
|
+
## 10. No Warranty
|
|
109
|
+
|
|
110
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF ANY KIND,
|
|
111
|
+
WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE.
|
|
112
|
+
|
|
113
|
+
LICENSOR DISCLAIMS ALL WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A
|
|
114
|
+
PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, SECURITY, RELIABILITY, AND
|
|
115
|
+
AVAILABILITY.
|
|
116
|
+
|
|
117
|
+
## 11. Limitation of Liability
|
|
118
|
+
|
|
119
|
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, LICENSOR WILL NOT BE LIABLE FOR ANY
|
|
120
|
+
INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES,
|
|
121
|
+
INCLUDING LOSS OF PROFITS, REVENUE, DATA, GOODWILL, OR BUSINESS OPPORTUNITY.
|
|
122
|
+
|
|
123
|
+
LICENSOR'S TOTAL LIABILITY ARISING OUT OF OR RELATING TO THE SOFTWARE WILL NOT
|
|
124
|
+
EXCEED ONE HUNDRED U.S. DOLLARS (USD $100).
|
|
125
|
+
|
|
126
|
+
## 12. Governing Law
|
|
127
|
+
|
|
128
|
+
This EULA is governed by the laws of India, without regard to conflict-of-law
|
|
129
|
+
rules.
|
|
130
|
+
|
|
131
|
+
Any disputes will be resolved in the courts located in Gujarat, India, unless
|
|
132
|
+
applicable law requires otherwise.
|
|
133
|
+
|
|
134
|
+
## 13. Contact
|
|
135
|
+
|
|
136
|
+
For licensing questions, contact:
|
|
137
|
+
|
|
138
|
+
Desai Software
|
|
139
|
+
https://gitlab.com/sky_ui/sky-ui/-/issues
|
package/README.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# @sky.ui/core
|
|
2
|
+
|
|
3
|
+
Lit-based web components for Sky UI. Use tags such as `<sky-button>` and `<sky-card>` in any framework, or import components directly for tree-shaken bundles.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @sky.ui/core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Peer dependencies (install as needed for the components you use): `lit`, and optionally `@lit-labs/motion`, `@lit-labs/virtualizer`, `@lit/context`, `d3`, `three`.
|
|
12
|
+
|
|
13
|
+
## Quick start
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { SkyButton, SkyCard } from '@sky.ui/core';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Register or render components in your app. In HTML:
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<sky-button label="Save"></sky-button>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Only the components you import are included in production bundles when your bundler tree-shakes ESM.
|
|
26
|
+
|
|
27
|
+
## Tree-shaking
|
|
28
|
+
|
|
29
|
+
- Published as **ESM** with **one file per component** (`preserveModules`).
|
|
30
|
+
- Import from the package root or per-component paths (`@sky.ui/core/sky-button`).
|
|
31
|
+
- Use a **production build** (`vite build`, `nuxt build`, webpack production) so unused exports are dropped. Dev servers may include more for faster HMR.
|
|
32
|
+
|
|
33
|
+
## Vite
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
import { SkyUIMainVitePlugin } from '@sky.ui/core/vite';
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
plugins: [
|
|
40
|
+
// Vue: auto-import <SkyButton> / <sky-button> (requires unplugin-vue-components)
|
|
41
|
+
SkyUIMainVitePlugin(), // or SkyUIMainVitePlugin({ mode: 'vue' })
|
|
42
|
+
|
|
43
|
+
// Framework-less HTML/JS: scan for <sky-*> and inject imports
|
|
44
|
+
// SkyUIMainVitePlugin({ mode: 'auto-import' })
|
|
45
|
+
|
|
46
|
+
// Whole library: SkyUIMainVitePlugin({ mode: 'auto-import', treeShake: false })
|
|
47
|
+
],
|
|
48
|
+
};
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Vue auto-import:** install `unplugin-vue-components`. Options include `resolverOptions`, `dts`, and `componentsOptions`.
|
|
52
|
+
|
|
53
|
+
**Resolver only:** `import { SkyUIMainResolver } from '@sky.ui/core/auto-import'`.
|
|
54
|
+
|
|
55
|
+
For Vue SFC wrappers or React, use `@sky.ui/vue` or `@sky.ui/react` instead.
|
|
56
|
+
|
|
57
|
+
## Webpack and Rollup
|
|
58
|
+
|
|
59
|
+
**Webpack**
|
|
60
|
+
|
|
61
|
+
```js
|
|
62
|
+
import { SkyUIMainWebpackPlugin } from '@sky.ui/core/webpack';
|
|
63
|
+
|
|
64
|
+
export default {
|
|
65
|
+
plugins: [SkyUIMainWebpackPlugin()],
|
|
66
|
+
};
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Rollup** (returns an array — spread into `plugins`):
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
import { SkyUIMainRollupPlugin } from '@sky.ui/core/rollup';
|
|
73
|
+
|
|
74
|
+
export default {
|
|
75
|
+
plugins: [
|
|
76
|
+
...SkyUIMainRollupPlugin(),
|
|
77
|
+
// auto-import: ...SkyUIMainRollupPlugin({ mode: 'auto-import', entryHtml: 'index.html' }),
|
|
78
|
+
],
|
|
79
|
+
};
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Manual and full-library imports
|
|
83
|
+
|
|
84
|
+
```js
|
|
85
|
+
import { SkyButton, SkyCard } from '@sky.ui/core';
|
|
86
|
+
import '@sky.ui/core/sky-button';
|
|
87
|
+
|
|
88
|
+
// Entire catalog
|
|
89
|
+
import '@sky.ui/core/all';
|
|
90
|
+
import * as Sky from '@sky.ui/core';
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Custom Elements Manifest
|
|
94
|
+
|
|
95
|
+
After building from source, component metadata is available at `@sky.ui/core/custom-elements.json`.
|
|
96
|
+
|
|
97
|
+
## Related packages
|
|
98
|
+
|
|
99
|
+
| Package | Use when |
|
|
100
|
+
|---------|----------|
|
|
101
|
+
| [`@sky.ui/vue`](https://www.npmjs.com/package/@sky.ui/vue) | Vue 3 SFC wrappers |
|
|
102
|
+
| [`@sky.ui/react`](https://www.npmjs.com/package/@sky.ui/react) | React wrappers |
|
|
103
|
+
| [`@sky.ui/utils`](https://www.npmjs.com/package/@sky.ui/utils) | Utility CSS and PostCSS JIT |
|
|
104
|
+
| [`@sky.ui/reactivity`](https://www.npmjs.com/package/@sky.ui/reactivity) | Lightweight reactivity and template directives |
|
|
105
|
+
| [`@sky.ui.pro/core`](https://www.npmjs.com/package/@sky.ui.pro/core) | Pro-tier components |
|
|
106
|
+
|
|
107
|
+
## Editor support
|
|
108
|
+
|
|
109
|
+
Install the **Sky UI Components** VS Code extension for completions, hover docs, and validation in HTML, Vue, and JSX.
|
|
110
|
+
|
|
111
|
+
## License
|
|
112
|
+
|
|
113
|
+
[Sky UI Free EULA](./LICENSE.md) — proprietary; not open source.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Webpack loader for @sky.ui/core auto-import: scans entry JS (and optional HTML) for <sky-*>
|
|
3
|
+
* and prepends the corresponding import statements. Use only on the entry file.
|
|
4
|
+
*
|
|
5
|
+
* Options: { packageName?: string, entryHtml?: string }
|
|
6
|
+
* @example
|
|
7
|
+
* rules: [{ test: /main\.js$/, use: [{ loader: '@sky.ui/core/auto-import-loader', options: { entryHtml: 'index.html' } }] }]
|
|
8
|
+
*/
|
|
9
|
+
import path from 'node:path';
|
|
10
|
+
import fs from 'node:fs';
|
|
11
|
+
import { pathToFileURL } from 'node:url';
|
|
12
|
+
import { fileURLToPath } from 'node:url';
|
|
13
|
+
|
|
14
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
15
|
+
const TAG_RE = /<(sky-[a-z][a-z0-9]*(?:-[a-z0-9]+)*)|['"`](sky-[a-z][a-z0-9]*(?:-[a-z0-9]+)*)['"`]/gi;
|
|
16
|
+
|
|
17
|
+
function extractUsedTagNames(content, tagNamesSet) {
|
|
18
|
+
const used = new Set();
|
|
19
|
+
let m;
|
|
20
|
+
TAG_RE.lastIndex = 0;
|
|
21
|
+
while ((m = TAG_RE.exec(content)) !== null) {
|
|
22
|
+
const tag = (m[1] || m[2] || '').toLowerCase();
|
|
23
|
+
if (tagNamesSet.has(tag)) used.add(tag);
|
|
24
|
+
}
|
|
25
|
+
return used;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default async function SkyUIMainAutoImportLoader(source, map, meta) {
|
|
29
|
+
const callback = this.async();
|
|
30
|
+
const options = this.getOptions() || {};
|
|
31
|
+
const packageName = options.packageName ?? '@sky.ui/core';
|
|
32
|
+
const entryHtml = options.entryHtml ?? 'index.html';
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
const autoImportPath = path.resolve(__dirname, 'auto-import.js');
|
|
36
|
+
const { SKY_UI_TAG_NAMES } = await import(pathToFileURL(autoImportPath).href);
|
|
37
|
+
const tagNamesSet = SKY_UI_TAG_NAMES;
|
|
38
|
+
|
|
39
|
+
let used = extractUsedTagNames(source, tagNamesSet);
|
|
40
|
+
|
|
41
|
+
const htmlPath = path.resolve(this.context, '..', entryHtml);
|
|
42
|
+
if (fs.existsSync(htmlPath)) {
|
|
43
|
+
const html = fs.readFileSync(htmlPath, 'utf-8');
|
|
44
|
+
extractUsedTagNames(html, tagNamesSet).forEach((t) => used.add(t));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (used.size === 0) {
|
|
48
|
+
return callback(null, source, map, meta);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const imports = [...used]
|
|
52
|
+
.sort()
|
|
53
|
+
.map((tag) => `import '${packageName}/${tag}';`)
|
|
54
|
+
.join('\n');
|
|
55
|
+
const out = `/** Auto-imported by @sky.ui/core (only used components) */\n${imports}\n\n${source}`;
|
|
56
|
+
callback(null, out, map, meta);
|
|
57
|
+
} catch (err) {
|
|
58
|
+
callback(err);
|
|
59
|
+
}
|
|
60
|
+
}
|
package/auto-import.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scan-based auto-import for @sky.ui/core (unplugin-vue-components).
|
|
3
|
+
* Auto-generated by scripts/generate-packages.js – do not edit the array by hand.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const SKY_UI_COMPONENTS = [
|
|
7
|
+
'SkyAccordion',
|
|
8
|
+
'SkyAccordionItem',
|
|
9
|
+
'SkyAlert',
|
|
10
|
+
'SkyAppbar',
|
|
11
|
+
'SkyAvatar',
|
|
12
|
+
'SkyBadge',
|
|
13
|
+
'SkyBreadcrumb',
|
|
14
|
+
'SkyButton',
|
|
15
|
+
'SkyButtonGroup',
|
|
16
|
+
'SkyCard',
|
|
17
|
+
'SkyCarousel',
|
|
18
|
+
'SkyCheckbox',
|
|
19
|
+
'SkyChip',
|
|
20
|
+
'SkyCol',
|
|
21
|
+
'SkyCombobox',
|
|
22
|
+
'SkyCounter',
|
|
23
|
+
'SkyDialog',
|
|
24
|
+
'SkyDivider',
|
|
25
|
+
'SkyDrawer',
|
|
26
|
+
'SkyDropdown',
|
|
27
|
+
'SkyDropdownItem',
|
|
28
|
+
'SkyFlexbar',
|
|
29
|
+
'SkyFlexbox',
|
|
30
|
+
'SkyFlexcol',
|
|
31
|
+
'SkyFlexitem',
|
|
32
|
+
'SkyForm',
|
|
33
|
+
'SkyGrid',
|
|
34
|
+
'SkyIcon',
|
|
35
|
+
'SkyImage',
|
|
36
|
+
'SkyInput',
|
|
37
|
+
'SkyList',
|
|
38
|
+
'SkyListitem',
|
|
39
|
+
'SkyNavbar',
|
|
40
|
+
'SkyNavpanel',
|
|
41
|
+
'SkyNotification',
|
|
42
|
+
'SkyOtp',
|
|
43
|
+
'SkyOverlay',
|
|
44
|
+
'SkyPagination',
|
|
45
|
+
'SkyProgress',
|
|
46
|
+
'SkyRadio',
|
|
47
|
+
'SkyRadioGroup',
|
|
48
|
+
'SkyRange',
|
|
49
|
+
'SkyRow',
|
|
50
|
+
'SkySerial',
|
|
51
|
+
'SkySheet',
|
|
52
|
+
'SkySkeleton',
|
|
53
|
+
'SkySlider',
|
|
54
|
+
'SkySpeeddial',
|
|
55
|
+
'SkySpinner',
|
|
56
|
+
'SkySteps',
|
|
57
|
+
'SkySwitch',
|
|
58
|
+
'SkyTab',
|
|
59
|
+
'SkyTabButton',
|
|
60
|
+
'SkyThemeProvider',
|
|
61
|
+
'SkyThemeSwitcher',
|
|
62
|
+
'SkyTooltip',
|
|
63
|
+
];
|
|
64
|
+
|
|
65
|
+
const SET = new Set(SKY_UI_COMPONENTS);
|
|
66
|
+
|
|
67
|
+
export function isSkyUIComponent(name) {
|
|
68
|
+
return SET.has(name);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Resolver for unplugin-vue-components (imports from @sky.ui/core custom elements).
|
|
73
|
+
* @param {{ packageName?: string }} [options]
|
|
74
|
+
*/
|
|
75
|
+
export function SkyUIMainResolver(options = {}) {
|
|
76
|
+
const packageName = options.packageName ?? '@sky.ui/core';
|
|
77
|
+
return (componentName) => {
|
|
78
|
+
if (!SET.has(componentName)) return;
|
|
79
|
+
return { name: componentName, from: packageName };
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Kebab-case custom element tags for framework-less auto-import scanners. */
|
|
84
|
+
export const SKY_UI_TAG_NAMES = new Set(
|
|
85
|
+
SKY_UI_COMPONENTS.map((name) =>
|
|
86
|
+
name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/^Sky/, 'sky-').toLowerCase(),
|
|
87
|
+
),
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
/** Subpath import for a tag used by Vite/Rollup auto-import plugins. */
|
|
91
|
+
export function getCoreImportPath(tag, packageName = '@sky.ui/core') {
|
|
92
|
+
return `${packageName}/${tag}`;
|
|
93
|
+
}
|