@gravionlabs/helix-core 22.1.2 → 22.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/fesm2022/gravionlabs-helix-core-accordion.mjs +994 -541
- package/fesm2022/gravionlabs-helix-core-accordion.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-animateonscroll.mjs +265 -166
- package/fesm2022/gravionlabs-helix-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-api.mjs +926 -836
- package/fesm2022/gravionlabs-helix-core-api.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-autocomplete.mjs +2603 -1611
- package/fesm2022/gravionlabs-helix-core-autocomplete.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-autofocus.mjs +115 -79
- package/fesm2022/gravionlabs-helix-core-autofocus.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-avatar.mjs +356 -180
- package/fesm2022/gravionlabs-helix-core-avatar.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-avatargroup.mjs +200 -84
- package/fesm2022/gravionlabs-helix-core-avatargroup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-badge.mjs +671 -390
- package/fesm2022/gravionlabs-helix-core-badge.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-base.mjs +113 -103
- package/fesm2022/gravionlabs-helix-core-base.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-basecomponent.mjs +498 -444
- package/fesm2022/gravionlabs-helix-core-basecomponent.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-baseeditableholder.mjs +131 -69
- package/fesm2022/gravionlabs-helix-core-baseeditableholder.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-baseinput.mjs +210 -94
- package/fesm2022/gravionlabs-helix-core-baseinput.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-basemodelholder.mjs +39 -26
- package/fesm2022/gravionlabs-helix-core-basemodelholder.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-bind.mjs +136 -98
- package/fesm2022/gravionlabs-helix-core-bind.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-blockui.mjs +390 -224
- package/fesm2022/gravionlabs-helix-core-blockui.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-breadcrumb.mjs +473 -212
- package/fesm2022/gravionlabs-helix-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-button.mjs +1739 -825
- package/fesm2022/gravionlabs-helix-core-button.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-buttongroup.mjs +116 -64
- package/fesm2022/gravionlabs-helix-core-buttongroup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-card.mjs +454 -205
- package/fesm2022/gravionlabs-helix-core-card.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-carousel.mjs +1238 -898
- package/fesm2022/gravionlabs-helix-core-carousel.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-cascadeselect.mjs +2373 -1337
- package/fesm2022/gravionlabs-helix-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-chart.mjs +407 -214
- package/fesm2022/gravionlabs-helix-core-chart.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-checkbox.mjs +704 -346
- package/fesm2022/gravionlabs-helix-core-checkbox.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-chip.mjs +489 -251
- package/fesm2022/gravionlabs-helix-core-chip.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-classnames.mjs +95 -48
- package/fesm2022/gravionlabs-helix-core-classnames.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-colorpicker.mjs +975 -667
- package/fesm2022/gravionlabs-helix-core-colorpicker.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-config.mjs +395 -306
- package/fesm2022/gravionlabs-helix-core-config.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-confirmdialog.mjs +1222 -546
- package/fesm2022/gravionlabs-helix-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-confirmpopup.mjs +878 -524
- package/fesm2022/gravionlabs-helix-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-contextmenu.mjs +1917 -1031
- package/fesm2022/gravionlabs-helix-core-contextmenu.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-dataview.mjs +1075 -522
- package/fesm2022/gravionlabs-helix-core-dataview.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-datepicker.mjs +3797 -3313
- package/fesm2022/gravionlabs-helix-core-datepicker.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-dialog.mjs +1852 -1047
- package/fesm2022/gravionlabs-helix-core-dialog.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-divider.mjs +288 -136
- package/fesm2022/gravionlabs-helix-core-divider.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-dock.mjs +655 -387
- package/fesm2022/gravionlabs-helix-core-dock.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-dom.mjs +589 -760
- package/fesm2022/gravionlabs-helix-core-dom.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-dragdrop.mjs +457 -302
- package/fesm2022/gravionlabs-helix-core-dragdrop.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-drawer.mjs +986 -507
- package/fesm2022/gravionlabs-helix-core-drawer.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-dynamicdialog.mjs +849 -923
- package/fesm2022/gravionlabs-helix-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-editor.mjs +578 -383
- package/fesm2022/gravionlabs-helix-core-editor.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-fieldset.mjs +593 -280
- package/fesm2022/gravionlabs-helix-core-fieldset.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-fileupload.mjs +1882 -994
- package/fesm2022/gravionlabs-helix-core-fileupload.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-firsterror.mjs +41 -23
- package/fesm2022/gravionlabs-helix-core-firsterror.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-floatlabel.mjs +197 -94
- package/fesm2022/gravionlabs-helix-core-floatlabel.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-fluid.mjs +149 -74
- package/fesm2022/gravionlabs-helix-core-fluid.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-focustrap.mjs +141 -104
- package/fesm2022/gravionlabs-helix-core-focustrap.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-galleria.mjs +2800 -1449
- package/fesm2022/gravionlabs-helix-core-galleria.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-iconfield.mjs +214 -98
- package/fesm2022/gravionlabs-helix-core-iconfield.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-angledoubledown.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleleft.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleright.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleup.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-angledown.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-angleleft.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-angleright.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-angleup.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-arrowdown.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-arrowdownleft.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-arrowdownright.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-arrowleft.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-arrowright.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-arrowup.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-ban.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-ban.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-bars.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-bars.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-baseicon.mjs +120 -64
- package/fesm2022/gravionlabs-helix-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-blank.mjs +42 -23
- package/fesm2022/gravionlabs-helix-core-icons-blank.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-calendar.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-caretleft.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-caretright.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-check.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-check.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-chevrondown.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-chevronleft.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-chevronright.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-chevronup.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-exclamationtriangle.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-eye.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-eye.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-eyeslash.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-filter.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-filter.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-filterfill.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-filterslash.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-home.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-home.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-infocircle.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-minus.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-minus.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-pencil.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-plus.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-plus.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-refresh.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-search.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-search.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-searchminus.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-searchplus.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-sortalt.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-sortamountdown.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-sortamountupalt.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-spinner.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-star.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-star.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-starfill.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-thlarge.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-times.mjs +43 -24
- package/fesm2022/gravionlabs-helix-core-icons-times.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-timescircle.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-trash.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-trash.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-undo.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-undo.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-upload.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-upload.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-windowmaximize.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons-windowminimize.mjs +48 -29
- package/fesm2022/gravionlabs-helix-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-icons.mjs +53 -63
- package/fesm2022/gravionlabs-helix-core-iftalabel.mjs +175 -81
- package/fesm2022/gravionlabs-helix-core-iftalabel.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-image.mjs +1089 -552
- package/fesm2022/gravionlabs-helix-core-image.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-imagecompare.mjs +348 -165
- package/fesm2022/gravionlabs-helix-core-imagecompare.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-inplace.mjs +591 -249
- package/fesm2022/gravionlabs-helix-core-inplace.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-inputgroup.mjs +175 -91
- package/fesm2022/gravionlabs-helix-core-inputgroup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-inputgroupaddon.mjs +196 -73
- package/fesm2022/gravionlabs-helix-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-inputicon.mjs +207 -70
- package/fesm2022/gravionlabs-helix-core-inputicon.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-inputmask.mjs +1581 -1330
- package/fesm2022/gravionlabs-helix-core-inputmask.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-inputnumber.mjs +1696 -1294
- package/fesm2022/gravionlabs-helix-core-inputnumber.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-inputotp.mjs +576 -363
- package/fesm2022/gravionlabs-helix-core-inputotp.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-inputtext.mjs +344 -183
- package/fesm2022/gravionlabs-helix-core-inputtext.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-keyfilter.mjs +291 -252
- package/fesm2022/gravionlabs-helix-core-keyfilter.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-knob.mjs +642 -396
- package/fesm2022/gravionlabs-helix-core-knob.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-listbox.mjs +2354 -1401
- package/fesm2022/gravionlabs-helix-core-listbox.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-megamenu.mjs +1913 -1052
- package/fesm2022/gravionlabs-helix-core-megamenu.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-menu.mjs +1392 -767
- package/fesm2022/gravionlabs-helix-core-menu.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-menubar.mjs +1857 -984
- package/fesm2022/gravionlabs-helix-core-menubar.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-message.mjs +605 -288
- package/fesm2022/gravionlabs-helix-core-message.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-metergroup.mjs +719 -323
- package/fesm2022/gravionlabs-helix-core-metergroup.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-motion.mjs +1178 -694
- package/fesm2022/gravionlabs-helix-core-motion.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-multiselect.mjs +3437 -1839
- package/fesm2022/gravionlabs-helix-core-multiselect.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-orderlist.mjs +1426 -753
- package/fesm2022/gravionlabs-helix-core-orderlist.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-organizationchart.mjs +755 -371
- package/fesm2022/gravionlabs-helix-core-organizationchart.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-overlay.mjs +984 -600
- package/fesm2022/gravionlabs-helix-core-overlay.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-overlaybadge.mjs +310 -107
- package/fesm2022/gravionlabs-helix-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-paginator.mjs +1076 -564
- package/fesm2022/gravionlabs-helix-core-paginator.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-panel.mjs +759 -364
- package/fesm2022/gravionlabs-helix-core-panel.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-panelmenu.mjs +1909 -888
- package/fesm2022/gravionlabs-helix-core-panelmenu.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-passthrough.mjs +10 -18
- package/fesm2022/gravionlabs-helix-core-passthrough.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-password.mjs +1624 -894
- package/fesm2022/gravionlabs-helix-core-password.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-picklist.mjs +2415 -1359
- package/fesm2022/gravionlabs-helix-core-picklist.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-popover.mjs +708 -442
- package/fesm2022/gravionlabs-helix-core-popover.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-progressbar.mjs +380 -170
- package/fesm2022/gravionlabs-helix-core-progressbar.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-progressspinner.mjs +276 -121
- package/fesm2022/gravionlabs-helix-core-progressspinner.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-radiobutton.mjs +525 -291
- package/fesm2022/gravionlabs-helix-core-radiobutton.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-rating.mjs +529 -286
- package/fesm2022/gravionlabs-helix-core-rating.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-ripple.mjs +194 -175
- package/fesm2022/gravionlabs-helix-core-ripple.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-scroller.mjs +1384 -977
- package/fesm2022/gravionlabs-helix-core-scroller.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-scrollpanel.mjs +605 -458
- package/fesm2022/gravionlabs-helix-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-scrolltop.mjs +565 -261
- package/fesm2022/gravionlabs-helix-core-scrolltop.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-select.mjs +2959 -1644
- package/fesm2022/gravionlabs-helix-core-select.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-selectbutton.mjs +644 -335
- package/fesm2022/gravionlabs-helix-core-selectbutton.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-skeleton.mjs +315 -160
- package/fesm2022/gravionlabs-helix-core-skeleton.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-slider.mjs +839 -630
- package/fesm2022/gravionlabs-helix-core-slider.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-speeddial.mjs +1183 -700
- package/fesm2022/gravionlabs-helix-core-speeddial.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-splitbutton.mjs +977 -375
- package/fesm2022/gravionlabs-helix-core-splitbutton.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-splitter.mjs +737 -509
- package/fesm2022/gravionlabs-helix-core-splitter.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-stepper.mjs +1397 -628
- package/fesm2022/gravionlabs-helix-core-stepper.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-steps.mjs +457 -272
- package/fesm2022/gravionlabs-helix-core-steps.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-styleclass.mjs +466 -344
- package/fesm2022/gravionlabs-helix-core-styleclass.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-table.mjs +9728 -5590
- package/fesm2022/gravionlabs-helix-core-table.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-tabs.mjs +1350 -735
- package/fesm2022/gravionlabs-helix-core-tabs.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-tag.mjs +343 -154
- package/fesm2022/gravionlabs-helix-core-tag.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-terminal.mjs +384 -214
- package/fesm2022/gravionlabs-helix-core-terminal.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-textarea.mjs +347 -209
- package/fesm2022/gravionlabs-helix-core-textarea.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-themes-aura.mjs +4846 -5618
- package/fesm2022/gravionlabs-helix-core-themes-aura.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-themes-lara.mjs +4961 -5809
- package/fesm2022/gravionlabs-helix-core-themes-lara.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-themes-nora.mjs +4780 -5567
- package/fesm2022/gravionlabs-helix-core-themes-nora.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-themes-types.mjs +0 -700
- package/fesm2022/gravionlabs-helix-core-themes.mjs +4 -9
- package/fesm2022/gravionlabs-helix-core-themes.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-tieredmenu.mjs +1967 -1048
- package/fesm2022/gravionlabs-helix-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-timeline.mjs +370 -185
- package/fesm2022/gravionlabs-helix-core-timeline.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-toast.mjs +1083 -526
- package/fesm2022/gravionlabs-helix-core-toast.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-togglebutton.mjs +609 -315
- package/fesm2022/gravionlabs-helix-core-togglebutton.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-toggleswitch.mjs +504 -246
- package/fesm2022/gravionlabs-helix-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-toolbar.mjs +350 -149
- package/fesm2022/gravionlabs-helix-core-toolbar.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-tooltip.mjs +1035 -795
- package/fesm2022/gravionlabs-helix-core-tooltip.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-tree.mjs +2673 -1668
- package/fesm2022/gravionlabs-helix-core-tree.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-treeselect.mjs +1773 -976
- package/fesm2022/gravionlabs-helix-core-treeselect.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-treetable.mjs +5963 -3647
- package/fesm2022/gravionlabs-helix-core-treetable.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-ts-helpers.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-accordion.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-autocomplete.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-avatar.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-avatargroup.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-badge.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-blockui.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-breadcrumb.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-button.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-card.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-carousel.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-cascadeselect.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-chart.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-checkbox.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-chip.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-colorpicker.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-confirmdialog.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-confirmpopup.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-contextmenu.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-dataview.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-datepicker.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-dialog.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-divider.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-dock.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-drawer.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-editor.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-fieldset.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-fileupload.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-floatlabel.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-fluid.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-galleria.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-iconfield.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-iftalabel.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-image.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-imagecompare.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-inplace.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-inputgroup.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-inputgroupaddon.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-inputicon.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-inputmask.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-inputnumber.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-inputotp.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-inputtext.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-knob.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-listbox.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-megamenu.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-menu.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-menubar.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-message.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-metergroup.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-motion.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-multiselect.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-orderlist.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-organizationchart.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-overlay.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-overlaybadge.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-paginator.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-panel.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-panelmenu.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-password.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-picklist.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-popover.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-progressbar.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-progressspinner.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-radiobutton.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-rating.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-scroller.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-scrollpanel.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-scrolltop.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-select.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-selectbutton.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-skeleton.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-slider.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-speeddial.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-splitbutton.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-splitter.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-stepper.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-table.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-tabs.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-tag.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-terminal.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-textarea.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-tieredmenu.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-timeline.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-toast.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-togglebutton.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-toggleswitch.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-toolbar.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-tooltip.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-tree.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-treeselect.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-types-treetable.mjs +0 -4
- package/fesm2022/gravionlabs-helix-core-uix-motion.mjs +192 -282
- package/fesm2022/gravionlabs-helix-core-uix-motion.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-uix-styled.mjs +827 -813
- package/fesm2022/gravionlabs-helix-core-uix-styled.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-uix-utils.mjs +967 -1558
- package/fesm2022/gravionlabs-helix-core-uix-utils.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-usestyle.mjs +62 -52
- package/fesm2022/gravionlabs-helix-core-usestyle.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-utils.mjs +272 -366
- package/fesm2022/gravionlabs-helix-core-utils.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core-validators.mjs +86 -93
- package/fesm2022/gravionlabs-helix-core-validators.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-core.mjs +1 -5
- package/fesm2022/gravionlabs-helix-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/gravionlabs-helix-core-accordion.d.ts +317 -246
- package/types/gravionlabs-helix-core-animateonscroll.d.ts +89 -61
- package/types/gravionlabs-helix-core-api.d.ts +1743 -1777
- package/types/gravionlabs-helix-core-autocomplete.d.ts +1070 -750
- package/types/gravionlabs-helix-core-autofocus.d.ts +29 -26
- package/types/gravionlabs-helix-core-avatar.d.ts +165 -123
- package/types/gravionlabs-helix-core-avatargroup.d.ts +58 -48
- package/types/gravionlabs-helix-core-badge.d.ts +243 -162
- package/types/gravionlabs-helix-core-base.d.ts +46 -49
- package/types/gravionlabs-helix-core-basecomponent.d.ts +187 -170
- package/types/gravionlabs-helix-core-baseeditableholder.d.ts +63 -45
- package/types/gravionlabs-helix-core-baseinput.d.ts +121 -73
- package/types/gravionlabs-helix-core-basemodelholder.d.ts +9 -12
- package/types/gravionlabs-helix-core-bind.d.ts +36 -33
- package/types/gravionlabs-helix-core-blockui.d.ts +114 -90
- package/types/gravionlabs-helix-core-breadcrumb.d.ts +158 -132
- package/types/gravionlabs-helix-core-button.d.ts +716 -443
- package/types/gravionlabs-helix-core-buttongroup.d.ts +28 -33
- package/types/gravionlabs-helix-core-card.d.ts +156 -136
- package/types/gravionlabs-helix-core-carousel.d.ts +461 -361
- package/types/gravionlabs-helix-core-cascadeselect.d.ts +880 -604
- package/types/gravionlabs-helix-core-chart.d.ts +162 -115
- package/types/gravionlabs-helix-core-checkbox.d.ts +310 -211
- package/types/gravionlabs-helix-core-chip.d.ts +202 -147
- package/types/gravionlabs-helix-core-classnames.d.ts +23 -21
- package/types/gravionlabs-helix-core-colorpicker.d.ts +359 -290
- package/types/gravionlabs-helix-core-config.d.ts +249 -259
- package/types/gravionlabs-helix-core-confirmdialog.d.ts +498 -325
- package/types/gravionlabs-helix-core-confirmpopup.d.ts +273 -218
- package/types/gravionlabs-helix-core-contextmenu.d.ts +509 -351
- package/types/gravionlabs-helix-core-dataview.d.ts +507 -349
- package/types/gravionlabs-helix-core-datepicker.d.ts +1267 -954
- package/types/gravionlabs-helix-core-dialog.d.ts +758 -515
- package/types/gravionlabs-helix-core-divider.d.ts +126 -106
- package/types/gravionlabs-helix-core-dock.d.ts +219 -181
- package/types/gravionlabs-helix-core-dom.d.ts +97 -100
- package/types/gravionlabs-helix-core-dragdrop.d.ts +149 -107
- package/types/gravionlabs-helix-core-drawer.d.ts +382 -278
- package/types/gravionlabs-helix-core-dynamicdialog.d.ts +512 -519
- package/types/gravionlabs-helix-core-editor.d.ts +225 -173
- package/types/gravionlabs-helix-core-fieldset.d.ts +209 -170
- package/types/gravionlabs-helix-core-fileupload.d.ts +764 -533
- package/types/gravionlabs-helix-core-firsterror.d.ts +8 -11
- package/types/gravionlabs-helix-core-floatlabel.d.ts +57 -52
- package/types/gravionlabs-helix-core-fluid.d.ts +38 -39
- package/types/gravionlabs-helix-core-focustrap.d.ts +33 -30
- package/types/gravionlabs-helix-core-galleria.d.ts +957 -628
- package/types/gravionlabs-helix-core-iconfield.d.ts +72 -57
- package/types/gravionlabs-helix-core-icons-angledoubledown.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-angledoubleleft.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-angledoubleright.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-angledoubleup.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-angledown.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-angleleft.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-angleright.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-angleup.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-arrowdown.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-arrowdownleft.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-arrowdownright.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-arrowleft.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-arrowright.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-arrowup.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-ban.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-bars.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-baseicon.d.ts +25 -24
- package/types/gravionlabs-helix-core-icons-blank.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-calendar.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-caretleft.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-caretright.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-check.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-chevrondown.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-chevronleft.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-chevronright.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-chevronup.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-exclamationtriangle.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-eye.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-eyeslash.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-filter.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-filterfill.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-filterslash.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-home.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-infocircle.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-minus.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-pencil.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-plus.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-refresh.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-search.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-searchminus.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-searchplus.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-sortalt.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-sortamountdown.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-sortamountupalt.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-spinner.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-star.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-starfill.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-thlarge.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-times.d.ts +6 -9
- package/types/gravionlabs-helix-core-icons-timescircle.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-trash.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-undo.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-upload.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-windowmaximize.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons-windowminimize.d.ts +8 -11
- package/types/gravionlabs-helix-core-icons.d.ts +53 -53
- package/types/gravionlabs-helix-core-iftalabel.d.ts +42 -43
- package/types/gravionlabs-helix-core-image.d.ts +440 -331
- package/types/gravionlabs-helix-core-imagecompare.d.ts +99 -84
- package/types/gravionlabs-helix-core-inplace.d.ts +188 -149
- package/types/gravionlabs-helix-core-inputgroup.d.ts +55 -50
- package/types/gravionlabs-helix-core-inputgroupaddon.d.ts +54 -43
- package/types/gravionlabs-helix-core-inputicon.d.ts +49 -38
- package/types/gravionlabs-helix-core-inputmask.d.ts +499 -353
- package/types/gravionlabs-helix-core-inputnumber.d.ts +581 -410
- package/types/gravionlabs-helix-core-inputotp.d.ts +206 -158
- package/types/gravionlabs-helix-core-inputtext.d.ts +142 -102
- package/types/gravionlabs-helix-core-keyfilter.d.ts +62 -53
- package/types/gravionlabs-helix-core-knob.d.ts +265 -188
- package/types/gravionlabs-helix-core-listbox.d.ts +897 -638
- package/types/gravionlabs-helix-core-megamenu.d.ts +512 -365
- package/types/gravionlabs-helix-core-menu.d.ts +441 -343
- package/types/gravionlabs-helix-core-menubar.d.ts +499 -361
- package/types/gravionlabs-helix-core-message.d.ts +267 -195
- package/types/gravionlabs-helix-core-metergroup.d.ts +256 -190
- package/types/gravionlabs-helix-core-motion.d.ts +602 -385
- package/types/gravionlabs-helix-core-multiselect.d.ts +1256 -855
- package/types/gravionlabs-helix-core-orderlist.d.ts +504 -351
- package/types/gravionlabs-helix-core-organizationchart.d.ts +264 -203
- package/types/gravionlabs-helix-core-overlay.d.ts +417 -307
- package/types/gravionlabs-helix-core-overlaybadge.d.ts +107 -71
- package/types/gravionlabs-helix-core-paginator.d.ts +445 -336
- package/types/gravionlabs-helix-core-panel.d.ts +285 -225
- package/types/gravionlabs-helix-core-panelmenu.d.ts +499 -340
- package/types/gravionlabs-helix-core-passthrough.d.ts +5 -7
- package/types/gravionlabs-helix-core-password.d.ts +657 -463
- package/types/gravionlabs-helix-core-picklist.d.ts +938 -647
- package/types/gravionlabs-helix-core-popover.d.ts +259 -190
- package/types/gravionlabs-helix-core-progressbar.d.ts +141 -106
- package/types/gravionlabs-helix-core-progressspinner.d.ts +101 -76
- package/types/gravionlabs-helix-core-radiobutton.d.ts +228 -174
- package/types/gravionlabs-helix-core-rating.d.ts +217 -178
- package/types/gravionlabs-helix-core-ripple.d.ts +43 -48
- package/types/gravionlabs-helix-core-scroller.d.ts +505 -371
- package/types/gravionlabs-helix-core-scrollpanel.d.ts +151 -141
- package/types/gravionlabs-helix-core-scrolltop.d.ts +195 -140
- package/types/gravionlabs-helix-core-select.d.ts +1095 -749
- package/types/gravionlabs-helix-core-selectbutton.d.ts +238 -165
- package/types/gravionlabs-helix-core-skeleton.d.ts +123 -88
- package/types/gravionlabs-helix-core-slider.d.ts +259 -201
- package/types/gravionlabs-helix-core-speeddial.d.ts +511 -390
- package/types/gravionlabs-helix-core-splitbutton.d.ts +422 -267
- package/types/gravionlabs-helix-core-splitter.d.ts +246 -192
- package/types/gravionlabs-helix-core-stepper.d.ts +428 -269
- package/types/gravionlabs-helix-core-steps.d.ts +162 -134
- package/types/gravionlabs-helix-core-styleclass.d.ts +165 -107
- package/types/gravionlabs-helix-core-table.d.ts +2908 -1935
- package/types/gravionlabs-helix-core-tabs.d.ts +471 -311
- package/types/gravionlabs-helix-core-tag.d.ts +123 -98
- package/types/gravionlabs-helix-core-terminal.d.ts +142 -124
- package/types/gravionlabs-helix-core-textarea.d.ts +147 -110
- package/types/gravionlabs-helix-core-themes-aura.d.ts +957 -942
- package/types/gravionlabs-helix-core-themes-lara.d.ts +968 -953
- package/types/gravionlabs-helix-core-themes-nora.d.ts +954 -939
- package/types/gravionlabs-helix-core-themes-types.d.ts +17940 -18746
- package/types/gravionlabs-helix-core-themes.d.ts +8 -11
- package/types/gravionlabs-helix-core-tieredmenu.d.ts +583 -398
- package/types/gravionlabs-helix-core-timeline.d.ts +145 -125
- package/types/gravionlabs-helix-core-toast.d.ts +408 -275
- package/types/gravionlabs-helix-core-togglebutton.d.ts +264 -188
- package/types/gravionlabs-helix-core-toggleswitch.d.ts +202 -150
- package/types/gravionlabs-helix-core-toolbar.d.ts +100 -90
- package/types/gravionlabs-helix-core-tooltip.d.ts +362 -256
- package/types/gravionlabs-helix-core-tree.d.ts +902 -630
- package/types/gravionlabs-helix-core-treeselect.d.ts +770 -559
- package/types/gravionlabs-helix-core-treetable.d.ts +1715 -1205
- package/types/gravionlabs-helix-core-ts-helpers.d.ts +4 -6
- package/types/gravionlabs-helix-core-types-accordion.d.ts +42 -45
- package/types/gravionlabs-helix-core-types-autocomplete.d.ts +230 -233
- package/types/gravionlabs-helix-core-types-avatar.d.ts +23 -26
- package/types/gravionlabs-helix-core-types-avatargroup.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-badge.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-blockui.d.ts +18 -21
- package/types/gravionlabs-helix-core-types-breadcrumb.d.ts +65 -68
- package/types/gravionlabs-helix-core-types-button.d.ts +90 -93
- package/types/gravionlabs-helix-core-types-card.d.ts +54 -57
- package/types/gravionlabs-helix-core-types-carousel.d.ts +107 -110
- package/types/gravionlabs-helix-core-types-cascadeselect.d.ts +151 -157
- package/types/gravionlabs-helix-core-types-chart.d.ts +15 -18
- package/types/gravionlabs-helix-core-types-checkbox.d.ts +48 -51
- package/types/gravionlabs-helix-core-types-chip.d.ts +49 -52
- package/types/gravionlabs-helix-core-types-colorpicker.d.ts +58 -61
- package/types/gravionlabs-helix-core-types-confirmdialog.d.ts +116 -119
- package/types/gravionlabs-helix-core-types-confirmpopup.d.ts +74 -77
- package/types/gravionlabs-helix-core-types-contextmenu.d.ts +71 -74
- package/types/gravionlabs-helix-core-types-dataview.d.ts +178 -181
- package/types/gravionlabs-helix-core-types-datepicker.d.ts +436 -439
- package/types/gravionlabs-helix-core-types-dialog.d.ts +86 -89
- package/types/gravionlabs-helix-core-types-divider.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-dock.d.ts +44 -47
- package/types/gravionlabs-helix-core-types-drawer.d.ts +61 -64
- package/types/gravionlabs-helix-core-types-editor.d.ts +143 -146
- package/types/gravionlabs-helix-core-types-fieldset.d.ts +69 -73
- package/types/gravionlabs-helix-core-types-fileupload.d.ts +260 -265
- package/types/gravionlabs-helix-core-types-floatlabel.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-fluid.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-galleria.d.ts +204 -207
- package/types/gravionlabs-helix-core-types-iconfield.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-iftalabel.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-image.d.ts +113 -116
- package/types/gravionlabs-helix-core-types-imagecompare.d.ts +22 -25
- package/types/gravionlabs-helix-core-types-inplace.d.ts +46 -49
- package/types/gravionlabs-helix-core-types-inputgroup.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-inputgroupaddon.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-inputicon.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-inputmask.d.ts +30 -33
- package/types/gravionlabs-helix-core-types-inputnumber.d.ts +68 -71
- package/types/gravionlabs-helix-core-types-inputotp.d.ts +67 -70
- package/types/gravionlabs-helix-core-types-inputtext.d.ts +7 -10
- package/types/gravionlabs-helix-core-types-knob.d.ts +23 -26
- package/types/gravionlabs-helix-core-types-listbox.d.ts +262 -266
- package/types/gravionlabs-helix-core-types-megamenu.d.ts +112 -115
- package/types/gravionlabs-helix-core-types-menu.d.ts +83 -86
- package/types/gravionlabs-helix-core-types-menubar.d.ts +98 -101
- package/types/gravionlabs-helix-core-types-message.d.ts +61 -64
- package/types/gravionlabs-helix-core-types-metergroup.d.ts +135 -138
- package/types/gravionlabs-helix-core-types-motion.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-multiselect.d.ts +302 -306
- package/types/gravionlabs-helix-core-types-orderlist.d.ts +125 -128
- package/types/gravionlabs-helix-core-types-organizationchart.d.ts +90 -96
- package/types/gravionlabs-helix-core-types-overlay.d.ts +31 -34
- package/types/gravionlabs-helix-core-types-overlaybadge.d.ts +17 -20
- package/types/gravionlabs-helix-core-types-paginator.d.ts +131 -134
- package/types/gravionlabs-helix-core-types-panel.d.ts +89 -93
- package/types/gravionlabs-helix-core-types-panelmenu.d.ts +105 -108
- package/types/gravionlabs-helix-core-types-password.d.ts +94 -97
- package/types/gravionlabs-helix-core-types-picklist.d.ts +240 -250
- package/types/gravionlabs-helix-core-types-popover.d.ts +33 -36
- package/types/gravionlabs-helix-core-types-progressbar.d.ts +32 -35
- package/types/gravionlabs-helix-core-types-progressspinner.d.ts +19 -22
- package/types/gravionlabs-helix-core-types-radiobutton.d.ts +29 -32
- package/types/gravionlabs-helix-core-types-rating.d.ts +62 -65
- package/types/gravionlabs-helix-core-types-scroller.d.ts +142 -146
- package/types/gravionlabs-helix-core-types-scrollpanel.d.ts +30 -33
- package/types/gravionlabs-helix-core-types-scrolltop.d.ts +35 -38
- package/types/gravionlabs-helix-core-types-select.d.ts +245 -248
- package/types/gravionlabs-helix-core-types-selectbutton.d.ts +56 -59
- package/types/gravionlabs-helix-core-types-skeleton.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-slider.d.ts +50 -53
- package/types/gravionlabs-helix-core-types-speeddial.d.ts +69 -72
- package/types/gravionlabs-helix-core-types-splitbutton.d.ts +41 -44
- package/types/gravionlabs-helix-core-types-splitter.d.ts +36 -40
- package/types/gravionlabs-helix-core-types-stepper.d.ts +68 -71
- package/types/gravionlabs-helix-core-types-table.d.ts +721 -727
- package/types/gravionlabs-helix-core-types-tabs.d.ts +51 -54
- package/types/gravionlabs-helix-core-types-tag.d.ts +26 -29
- package/types/gravionlabs-helix-core-types-terminal.d.ts +43 -46
- package/types/gravionlabs-helix-core-types-textarea.d.ts +11 -14
- package/types/gravionlabs-helix-core-types-tieredmenu.d.ts +69 -72
- package/types/gravionlabs-helix-core-types-timeline.d.ts +58 -61
- package/types/gravionlabs-helix-core-types-toast.d.ts +86 -89
- package/types/gravionlabs-helix-core-types-togglebutton.d.ts +51 -54
- package/types/gravionlabs-helix-core-types-toggleswitch.d.ts +41 -44
- package/types/gravionlabs-helix-core-types-toolbar.d.ts +34 -37
- package/types/gravionlabs-helix-core-types-tooltip.d.ts +15 -18
- package/types/gravionlabs-helix-core-types-tree.d.ts +230 -239
- package/types/gravionlabs-helix-core-types-treeselect.d.ts +195 -199
- package/types/gravionlabs-helix-core-types-treetable.d.ts +486 -491
- package/types/gravionlabs-helix-core-uix-motion.d.ts +177 -190
- package/types/gravionlabs-helix-core-uix-styled.d.ts +254 -277
- package/types/gravionlabs-helix-core-uix-utils.d.ts +39 -176
- package/types/gravionlabs-helix-core-usestyle.d.ts +12 -15
- package/types/gravionlabs-helix-core-utils.d.ts +45 -50
- package/types/gravionlabs-helix-core-validators.d.ts +29 -34
- package/types/gravionlabs-helix-core.d.ts +2 -2
- package/fesm2022/gravionlabs-helix-core-icons.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-themes-types.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-ts-helpers.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-accordion.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-autocomplete.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-avatar.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-avatargroup.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-badge.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-blockui.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-breadcrumb.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-button.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-card.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-carousel.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-cascadeselect.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-chart.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-checkbox.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-chip.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-colorpicker.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-confirmdialog.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-confirmpopup.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-contextmenu.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-dataview.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-datepicker.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-dialog.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-divider.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-dock.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-drawer.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-editor.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-fieldset.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-fileupload.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-floatlabel.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-fluid.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-galleria.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-iconfield.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-iftalabel.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-image.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-imagecompare.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-inplace.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-inputgroup.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-inputgroupaddon.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-inputicon.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-inputmask.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-inputnumber.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-inputotp.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-inputtext.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-knob.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-listbox.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-megamenu.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-menu.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-menubar.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-message.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-metergroup.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-motion.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-multiselect.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-orderlist.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-organizationchart.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-overlay.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-overlaybadge.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-paginator.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-panel.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-panelmenu.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-password.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-picklist.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-popover.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-progressbar.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-progressspinner.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-radiobutton.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-rating.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-scroller.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-scrollpanel.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-scrolltop.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-select.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-selectbutton.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-skeleton.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-slider.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-speeddial.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-splitbutton.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-splitter.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-stepper.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-table.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-tabs.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-tag.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-terminal.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-textarea.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-tieredmenu.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-timeline.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-toast.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-togglebutton.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-toggleswitch.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-toolbar.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-tooltip.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-tree.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-treeselect.mjs.map +0 -1
- package/fesm2022/gravionlabs-helix-core-types-treetable.mjs.map +0 -1
|
@@ -1,871 +1,885 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { EventBus, createStyleMarkup, deepMerge, getKeyValue, isArray, isEmpty, isNotEmpty, isNumber, isObject, isString, matchRegex, mergeKeys, minifyCSS, resolve, toKebabCase } from "@gravionlabs/helix-core/uix/utils";
|
|
3
2
|
function definePreset(...presets) {
|
|
4
|
-
|
|
3
|
+
return deepMerge(...presets);
|
|
5
4
|
}
|
|
6
|
-
|
|
7
5
|
const ThemeService = EventBus();
|
|
8
|
-
|
|
9
|
-
const EXPR_REGEX = /{([^}]*)}/g; // Exp: '{a}', '{a.b}', '{a.b.c}' etc.
|
|
6
|
+
const EXPR_REGEX = /{([^}]*)}/g;
|
|
10
7
|
const CALC_REGEX = /(\d+\s+[\+\-\*\/]\s+\d+)/g;
|
|
11
8
|
const VAR_REGEX = /var\([^)]+\)/g;
|
|
12
9
|
function toTokenKey(str) {
|
|
13
|
-
|
|
10
|
+
return isString(str) ? str.replace(/[A-Z]/g, (c, i) => i === 0 ? c : "." + c.toLowerCase()).toLowerCase() : str;
|
|
14
11
|
}
|
|
15
12
|
function merge(value1, value2) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
else if (isObject(value1)) {
|
|
20
|
-
Object.assign(value1, value2);
|
|
21
|
-
}
|
|
13
|
+
if (isArray(value1)) value1.push(...value2 || []);
|
|
14
|
+
else if (isObject(value1)) Object.assign(value1, value2);
|
|
22
15
|
}
|
|
23
16
|
function toValue(value) {
|
|
24
|
-
|
|
25
|
-
return isObject(value) && value.hasOwnProperty('$value') && value.hasOwnProperty('$type') ? value.$value : value;
|
|
17
|
+
return isObject(value) && value.hasOwnProperty("$value") && value.hasOwnProperty("$type") ? value.$value : value;
|
|
26
18
|
}
|
|
27
|
-
function toUnit(value, variable =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
function toUnit(value, variable = "") {
|
|
20
|
+
if (![
|
|
21
|
+
"opacity",
|
|
22
|
+
"z-index",
|
|
23
|
+
"line-height",
|
|
24
|
+
"font-weight",
|
|
25
|
+
"flex",
|
|
26
|
+
"flex-grow",
|
|
27
|
+
"flex-shrink",
|
|
28
|
+
"order"
|
|
29
|
+
].some((property) => variable.endsWith(property))) return `${value}`.trim().split(" ").map((v) => isNumber(v) ? `${v}px` : v).join(" ");
|
|
30
|
+
return value;
|
|
35
31
|
}
|
|
36
32
|
function toNormalizePrefix(prefix) {
|
|
37
|
-
|
|
33
|
+
return prefix.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
38
34
|
}
|
|
39
|
-
function toNormalizeVariable(prefix =
|
|
40
|
-
|
|
35
|
+
function toNormalizeVariable(prefix = "", variable = "") {
|
|
36
|
+
return toNormalizePrefix(`${isString(prefix, false) && isString(variable, false) ? `${prefix}-` : prefix}${variable}`);
|
|
41
37
|
}
|
|
42
|
-
function getVariableName(prefix =
|
|
43
|
-
|
|
38
|
+
function getVariableName(prefix = "", variable = "") {
|
|
39
|
+
return `--${toNormalizeVariable(prefix, variable)}`;
|
|
44
40
|
}
|
|
45
|
-
function hasOddBraces(str =
|
|
46
|
-
|
|
47
|
-
const closeBraces = (str.match(/}/g) || []).length;
|
|
48
|
-
return (openBraces + closeBraces) % 2 !== 0;
|
|
41
|
+
function hasOddBraces(str = "") {
|
|
42
|
+
return ((str.match(/{/g) || []).length + (str.match(/}/g) || []).length) % 2 !== 0;
|
|
49
43
|
}
|
|
50
|
-
function getVariableValue(value, variable =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return matchRegex(_val.replace(VAR_REGEX, '0'), CALC_REGEX) ? `calc(${_val})` : _val;
|
|
63
|
-
}
|
|
64
|
-
return val; //toUnit(val, variable);
|
|
65
|
-
}
|
|
66
|
-
else if (isNumber(value)) {
|
|
67
|
-
return value; //toUnit(value, variable);
|
|
68
|
-
}
|
|
69
|
-
return undefined;
|
|
44
|
+
function getVariableValue(value, variable = "", prefix = "", excludedKeyRegexes = [], fallback) {
|
|
45
|
+
if (isString(value)) {
|
|
46
|
+
const val = value.trim();
|
|
47
|
+
if (hasOddBraces(val)) return;
|
|
48
|
+
else if (matchRegex(val, EXPR_REGEX)) {
|
|
49
|
+
const _val = val.replaceAll(EXPR_REGEX, (v) => {
|
|
50
|
+
return `var(${getVariableName(prefix, toKebabCase(v.replace(/{|}/g, "").split(".").filter((_v) => !excludedKeyRegexes.some((_r) => matchRegex(_v, _r))).join("-")))}${isNotEmpty(fallback) ? `, ${fallback}` : ""})`;
|
|
51
|
+
});
|
|
52
|
+
return matchRegex(_val.replace(VAR_REGEX, "0"), CALC_REGEX) ? `calc(${_val})` : _val;
|
|
53
|
+
}
|
|
54
|
+
return val;
|
|
55
|
+
} else if (isNumber(value)) return value;
|
|
70
56
|
}
|
|
71
57
|
function getComputedValue(obj = {}, value) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
else if (isNumber(value)) {
|
|
77
|
-
return value;
|
|
78
|
-
}
|
|
79
|
-
return undefined;
|
|
58
|
+
if (isString(value)) {
|
|
59
|
+
const val = value.trim();
|
|
60
|
+
return matchRegex(val, EXPR_REGEX) ? val.replaceAll(EXPR_REGEX, (v) => getKeyValue(obj, v.replace(/{|}/g, ""))) : val;
|
|
61
|
+
} else if (isNumber(value)) return value;
|
|
80
62
|
}
|
|
81
63
|
function setProperty(properties, key, value) {
|
|
82
|
-
|
|
83
|
-
properties.push(`${key}:${value};`);
|
|
84
|
-
}
|
|
64
|
+
if (isString(key, false)) properties.push(`${key}:${value};`);
|
|
85
65
|
}
|
|
86
66
|
function getRule(selector, properties) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
return '';
|
|
67
|
+
if (selector) return `${selector}{${properties}}`;
|
|
68
|
+
return "";
|
|
91
69
|
}
|
|
92
70
|
function evaluateDtExpressions(input, fn) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
stack.push(i);
|
|
143
|
-
i += 2;
|
|
144
|
-
}
|
|
145
|
-
else if (input[i] === ')' && stack.length > 0) {
|
|
146
|
-
const start = stack.pop();
|
|
147
|
-
if (stack.length === 0) {
|
|
148
|
-
indices.push([start, i]);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
if (!indices.length)
|
|
153
|
-
return input;
|
|
154
|
-
for (let i = indices.length - 1; i >= 0; i--) {
|
|
155
|
-
const [start, end] = indices[i];
|
|
156
|
-
const inner = input.slice(start + 3, end);
|
|
157
|
-
const args = fastParseArgs(inner, fn);
|
|
158
|
-
const resolved = fn(...args);
|
|
159
|
-
input = input.slice(0, start) + resolved + input.slice(end + 1);
|
|
160
|
-
}
|
|
161
|
-
return input;
|
|
71
|
+
if (input.indexOf("dt(") === -1) return input;
|
|
72
|
+
function fastParseArgs(str, fn) {
|
|
73
|
+
const args = [];
|
|
74
|
+
let i = 0;
|
|
75
|
+
let current = "";
|
|
76
|
+
let quote = null;
|
|
77
|
+
let depth = 0;
|
|
78
|
+
while (i <= str.length) {
|
|
79
|
+
const c = str[i];
|
|
80
|
+
if ((c === "\"" || c === "'" || c === "`") && str[i - 1] !== "\\") quote = quote === c ? null : c;
|
|
81
|
+
if (!quote) {
|
|
82
|
+
if (c === "(") depth++;
|
|
83
|
+
if (c === ")") depth--;
|
|
84
|
+
if ((c === "," || i === str.length) && depth === 0) {
|
|
85
|
+
const arg = current.trim();
|
|
86
|
+
if (arg.startsWith("dt(")) args.push(evaluateDtExpressions(arg, fn));
|
|
87
|
+
else args.push(parseArg(arg));
|
|
88
|
+
current = "";
|
|
89
|
+
i++;
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (c !== void 0) current += c;
|
|
94
|
+
i++;
|
|
95
|
+
}
|
|
96
|
+
return args;
|
|
97
|
+
}
|
|
98
|
+
function parseArg(arg) {
|
|
99
|
+
const q = arg[0];
|
|
100
|
+
if ((q === "\"" || q === "'" || q === "`") && arg[arg.length - 1] === q) return arg.slice(1, -1);
|
|
101
|
+
const num = Number(arg);
|
|
102
|
+
return isNaN(num) ? arg : num;
|
|
103
|
+
}
|
|
104
|
+
const indices = [];
|
|
105
|
+
const stack = [];
|
|
106
|
+
for (let i = 0; i < input.length; i++) if (input[i] === "d" && input.slice(i, i + 3) === "dt(") {
|
|
107
|
+
stack.push(i);
|
|
108
|
+
i += 2;
|
|
109
|
+
} else if (input[i] === ")" && stack.length > 0) {
|
|
110
|
+
const start = stack.pop();
|
|
111
|
+
if (stack.length === 0) indices.push([start, i]);
|
|
112
|
+
}
|
|
113
|
+
if (!indices.length) return input;
|
|
114
|
+
for (let i = indices.length - 1; i >= 0; i--) {
|
|
115
|
+
const [start, end] = indices[i];
|
|
116
|
+
const resolved = fn(...fastParseArgs(input.slice(start + 3, end), fn));
|
|
117
|
+
input = input.slice(0, start) + resolved + input.slice(end + 1);
|
|
118
|
+
}
|
|
119
|
+
return input;
|
|
162
120
|
}
|
|
163
|
-
|
|
164
121
|
function normalizeColor(color) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
return color;
|
|
122
|
+
if (color.length === 4) return `#${color[1]}${color[1]}${color[2]}${color[2]}${color[3]}${color[3]}`;
|
|
123
|
+
return color;
|
|
169
124
|
}
|
|
170
125
|
function hexToRgb(hex) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
126
|
+
const bigint = parseInt(hex.substring(1), 16);
|
|
127
|
+
return {
|
|
128
|
+
r: bigint >> 16 & 255,
|
|
129
|
+
g: bigint >> 8 & 255,
|
|
130
|
+
b: bigint & 255
|
|
131
|
+
};
|
|
176
132
|
}
|
|
177
133
|
function rgbToHex(r, g, b) {
|
|
178
|
-
|
|
134
|
+
return `#${r.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${b.toString(16).padStart(2, "0")}`;
|
|
179
135
|
}
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
const rgb2 = hexToRgb(color2);
|
|
189
|
-
const r = Math.round(rgb1.r * w1 + rgb2.r * w2);
|
|
190
|
-
const g = Math.round(rgb1.g * w1 + rgb2.g * w2);
|
|
191
|
-
const b = Math.round(rgb1.b * w1 + rgb2.b * w2);
|
|
192
|
-
return rgbToHex(r, g, b);
|
|
136
|
+
var mix_default = (color1, color2, weight) => {
|
|
137
|
+
color1 = normalizeColor(color1);
|
|
138
|
+
color2 = normalizeColor(color2);
|
|
139
|
+
const w1 = (weight / 100 * 2 - 1 + 1) / 2;
|
|
140
|
+
const w2 = 1 - w1;
|
|
141
|
+
const rgb1 = hexToRgb(color1);
|
|
142
|
+
const rgb2 = hexToRgb(color2);
|
|
143
|
+
return rgbToHex(Math.round(rgb1.r * w1 + rgb2.r * w2), Math.round(rgb1.g * w1 + rgb2.g * w2), Math.round(rgb1.b * w1 + rgb2.b * w2));
|
|
193
144
|
};
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
145
|
+
var shade_default = (color, percent) => mix_default("#000000", color, percent);
|
|
146
|
+
var tint_default = (color, percent) => mix_default("#ffffff", color, percent);
|
|
147
|
+
const scales = [
|
|
148
|
+
50,
|
|
149
|
+
100,
|
|
150
|
+
200,
|
|
151
|
+
300,
|
|
152
|
+
400,
|
|
153
|
+
500,
|
|
154
|
+
600,
|
|
155
|
+
700,
|
|
156
|
+
800,
|
|
157
|
+
900,
|
|
158
|
+
950
|
|
159
|
+
];
|
|
160
|
+
var palette_default = (color) => {
|
|
161
|
+
if (matchRegex(color, EXPR_REGEX)) {
|
|
162
|
+
const token = color.replace(/{|}/g, "");
|
|
163
|
+
return scales.reduce((acc, scale) => {
|
|
164
|
+
acc[scale] = `{${token}.${scale}}`;
|
|
165
|
+
return acc;
|
|
166
|
+
}, {});
|
|
167
|
+
}
|
|
168
|
+
return typeof color === "string" ? scales.reduce((acc, scale, i) => {
|
|
169
|
+
acc[scale] = i <= 5 ? tint_default(color, (5 - i) * 19) : shade_default(color, (i - 5) * 15);
|
|
170
|
+
return acc;
|
|
171
|
+
}, {}) : color;
|
|
214
172
|
};
|
|
215
|
-
|
|
216
173
|
const $dt = (tokenPath) => {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
value
|
|
225
|
-
};
|
|
174
|
+
const theme = config_default.getTheme();
|
|
175
|
+
const variable = dtwt(theme, tokenPath, void 0, "variable");
|
|
176
|
+
return {
|
|
177
|
+
name: variable?.match(/--[\w-]+/g)?.[0],
|
|
178
|
+
variable,
|
|
179
|
+
value: dtwt(theme, tokenPath, void 0, "value")
|
|
180
|
+
};
|
|
226
181
|
};
|
|
227
182
|
const dt = (...args) => {
|
|
228
|
-
|
|
183
|
+
return dtwt(config_default.getTheme(), ...args);
|
|
229
184
|
};
|
|
230
185
|
const dtwt = (theme = {}, tokenPath, fallback, type) => {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
return '';
|
|
186
|
+
if (tokenPath) {
|
|
187
|
+
const { variable: VARIABLE, options: OPTIONS } = config_default.defaults || {};
|
|
188
|
+
const { prefix, transform } = theme?.options || OPTIONS || {};
|
|
189
|
+
const token = matchRegex(tokenPath, EXPR_REGEX) ? tokenPath : `{${tokenPath}}`;
|
|
190
|
+
return type === "value" || isEmpty(type) && transform === "strict" ? config_default.getTokenValue(tokenPath) : getVariableValue(token, void 0, prefix, [VARIABLE.excludedKeyRegex], fallback);
|
|
191
|
+
}
|
|
192
|
+
return "";
|
|
239
193
|
};
|
|
240
|
-
|
|
241
194
|
function css(strings, ...exprs) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
return evaluateDtExpressions(raw, dt);
|
|
245
|
-
}
|
|
246
|
-
return resolve(strings, { dt });
|
|
195
|
+
if (strings instanceof Array) return evaluateDtExpressions(strings.reduce((acc, str, i) => acc + str + (resolve(exprs[i], { dt }) ?? ""), ""), dt);
|
|
196
|
+
return resolve(strings, { dt });
|
|
247
197
|
}
|
|
248
|
-
|
|
249
198
|
const $t = (theme = {}) => {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
199
|
+
let { preset: _preset, options: _options } = theme;
|
|
200
|
+
return {
|
|
201
|
+
preset(value) {
|
|
202
|
+
_preset = _preset ? mergeKeys(_preset, value) : value;
|
|
203
|
+
return this;
|
|
204
|
+
},
|
|
205
|
+
options(value) {
|
|
206
|
+
_options = _options ? {
|
|
207
|
+
..._options,
|
|
208
|
+
...value
|
|
209
|
+
} : value;
|
|
210
|
+
return this;
|
|
211
|
+
},
|
|
212
|
+
primaryPalette(primary) {
|
|
213
|
+
const { semantic } = _preset || {};
|
|
214
|
+
_preset = {
|
|
215
|
+
..._preset,
|
|
216
|
+
semantic: {
|
|
217
|
+
...semantic,
|
|
218
|
+
primary
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
return this;
|
|
222
|
+
},
|
|
223
|
+
surfacePalette(surface) {
|
|
224
|
+
const { semantic } = _preset || {};
|
|
225
|
+
const lightSurface = surface && Object.hasOwn(surface, "light") ? surface.light : surface;
|
|
226
|
+
const darkSurface = surface && Object.hasOwn(surface, "dark") ? surface.dark : surface;
|
|
227
|
+
const newColorScheme = { colorScheme: {
|
|
228
|
+
light: {
|
|
229
|
+
...semantic?.colorScheme?.light,
|
|
230
|
+
...!!lightSurface && { surface: lightSurface }
|
|
231
|
+
},
|
|
232
|
+
dark: {
|
|
233
|
+
...semantic?.colorScheme?.dark,
|
|
234
|
+
...!!darkSurface && { surface: darkSurface }
|
|
235
|
+
}
|
|
236
|
+
} };
|
|
237
|
+
_preset = {
|
|
238
|
+
..._preset,
|
|
239
|
+
semantic: {
|
|
240
|
+
...semantic,
|
|
241
|
+
...newColorScheme
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
return this;
|
|
245
|
+
},
|
|
246
|
+
define({ useDefaultPreset = false, useDefaultOptions = false } = {}) {
|
|
247
|
+
return {
|
|
248
|
+
preset: useDefaultPreset ? config_default.getPreset() : _preset,
|
|
249
|
+
options: useDefaultOptions ? config_default.getOptions() : _options
|
|
250
|
+
};
|
|
251
|
+
},
|
|
252
|
+
update({ mergePresets = true, mergeOptions = true } = {}) {
|
|
253
|
+
const newTheme = {
|
|
254
|
+
preset: mergePresets ? mergeKeys(config_default.getPreset(), _preset) : _preset,
|
|
255
|
+
options: mergeOptions ? {
|
|
256
|
+
...config_default.getOptions(),
|
|
257
|
+
..._options
|
|
258
|
+
} : _options
|
|
259
|
+
};
|
|
260
|
+
config_default.setTheme(newTheme);
|
|
261
|
+
return newTheme;
|
|
262
|
+
},
|
|
263
|
+
use(options) {
|
|
264
|
+
const newTheme = this.define(options);
|
|
265
|
+
config_default.setTheme(newTheme);
|
|
266
|
+
return newTheme;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
300
269
|
};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
css: getRule(selector, declarations)
|
|
336
|
-
};
|
|
270
|
+
function toVariables_default(theme, options = {}) {
|
|
271
|
+
const VARIABLE = config_default.defaults.variable;
|
|
272
|
+
const { prefix = VARIABLE.prefix, selector = VARIABLE.selector, excludedKeyRegex = VARIABLE.excludedKeyRegex } = options;
|
|
273
|
+
const tokens = [];
|
|
274
|
+
const variables = [];
|
|
275
|
+
const stack = [{
|
|
276
|
+
node: theme,
|
|
277
|
+
path: prefix
|
|
278
|
+
}];
|
|
279
|
+
while (stack.length) {
|
|
280
|
+
const { node, path } = stack.pop();
|
|
281
|
+
for (const key in node) {
|
|
282
|
+
const raw = node[key];
|
|
283
|
+
const val = toValue(raw);
|
|
284
|
+
const variablePath = matchRegex(key, excludedKeyRegex) ? toNormalizeVariable(path) : toNormalizeVariable(path, toKebabCase(key));
|
|
285
|
+
if (isObject(val)) stack.push({
|
|
286
|
+
node: val,
|
|
287
|
+
path: variablePath
|
|
288
|
+
});
|
|
289
|
+
else {
|
|
290
|
+
setProperty(variables, getVariableName(variablePath), getVariableValue(val, variablePath, prefix, [excludedKeyRegex]));
|
|
291
|
+
let token = variablePath;
|
|
292
|
+
if (prefix && token.startsWith(prefix + "-")) token = token.slice(prefix.length + 1);
|
|
293
|
+
tokens.push(token.replace(/-/g, "."));
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
const declarations = variables.join("");
|
|
298
|
+
return {
|
|
299
|
+
value: variables,
|
|
300
|
+
tokens,
|
|
301
|
+
declarations,
|
|
302
|
+
css: getRule(selector, declarations)
|
|
303
|
+
};
|
|
337
304
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
305
|
+
var themeUtils_default = {
|
|
306
|
+
regex: {
|
|
307
|
+
rules: {
|
|
308
|
+
class: {
|
|
309
|
+
pattern: /^\.([a-zA-Z][\w-]*)$/,
|
|
310
|
+
resolve(value) {
|
|
311
|
+
return {
|
|
312
|
+
type: "class",
|
|
313
|
+
selector: value,
|
|
314
|
+
matched: this.pattern.test(value.trim())
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
attr: {
|
|
319
|
+
pattern: /^\[(.*)\]$/,
|
|
320
|
+
resolve(value) {
|
|
321
|
+
return {
|
|
322
|
+
type: "attr",
|
|
323
|
+
selector: `:root${value},:host${value}`,
|
|
324
|
+
matched: this.pattern.test(value.trim())
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
media: {
|
|
329
|
+
pattern: /^@media (.*)$/,
|
|
330
|
+
resolve(value) {
|
|
331
|
+
return {
|
|
332
|
+
type: "media",
|
|
333
|
+
selector: value,
|
|
334
|
+
matched: this.pattern.test(value.trim())
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
system: {
|
|
339
|
+
pattern: /^system$/,
|
|
340
|
+
resolve(value) {
|
|
341
|
+
return {
|
|
342
|
+
type: "system",
|
|
343
|
+
selector: "@media (prefers-color-scheme: dark)",
|
|
344
|
+
matched: this.pattern.test(value.trim())
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
custom: { resolve(value) {
|
|
349
|
+
return {
|
|
350
|
+
type: "custom",
|
|
351
|
+
selector: value,
|
|
352
|
+
matched: true
|
|
353
|
+
};
|
|
354
|
+
} }
|
|
355
|
+
},
|
|
356
|
+
resolve(value) {
|
|
357
|
+
const rules = Object.keys(this.rules).filter((k) => k !== "custom").map((r) => this.rules[r]);
|
|
358
|
+
return [value].flat().map((v) => rules.map((r) => r.resolve(v)).find((rr) => rr.matched) ?? this.rules.custom.resolve(v));
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
_toVariables(theme, options) {
|
|
362
|
+
return toVariables_default(theme, { prefix: options?.prefix });
|
|
363
|
+
},
|
|
364
|
+
getCommon({ name = "", theme = {}, params, set, defaults }) {
|
|
365
|
+
const { preset, options } = theme;
|
|
366
|
+
let primitive_css, primitive_tokens, semantic_css, semantic_tokens, global_css, global_tokens, style;
|
|
367
|
+
if (isNotEmpty(preset) && options.transform !== "strict") {
|
|
368
|
+
const { primitive, semantic, extend } = preset;
|
|
369
|
+
const { colorScheme, ...sRest } = semantic || {};
|
|
370
|
+
const { colorScheme: eColorScheme, ...eRest } = extend || {};
|
|
371
|
+
const { dark, ...csRest } = colorScheme || {};
|
|
372
|
+
const { dark: eDark, ...ecsRest } = eColorScheme || {};
|
|
373
|
+
const prim_var = isNotEmpty(primitive) ? this._toVariables({ primitive }, options) : {};
|
|
374
|
+
const sRest_var = isNotEmpty(sRest) ? this._toVariables({ semantic: sRest }, options) : {};
|
|
375
|
+
const csRest_var = isNotEmpty(csRest) ? this._toVariables({ light: csRest }, options) : {};
|
|
376
|
+
const csDark_var = isNotEmpty(dark) ? this._toVariables({ dark }, options) : {};
|
|
377
|
+
const eRest_var = isNotEmpty(eRest) ? this._toVariables({ semantic: eRest }, options) : {};
|
|
378
|
+
const ecsRest_var = isNotEmpty(ecsRest) ? this._toVariables({ light: ecsRest }, options) : {};
|
|
379
|
+
const ecsDark_var = isNotEmpty(eDark) ? this._toVariables({ dark: eDark }, options) : {};
|
|
380
|
+
const [prim_css, prim_tokens] = [prim_var.declarations ?? "", prim_var.tokens];
|
|
381
|
+
const [sRest_css, sRest_tokens] = [sRest_var.declarations ?? "", sRest_var.tokens || []];
|
|
382
|
+
const [csRest_css, csRest_tokens] = [csRest_var.declarations ?? "", csRest_var.tokens || []];
|
|
383
|
+
const [csDark_css, csDark_tokens] = [csDark_var.declarations ?? "", csDark_var.tokens || []];
|
|
384
|
+
const [eRest_css, eRest_tokens] = [eRest_var.declarations ?? "", eRest_var.tokens || []];
|
|
385
|
+
const [ecsRest_css, ecsRest_tokens] = [ecsRest_var.declarations ?? "", ecsRest_var.tokens || []];
|
|
386
|
+
const [ecsDark_css, ecsDark_tokens] = [ecsDark_var.declarations ?? "", ecsDark_var.tokens || []];
|
|
387
|
+
primitive_css = this.transformCSS(name, prim_css, "light", "variable", options, set, defaults);
|
|
388
|
+
primitive_tokens = prim_tokens;
|
|
389
|
+
semantic_css = `${this.transformCSS(name, `${sRest_css}${csRest_css}`, "light", "variable", options, set, defaults)}${this.transformCSS(name, `${csDark_css}`, "dark", "variable", options, set, defaults)}`;
|
|
390
|
+
semantic_tokens = [.../* @__PURE__ */ new Set([
|
|
391
|
+
...sRest_tokens,
|
|
392
|
+
...csRest_tokens,
|
|
393
|
+
...csDark_tokens
|
|
394
|
+
])];
|
|
395
|
+
global_css = `${this.transformCSS(name, `${eRest_css}${ecsRest_css}color-scheme:light`, "light", "variable", options, set, defaults)}${this.transformCSS(name, `${ecsDark_css}color-scheme:dark`, "dark", "variable", options, set, defaults)}`;
|
|
396
|
+
global_tokens = [.../* @__PURE__ */ new Set([
|
|
397
|
+
...eRest_tokens,
|
|
398
|
+
...ecsRest_tokens,
|
|
399
|
+
...ecsDark_tokens
|
|
400
|
+
])];
|
|
401
|
+
style = resolve(preset.css, { dt });
|
|
402
|
+
}
|
|
403
|
+
return {
|
|
404
|
+
primitive: {
|
|
405
|
+
css: primitive_css,
|
|
406
|
+
tokens: primitive_tokens
|
|
407
|
+
},
|
|
408
|
+
semantic: {
|
|
409
|
+
css: semantic_css,
|
|
410
|
+
tokens: semantic_tokens
|
|
411
|
+
},
|
|
412
|
+
global: {
|
|
413
|
+
css: global_css,
|
|
414
|
+
tokens: global_tokens
|
|
415
|
+
},
|
|
416
|
+
style
|
|
417
|
+
};
|
|
418
|
+
},
|
|
419
|
+
getPreset({ name = "", preset = {}, options, params, set, defaults, selector }) {
|
|
420
|
+
let p_css, p_tokens, p_style;
|
|
421
|
+
if (isNotEmpty(preset) && options.transform !== "strict") {
|
|
422
|
+
const _name = name.replace("-directive", "");
|
|
423
|
+
const { colorScheme, extend, css, ...vRest } = preset;
|
|
424
|
+
const { colorScheme: eColorScheme, ...evRest } = extend || {};
|
|
425
|
+
const { dark, ...csRest } = colorScheme || {};
|
|
426
|
+
const { dark: ecsDark, ...ecsRest } = eColorScheme || {};
|
|
427
|
+
const vRest_var = isNotEmpty(vRest) ? this._toVariables({ [_name]: {
|
|
428
|
+
...vRest,
|
|
429
|
+
...evRest
|
|
430
|
+
} }, options) : {};
|
|
431
|
+
const csRest_var = isNotEmpty(csRest) ? this._toVariables({ [_name]: {
|
|
432
|
+
...csRest,
|
|
433
|
+
...ecsRest
|
|
434
|
+
} }, options) : {};
|
|
435
|
+
const csDark_var = isNotEmpty(dark) ? this._toVariables({ [_name]: {
|
|
436
|
+
...dark,
|
|
437
|
+
...ecsDark
|
|
438
|
+
} }, options) : {};
|
|
439
|
+
const [vRest_css, vRest_tokens] = [vRest_var.declarations ?? "", vRest_var.tokens || []];
|
|
440
|
+
const [csRest_css, csRest_tokens] = [csRest_var.declarations ?? "", csRest_var.tokens || []];
|
|
441
|
+
const [csDark_css, csDark_tokens] = [csDark_var.declarations ?? "", csDark_var.tokens || []];
|
|
442
|
+
p_css = `${this.transformCSS(_name, `${vRest_css}${csRest_css}`, "light", "variable", options, set, defaults, selector)}${this.transformCSS(_name, csDark_css, "dark", "variable", options, set, defaults, selector)}`;
|
|
443
|
+
p_tokens = [.../* @__PURE__ */ new Set([
|
|
444
|
+
...vRest_tokens,
|
|
445
|
+
...csRest_tokens,
|
|
446
|
+
...csDark_tokens
|
|
447
|
+
])];
|
|
448
|
+
p_style = resolve(css, { dt });
|
|
449
|
+
}
|
|
450
|
+
return {
|
|
451
|
+
css: p_css,
|
|
452
|
+
tokens: p_tokens,
|
|
453
|
+
style: p_style
|
|
454
|
+
};
|
|
455
|
+
},
|
|
456
|
+
getPresetC({ name = "", theme = {}, params, set, defaults }) {
|
|
457
|
+
const { preset, options } = theme;
|
|
458
|
+
const cPreset = preset?.components?.[name];
|
|
459
|
+
return this.getPreset({
|
|
460
|
+
name,
|
|
461
|
+
preset: cPreset,
|
|
462
|
+
options,
|
|
463
|
+
params,
|
|
464
|
+
set,
|
|
465
|
+
defaults
|
|
466
|
+
});
|
|
467
|
+
},
|
|
468
|
+
getPresetD({ name = "", theme = {}, params, set, defaults }) {
|
|
469
|
+
const dName = name.replace("-directive", "");
|
|
470
|
+
const { preset, options } = theme;
|
|
471
|
+
const dPreset = preset?.components?.[dName] || preset?.directives?.[dName];
|
|
472
|
+
return this.getPreset({
|
|
473
|
+
name: dName,
|
|
474
|
+
preset: dPreset,
|
|
475
|
+
options,
|
|
476
|
+
params,
|
|
477
|
+
set,
|
|
478
|
+
defaults
|
|
479
|
+
});
|
|
480
|
+
},
|
|
481
|
+
applyDarkColorScheme(options) {
|
|
482
|
+
return !(options.darkModeSelector === "none" || options.darkModeSelector === false);
|
|
483
|
+
},
|
|
484
|
+
getColorSchemeOption(options, defaults) {
|
|
485
|
+
return this.applyDarkColorScheme(options) ? this.regex.resolve(options.darkModeSelector === true ? defaults.options.darkModeSelector : options.darkModeSelector ?? defaults.options.darkModeSelector) : [];
|
|
486
|
+
},
|
|
487
|
+
getLayerOrder(name, options = {}, params, defaults) {
|
|
488
|
+
const { cssLayer } = options;
|
|
489
|
+
if (cssLayer) return `@layer ${resolve(cssLayer.order || cssLayer.name || "primeui", params)}`;
|
|
490
|
+
return "";
|
|
491
|
+
},
|
|
492
|
+
getCommonStyleSheet({ name = "", theme = {}, params, props = {}, set, defaults }) {
|
|
493
|
+
const common = this.getCommon({
|
|
494
|
+
name,
|
|
495
|
+
theme,
|
|
496
|
+
params,
|
|
497
|
+
set,
|
|
498
|
+
defaults
|
|
499
|
+
});
|
|
500
|
+
const _props = Object.entries(props).reduce((acc, [k, v]) => acc.push(`${k}="${v}"`) && acc, []).join(" ");
|
|
501
|
+
return Object.entries(common || {}).reduce((acc, [key, value]) => {
|
|
502
|
+
if (isObject(value) && Object.hasOwn(value, "css")) {
|
|
503
|
+
const _css = minifyCSS(value.css);
|
|
504
|
+
const id = `${key}-variables`;
|
|
505
|
+
acc.push(`<style type="text/css" data-primevue-style-id="${id}" ${_props}>${_css}</style>`);
|
|
506
|
+
}
|
|
507
|
+
return acc;
|
|
508
|
+
}, []).join("");
|
|
509
|
+
},
|
|
510
|
+
getStyleSheet({ name = "", theme = {}, params, props = {}, set, defaults }) {
|
|
511
|
+
const options = {
|
|
512
|
+
name,
|
|
513
|
+
theme,
|
|
514
|
+
params,
|
|
515
|
+
set,
|
|
516
|
+
defaults
|
|
517
|
+
};
|
|
518
|
+
const preset_css = (name.includes("-directive") ? this.getPresetD(options) : this.getPresetC(options))?.css;
|
|
519
|
+
const _props = Object.entries(props).reduce((acc, [k, v]) => acc.push(`${k}="${v}"`) && acc, []).join(" ");
|
|
520
|
+
return preset_css ? `<style type="text/css" data-primevue-style-id="${name}-variables" ${_props}>${minifyCSS(preset_css)}</style>` : "";
|
|
521
|
+
},
|
|
522
|
+
createTokens(obj = {}, defaults, parentKey = "", parentPath = "", tokens = {}) {
|
|
523
|
+
const computedFn = function(colorScheme, tokenPathMap = {}, stack = []) {
|
|
524
|
+
if (stack.includes(this.path)) {
|
|
525
|
+
console.warn(`Circular reference detected at ${this.path}`);
|
|
526
|
+
return {
|
|
527
|
+
colorScheme,
|
|
528
|
+
path: this.path,
|
|
529
|
+
paths: tokenPathMap,
|
|
530
|
+
value: void 0
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
stack.push(this.path);
|
|
534
|
+
tokenPathMap["name"] = this.path;
|
|
535
|
+
tokenPathMap["binding"] ||= {};
|
|
536
|
+
let computedValue = this.value;
|
|
537
|
+
if (typeof this.value === "string" && EXPR_REGEX.test(this.value)) {
|
|
538
|
+
const _val = this.value.trim().replace(EXPR_REGEX, (v) => {
|
|
539
|
+
const refPath = v.slice(1, -1);
|
|
540
|
+
const refToken = this.tokens[refPath];
|
|
541
|
+
if (!refToken) {
|
|
542
|
+
console.warn(`Token not found for path: ${refPath}`);
|
|
543
|
+
return `__UNRESOLVED__`;
|
|
544
|
+
}
|
|
545
|
+
const computed = refToken.computed(colorScheme, tokenPathMap, stack);
|
|
546
|
+
if (Array.isArray(computed) && computed.length === 2) return `light-dark(${computed[0].value},${computed[1].value})`;
|
|
547
|
+
else return computed?.value ?? `__UNRESOLVED__`;
|
|
548
|
+
});
|
|
549
|
+
computedValue = CALC_REGEX.test(_val.replace(VAR_REGEX, "0")) ? `calc(${_val})` : _val;
|
|
550
|
+
}
|
|
551
|
+
if (isEmpty(tokenPathMap["binding"])) delete tokenPathMap["binding"];
|
|
552
|
+
stack.pop();
|
|
553
|
+
return {
|
|
554
|
+
colorScheme,
|
|
555
|
+
path: this.path,
|
|
556
|
+
paths: tokenPathMap,
|
|
557
|
+
value: computedValue.includes("__UNRESOLVED__") ? void 0 : computedValue
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
const traverse = (obj, parentKey, parentPath) => {
|
|
561
|
+
Object.entries(obj).forEach(([key, value]) => {
|
|
562
|
+
const currentKey = matchRegex(key, defaults.variable.excludedKeyRegex) ? parentKey : parentKey ? `${parentKey}.${toTokenKey(key)}` : toTokenKey(key);
|
|
563
|
+
const currentPath = parentPath ? `${parentPath}.${key}` : key;
|
|
564
|
+
if (isObject(value)) traverse(value, currentKey, currentPath);
|
|
565
|
+
else {
|
|
566
|
+
if (!tokens[currentKey]) tokens[currentKey] = {
|
|
567
|
+
paths: [],
|
|
568
|
+
computed: (colorScheme, tokenPathMap = {}, stack = []) => {
|
|
569
|
+
if (tokens[currentKey].paths.length === 1) return tokens[currentKey].paths[0].computed(tokens[currentKey].paths[0].scheme, tokenPathMap["binding"], stack);
|
|
570
|
+
else if (colorScheme && colorScheme !== "none") for (let i = 0; i < tokens[currentKey].paths.length; i++) {
|
|
571
|
+
const p = tokens[currentKey].paths[i];
|
|
572
|
+
if (p.scheme === colorScheme) return p.computed(colorScheme, tokenPathMap["binding"], stack);
|
|
573
|
+
}
|
|
574
|
+
return tokens[currentKey].paths.map((p) => p.computed(p.scheme, tokenPathMap[p.scheme], stack));
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
tokens[currentKey].paths.push({
|
|
578
|
+
path: currentPath,
|
|
579
|
+
value,
|
|
580
|
+
scheme: currentPath.includes("colorScheme.light") ? "light" : currentPath.includes("colorScheme.dark") ? "dark" : "none",
|
|
581
|
+
computed: computedFn,
|
|
582
|
+
tokens
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
};
|
|
587
|
+
traverse(obj, parentKey, parentPath);
|
|
588
|
+
return tokens;
|
|
589
|
+
},
|
|
590
|
+
getTokenValue(tokens, path, defaults) {
|
|
591
|
+
const normalizePath = (str) => {
|
|
592
|
+
return str.split(".").filter((s) => !matchRegex(s.toLowerCase(), defaults.variable.excludedKeyRegex)).join(".");
|
|
593
|
+
};
|
|
594
|
+
const token = normalizePath(path);
|
|
595
|
+
const colorScheme = path.includes("colorScheme.light") ? "light" : path.includes("colorScheme.dark") ? "dark" : void 0;
|
|
596
|
+
const computedValues = [tokens[token]?.computed(colorScheme)].flat().filter((computed) => computed);
|
|
597
|
+
return computedValues.length === 1 ? computedValues[0].value : computedValues.reduce((acc = {}, computed) => {
|
|
598
|
+
const { colorScheme: cs, ...rest } = computed;
|
|
599
|
+
acc[cs] = rest;
|
|
600
|
+
return acc;
|
|
601
|
+
}, void 0);
|
|
602
|
+
},
|
|
603
|
+
getSelectorRule(selector1, selector2, type, css) {
|
|
604
|
+
return type === "class" || type === "attr" ? getRule(isNotEmpty(selector2) ? `${selector1}${selector2},${selector1} ${selector2}` : selector1, css) : getRule(selector1, getRule(selector2 ?? ":root,:host", css));
|
|
605
|
+
},
|
|
606
|
+
transformCSS(name, css, mode, type, options = {}, set, defaults, selector) {
|
|
607
|
+
if (isNotEmpty(css)) {
|
|
608
|
+
const { cssLayer } = options;
|
|
609
|
+
if (type !== "style") {
|
|
610
|
+
const colorSchemeOption = this.getColorSchemeOption(options, defaults);
|
|
611
|
+
css = mode === "dark" ? colorSchemeOption.reduce((acc, { type, selector: _selector }) => {
|
|
612
|
+
if (isNotEmpty(_selector)) acc += _selector.includes("[CSS]") ? _selector.replace("[CSS]", css) : this.getSelectorRule(_selector, selector, type, css);
|
|
613
|
+
return acc;
|
|
614
|
+
}, "") : getRule(selector ?? ":root,:host", css);
|
|
615
|
+
}
|
|
616
|
+
if (cssLayer) {
|
|
617
|
+
const layerOptions = {
|
|
618
|
+
name: "primeui",
|
|
619
|
+
order: "primeui"
|
|
620
|
+
};
|
|
621
|
+
isObject(cssLayer) && (layerOptions.name = resolve(cssLayer.name, {
|
|
622
|
+
name,
|
|
623
|
+
type
|
|
624
|
+
}));
|
|
625
|
+
if (isNotEmpty(layerOptions.name)) {
|
|
626
|
+
css = getRule(`@layer ${layerOptions.name}`, css);
|
|
627
|
+
set?.layerNames(layerOptions.name);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
return css;
|
|
631
|
+
}
|
|
632
|
+
return "";
|
|
633
|
+
}
|
|
644
634
|
};
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
635
|
+
var config_default = {
|
|
636
|
+
defaults: {
|
|
637
|
+
variable: {
|
|
638
|
+
prefix: "h",
|
|
639
|
+
selector: ":root,:host",
|
|
640
|
+
excludedKeyRegex: /^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi
|
|
641
|
+
},
|
|
642
|
+
options: {
|
|
643
|
+
prefix: "h",
|
|
644
|
+
darkModeSelector: "system",
|
|
645
|
+
cssLayer: false
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
_theme: void 0,
|
|
649
|
+
_layerNames: /* @__PURE__ */ new Set(),
|
|
650
|
+
_loadedStyleNames: /* @__PURE__ */ new Set(),
|
|
651
|
+
_loadingStyles: /* @__PURE__ */ new Set(),
|
|
652
|
+
_tokens: {},
|
|
653
|
+
update(newValues = {}) {
|
|
654
|
+
const { theme } = newValues;
|
|
655
|
+
if (theme) {
|
|
656
|
+
this._theme = {
|
|
657
|
+
...theme,
|
|
658
|
+
options: {
|
|
659
|
+
...this.defaults.options,
|
|
660
|
+
...theme.options
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
this._tokens = themeUtils_default.createTokens(this.preset, this.defaults);
|
|
664
|
+
this.clearLoadedStyleNames();
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
get theme() {
|
|
668
|
+
return this._theme;
|
|
669
|
+
},
|
|
670
|
+
get preset() {
|
|
671
|
+
return this.theme?.preset || {};
|
|
672
|
+
},
|
|
673
|
+
get options() {
|
|
674
|
+
return this.theme?.options || {};
|
|
675
|
+
},
|
|
676
|
+
get tokens() {
|
|
677
|
+
return this._tokens;
|
|
678
|
+
},
|
|
679
|
+
getTheme() {
|
|
680
|
+
return this.theme;
|
|
681
|
+
},
|
|
682
|
+
setTheme(newValue) {
|
|
683
|
+
this.update({ theme: newValue });
|
|
684
|
+
ThemeService.emit("theme:change", newValue);
|
|
685
|
+
},
|
|
686
|
+
getPreset() {
|
|
687
|
+
return this.preset;
|
|
688
|
+
},
|
|
689
|
+
setPreset(newValue) {
|
|
690
|
+
this._theme = {
|
|
691
|
+
...this.theme,
|
|
692
|
+
preset: newValue
|
|
693
|
+
};
|
|
694
|
+
this._tokens = themeUtils_default.createTokens(newValue, this.defaults);
|
|
695
|
+
this.clearLoadedStyleNames();
|
|
696
|
+
ThemeService.emit("preset:change", newValue);
|
|
697
|
+
ThemeService.emit("theme:change", this.theme);
|
|
698
|
+
},
|
|
699
|
+
getOptions() {
|
|
700
|
+
return this.options;
|
|
701
|
+
},
|
|
702
|
+
setOptions(newValue) {
|
|
703
|
+
this._theme = {
|
|
704
|
+
...this.theme,
|
|
705
|
+
options: newValue
|
|
706
|
+
};
|
|
707
|
+
this.clearLoadedStyleNames();
|
|
708
|
+
ThemeService.emit("options:change", newValue);
|
|
709
|
+
ThemeService.emit("theme:change", this.theme);
|
|
710
|
+
},
|
|
711
|
+
getLayerNames() {
|
|
712
|
+
return [...this._layerNames];
|
|
713
|
+
},
|
|
714
|
+
setLayerNames(layerName) {
|
|
715
|
+
this._layerNames.add(layerName);
|
|
716
|
+
},
|
|
717
|
+
getLoadedStyleNames() {
|
|
718
|
+
return this._loadedStyleNames;
|
|
719
|
+
},
|
|
720
|
+
isStyleNameLoaded(name) {
|
|
721
|
+
return this._loadedStyleNames.has(name);
|
|
722
|
+
},
|
|
723
|
+
setLoadedStyleName(name) {
|
|
724
|
+
this._loadedStyleNames.add(name);
|
|
725
|
+
},
|
|
726
|
+
deleteLoadedStyleName(name) {
|
|
727
|
+
this._loadedStyleNames.delete(name);
|
|
728
|
+
},
|
|
729
|
+
clearLoadedStyleNames() {
|
|
730
|
+
this._loadedStyleNames.clear();
|
|
731
|
+
},
|
|
732
|
+
getTokenValue(tokenPath) {
|
|
733
|
+
return themeUtils_default.getTokenValue(this.tokens, tokenPath, this.defaults);
|
|
734
|
+
},
|
|
735
|
+
getCommon(name = "", params) {
|
|
736
|
+
return themeUtils_default.getCommon({
|
|
737
|
+
name,
|
|
738
|
+
theme: this.theme,
|
|
739
|
+
params,
|
|
740
|
+
defaults: this.defaults,
|
|
741
|
+
set: { layerNames: this.setLayerNames.bind(this) }
|
|
742
|
+
});
|
|
743
|
+
},
|
|
744
|
+
getComponent(name = "", params) {
|
|
745
|
+
const options = {
|
|
746
|
+
name,
|
|
747
|
+
theme: this.theme,
|
|
748
|
+
params,
|
|
749
|
+
defaults: this.defaults,
|
|
750
|
+
set: { layerNames: this.setLayerNames.bind(this) }
|
|
751
|
+
};
|
|
752
|
+
return themeUtils_default.getPresetC(options);
|
|
753
|
+
},
|
|
754
|
+
getDirective(name = "", params) {
|
|
755
|
+
const options = {
|
|
756
|
+
name,
|
|
757
|
+
theme: this.theme,
|
|
758
|
+
params,
|
|
759
|
+
defaults: this.defaults,
|
|
760
|
+
set: { layerNames: this.setLayerNames.bind(this) }
|
|
761
|
+
};
|
|
762
|
+
return themeUtils_default.getPresetD(options);
|
|
763
|
+
},
|
|
764
|
+
getCustomPreset(name = "", preset, selector, params) {
|
|
765
|
+
const options = {
|
|
766
|
+
name,
|
|
767
|
+
preset,
|
|
768
|
+
options: this.options,
|
|
769
|
+
selector,
|
|
770
|
+
params,
|
|
771
|
+
defaults: this.defaults,
|
|
772
|
+
set: { layerNames: this.setLayerNames.bind(this) }
|
|
773
|
+
};
|
|
774
|
+
return themeUtils_default.getPreset(options);
|
|
775
|
+
},
|
|
776
|
+
getLayerOrderCSS(name = "") {
|
|
777
|
+
return themeUtils_default.getLayerOrder(name, this.options, { names: this.getLayerNames() }, this.defaults);
|
|
778
|
+
},
|
|
779
|
+
transformCSS(name = "", css, type = "style", mode) {
|
|
780
|
+
return themeUtils_default.transformCSS(name, css, mode, type, this.options, { layerNames: this.setLayerNames.bind(this) }, this.defaults);
|
|
781
|
+
},
|
|
782
|
+
getCommonStyleSheet(name = "", params, props = {}) {
|
|
783
|
+
return themeUtils_default.getCommonStyleSheet({
|
|
784
|
+
name,
|
|
785
|
+
theme: this.theme,
|
|
786
|
+
params,
|
|
787
|
+
props,
|
|
788
|
+
defaults: this.defaults,
|
|
789
|
+
set: { layerNames: this.setLayerNames.bind(this) }
|
|
790
|
+
});
|
|
791
|
+
},
|
|
792
|
+
getStyleSheet(name, params, props = {}) {
|
|
793
|
+
return themeUtils_default.getStyleSheet({
|
|
794
|
+
name,
|
|
795
|
+
theme: this.theme,
|
|
796
|
+
params,
|
|
797
|
+
props,
|
|
798
|
+
defaults: this.defaults,
|
|
799
|
+
set: { layerNames: this.setLayerNames.bind(this) }
|
|
800
|
+
});
|
|
801
|
+
},
|
|
802
|
+
onStyleMounted(name) {
|
|
803
|
+
this._loadingStyles.add(name);
|
|
804
|
+
},
|
|
805
|
+
onStyleUpdated(name) {
|
|
806
|
+
this._loadingStyles.add(name);
|
|
807
|
+
},
|
|
808
|
+
onStyleLoaded(event, { name }) {
|
|
809
|
+
if (this._loadingStyles.size) {
|
|
810
|
+
this._loadingStyles.delete(name);
|
|
811
|
+
ThemeService.emit(`theme:${name}:load`, event);
|
|
812
|
+
!this._loadingStyles.size && ThemeService.emit("theme:load");
|
|
813
|
+
}
|
|
814
|
+
}
|
|
781
815
|
};
|
|
782
|
-
|
|
783
816
|
function updatePreset(...presets) {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
817
|
+
const newPreset = deepMerge(config_default.getPreset(), ...presets);
|
|
818
|
+
config_default.setPreset(newPreset);
|
|
819
|
+
return newPreset;
|
|
787
820
|
}
|
|
788
|
-
|
|
789
821
|
function updatePrimaryPalette(palette) {
|
|
790
|
-
|
|
822
|
+
return $t().primaryPalette(palette).update().preset;
|
|
791
823
|
}
|
|
792
|
-
|
|
793
824
|
function updateSurfacePalette(palette) {
|
|
794
|
-
|
|
825
|
+
return $t().surfacePalette(palette).update().preset;
|
|
795
826
|
}
|
|
796
|
-
|
|
797
827
|
function usePreset(...presets) {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
828
|
+
const newPreset = deepMerge(...presets);
|
|
829
|
+
config_default.setPreset(newPreset);
|
|
830
|
+
return newPreset;
|
|
801
831
|
}
|
|
802
|
-
|
|
803
832
|
function useTheme(theme) {
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
class StyleSheet {
|
|
808
|
-
_styles;
|
|
809
|
-
_attrs;
|
|
810
|
-
constructor({ attrs } = {}) {
|
|
811
|
-
this._styles = new Map();
|
|
812
|
-
this._attrs = attrs || {};
|
|
813
|
-
}
|
|
814
|
-
get(key) {
|
|
815
|
-
return this._styles.get(key);
|
|
816
|
-
}
|
|
817
|
-
has(key) {
|
|
818
|
-
return this._styles.has(key);
|
|
819
|
-
}
|
|
820
|
-
delete(key) {
|
|
821
|
-
this._styles.delete(key);
|
|
822
|
-
}
|
|
823
|
-
clear() {
|
|
824
|
-
this._styles.clear();
|
|
825
|
-
}
|
|
826
|
-
add(key, css) {
|
|
827
|
-
if (isNotEmpty(css)) {
|
|
828
|
-
const meta = {
|
|
829
|
-
name: key,
|
|
830
|
-
css,
|
|
831
|
-
attrs: this._attrs,
|
|
832
|
-
markup: createStyleMarkup(css, this._attrs)
|
|
833
|
-
};
|
|
834
|
-
this._styles.set(key, {
|
|
835
|
-
...meta,
|
|
836
|
-
element: this.createStyleElement(meta)
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
update() {
|
|
841
|
-
// @todo
|
|
842
|
-
}
|
|
843
|
-
getStyles() {
|
|
844
|
-
return this._styles;
|
|
845
|
-
}
|
|
846
|
-
getAllCSS() {
|
|
847
|
-
return [...this._styles.values()].map((style) => style.css).filter(String);
|
|
848
|
-
}
|
|
849
|
-
getAllMarkup() {
|
|
850
|
-
return [...this._styles.values()].map((style) => style.markup).filter(String);
|
|
851
|
-
}
|
|
852
|
-
getAllElements() {
|
|
853
|
-
return [...this._styles.values()].map((style) => style.element);
|
|
854
|
-
}
|
|
855
|
-
/**
|
|
856
|
-
* Used to create a style element.
|
|
857
|
-
*
|
|
858
|
-
* @param {StyleMeta} meta
|
|
859
|
-
* @returns {HTMLStyleElement | undefined}
|
|
860
|
-
*/
|
|
861
|
-
createStyleElement(meta = {}) {
|
|
862
|
-
return undefined;
|
|
863
|
-
}
|
|
833
|
+
return $t(theme).update({ mergePresets: false });
|
|
864
834
|
}
|
|
835
|
+
var StyleSheet = class {
|
|
836
|
+
_styles;
|
|
837
|
+
_attrs;
|
|
838
|
+
constructor({ attrs } = {}) {
|
|
839
|
+
this._styles = /* @__PURE__ */ new Map();
|
|
840
|
+
this._attrs = attrs || {};
|
|
841
|
+
}
|
|
842
|
+
get(key) {
|
|
843
|
+
return this._styles.get(key);
|
|
844
|
+
}
|
|
845
|
+
has(key) {
|
|
846
|
+
return this._styles.has(key);
|
|
847
|
+
}
|
|
848
|
+
delete(key) {
|
|
849
|
+
this._styles.delete(key);
|
|
850
|
+
}
|
|
851
|
+
clear() {
|
|
852
|
+
this._styles.clear();
|
|
853
|
+
}
|
|
854
|
+
add(key, css) {
|
|
855
|
+
if (isNotEmpty(css)) {
|
|
856
|
+
const meta = {
|
|
857
|
+
name: key,
|
|
858
|
+
css,
|
|
859
|
+
attrs: this._attrs,
|
|
860
|
+
markup: createStyleMarkup(css, this._attrs)
|
|
861
|
+
};
|
|
862
|
+
this._styles.set(key, {
|
|
863
|
+
...meta,
|
|
864
|
+
element: this.createStyleElement(meta)
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
update() {}
|
|
869
|
+
getStyles() {
|
|
870
|
+
return this._styles;
|
|
871
|
+
}
|
|
872
|
+
getAllCSS() {
|
|
873
|
+
return [...this._styles.values()].map((style) => style.css).filter(String);
|
|
874
|
+
}
|
|
875
|
+
getAllMarkup() {
|
|
876
|
+
return [...this._styles.values()].map((style) => style.markup).filter(String);
|
|
877
|
+
}
|
|
878
|
+
getAllElements() {
|
|
879
|
+
return [...this._styles.values()].map((style) => style.element);
|
|
880
|
+
}
|
|
881
|
+
createStyleElement(meta = {}) {}
|
|
882
|
+
};
|
|
883
|
+
export { $dt, $t, CALC_REGEX, EXPR_REGEX, StyleSheet, config_default as Theme, ThemeService, themeUtils_default as ThemeUtils, VAR_REGEX, css, definePreset, dt, dtwt, evaluateDtExpressions, getComputedValue, getRule, getVariableName, getVariableValue, hasOddBraces, merge, mix_default as mix, palette_default as palette, setProperty, shade_default as shade, tint_default as tint, toNormalizePrefix, toNormalizeVariable, toTokenKey, toUnit, toValue, toVariables_default as toVariables, updatePreset, updatePrimaryPalette, updateSurfacePalette, usePreset, useTheme };
|
|
865
884
|
|
|
866
|
-
|
|
867
|
-
* Generated bundle index. Do not edit.
|
|
868
|
-
*/
|
|
869
|
-
|
|
870
|
-
export { $dt, $t, CALC_REGEX, EXPR_REGEX, StyleSheet, Theme, ThemeService, ThemeUtils, VAR_REGEX, css, definePreset, dt, dtwt, evaluateDtExpressions, getComputedValue, getRule, getVariableName, getVariableValue, hasOddBraces, merge, mix, palette, setProperty, shade, tint, toNormalizePrefix, toNormalizeVariable, toTokenKey, toUnit, toValue, toVariables, updatePreset, updatePrimaryPalette, updateSurfacePalette, usePreset, useTheme };
|
|
871
|
-
//# sourceMappingURL=gravionlabs-helix-core-uix-styled.mjs.map
|
|
885
|
+
//# sourceMappingURL=gravionlabs-helix-core-uix-styled.mjs.map
|