smoothly 0.3.38 → 1.0.0-alpha.10
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/dist/cjs/GoogleFont-6c4f0da1.js +2 -0
- package/dist/cjs/GoogleFont-6c4f0da1.js.map +1 -0
- package/dist/cjs/Listenable-c8d2f8ef.js +2 -0
- package/dist/cjs/Listenable-c8d2f8ef.js.map +1 -0
- package/dist/cjs/getLanguage-430ecf04.js +2 -0
- package/dist/cjs/getLanguage-430ecf04.js.map +1 -0
- package/dist/cjs/{index-de46f836.js → index-8352a4e0.js} +106 -1
- package/dist/cjs/index-8352a4e0.js.map +1 -0
- package/dist/cjs/{index-879bbabb.js → index-b282ee83.js} +3 -1
- package/dist/cjs/index-b282ee83.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -2
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/{smoothly-accordion_53.cjs.entry.js → smoothly-accordion_60.cjs.entry.js} +5430 -460
- package/dist/cjs/smoothly-accordion_60.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js +32 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address.cjs.entry.js +23 -0
- package/dist/cjs/smoothly-address.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-addresses.cjs.entry.js +23 -0
- package/dist/cjs/smoothly-addresses.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-color.cjs.entry.js +22 -0
- package/dist/cjs/smoothly-color.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-country.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-google-font.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-google-font.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-reorder.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly.cjs.js +9 -3
- package/dist/cjs/smoothly.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +12 -1
- package/dist/collection/components/App.js +1 -0
- package/dist/collection/components/App.js.map +1 -0
- package/dist/collection/components/Button.js +5 -0
- package/dist/collection/components/Button.js.map +1 -0
- package/dist/collection/components/accordion/index.js +1 -0
- package/dist/collection/components/accordion/index.js.map +1 -0
- package/dist/collection/components/accordion-item/index.js +1 -0
- package/dist/collection/components/accordion-item/index.js.map +1 -0
- package/dist/collection/components/address/index.js +65 -0
- package/dist/collection/components/address/index.js.map +1 -0
- package/dist/collection/components/address/style.css +4 -0
- package/dist/collection/components/address-display/index.js +72 -0
- package/dist/collection/components/address-display/index.js.map +1 -0
- package/dist/collection/components/address-display/style.css +4 -0
- package/dist/collection/components/addresses/index.js +62 -0
- package/dist/collection/components/addresses/index.js.map +1 -0
- package/dist/collection/components/addresses/style.css +4 -0
- package/dist/collection/components/app/index.js +1 -0
- package/dist/collection/components/app/index.js.map +1 -0
- package/dist/collection/components/app-demo/index.js +1 -0
- package/dist/collection/components/app-demo/index.js.map +1 -0
- package/dist/collection/components/backtotop/index.js +1 -0
- package/dist/collection/components/backtotop/index.js.map +1 -0
- package/dist/collection/components/button/index.js +50 -26
- package/dist/collection/components/button/index.js.map +1 -0
- package/dist/collection/components/button/style.css +184 -31
- package/dist/collection/components/calendar/generate.js +1 -0
- package/dist/collection/components/calendar/generate.js.map +1 -0
- package/dist/collection/components/calendar/index.js +25 -46
- package/dist/collection/components/calendar/index.js.map +1 -0
- package/dist/collection/components/calendar/style.css +8 -12
- package/dist/collection/components/checkbox/index.js +90 -41
- package/dist/collection/components/checkbox/index.js.map +1 -0
- package/dist/collection/components/checkbox/style.css +56 -9
- package/dist/collection/components/checkbox/translation/index.js +1 -0
- package/dist/collection/components/checkbox/translation/index.js.map +1 -0
- package/dist/collection/components/checkbox/translation/sv.js +1 -0
- package/dist/collection/components/checkbox/translation/sv.js.map +1 -0
- package/dist/collection/components/color/index.js +48 -0
- package/dist/collection/components/color/index.js.map +1 -0
- package/dist/collection/components/color/style.css +69 -0
- package/dist/collection/components/country/index.js +1 -0
- package/dist/collection/components/country/index.js.map +1 -0
- package/dist/collection/components/dialog/index.js +1 -0
- package/dist/collection/components/dialog/index.js.map +1 -0
- package/dist/collection/components/dialog-demo/index.js +1 -0
- package/dist/collection/components/dialog-demo/index.js.map +1 -0
- package/dist/collection/components/display/index.js +1 -0
- package/dist/collection/components/display/index.js.map +1 -0
- package/dist/collection/components/display-amount/index.js +1 -0
- package/dist/collection/components/display-amount/index.js.map +1 -0
- package/dist/collection/components/display-date-time/index.js +1 -0
- package/dist/collection/components/display-date-time/index.js.map +1 -0
- package/dist/collection/components/display-demo/index.js +2 -1
- package/dist/collection/components/display-demo/index.js.map +1 -0
- package/dist/collection/components/filter/Clearable.js +8 -0
- package/dist/collection/components/filter/Clearable.js.map +1 -0
- package/dist/collection/components/filter/index.js +186 -0
- package/dist/collection/components/filter/index.js.map +1 -0
- package/dist/collection/components/filter/input/index.js +376 -0
- package/dist/collection/components/filter/input/index.js.map +1 -0
- package/dist/collection/components/filter/input/style.css +5 -0
- package/dist/collection/components/filter/style.css +106 -0
- package/dist/collection/components/form/Clearable.js +8 -0
- package/dist/collection/components/form/Clearable.js.map +1 -0
- package/dist/collection/components/form/Data.js +15 -0
- package/dist/collection/components/form/Data.js.map +1 -0
- package/dist/collection/components/form/index.js +251 -0
- package/dist/collection/components/form/index.js.map +1 -0
- package/dist/collection/components/form/style.css +50 -0
- package/dist/collection/components/frame/index.js +13 -9
- package/dist/collection/components/frame/index.js.map +1 -0
- package/dist/collection/components/google-font/index.js +1 -0
- package/dist/collection/components/google-font/index.js.map +1 -0
- package/dist/collection/components/icon/index.js +7 -1
- package/dist/collection/components/icon/index.js.map +1 -0
- package/dist/collection/components/icon-demo/index.js +1 -0
- package/dist/collection/components/icon-demo/index.js.map +1 -0
- package/dist/collection/components/input/index.js +38 -10
- package/dist/collection/components/input/index.js.map +1 -0
- package/dist/collection/components/input/style.css +11 -6
- package/dist/collection/components/input-date/index.js +3 -26
- package/dist/collection/components/input-date/index.js.map +1 -0
- package/dist/collection/components/input-date/style.css +4 -4
- package/dist/collection/components/input-date-range/index.js +1 -0
- package/dist/collection/components/input-date-range/index.js.map +1 -0
- package/dist/collection/components/input-demo/index.js +38 -1
- package/dist/collection/components/input-demo/index.js.map +1 -0
- package/dist/collection/components/input-demo/style.css +4 -0
- package/dist/collection/components/input-month/index.js +1 -0
- package/dist/collection/components/input-month/index.js.map +1 -0
- package/dist/collection/components/item/index.js +1 -0
- package/dist/collection/components/item/index.js.map +1 -0
- package/dist/collection/components/menu-options/index.js +1 -0
- package/dist/collection/components/menu-options/index.js.map +1 -0
- package/dist/collection/components/notification/index.js +1 -0
- package/dist/collection/components/notification/index.js.map +1 -0
- package/dist/collection/components/notifier/index.js +1 -0
- package/dist/collection/components/notifier/index.js.map +1 -0
- package/dist/collection/components/option/index.js +1 -0
- package/dist/collection/components/option/index.js.map +1 -0
- package/dist/collection/components/picker/index.js +1 -0
- package/dist/collection/components/picker/index.js.map +1 -0
- package/dist/collection/components/popup/index.js +1 -0
- package/dist/collection/components/popup/index.js.map +1 -0
- package/dist/collection/components/quiet/index.js +1 -0
- package/dist/collection/components/quiet/index.js.map +1 -0
- package/dist/collection/components/radio/index.js +1 -0
- package/dist/collection/components/radio/index.js.map +1 -0
- package/dist/collection/components/radio/style.css +1 -1
- package/dist/collection/components/radio-button/Selected.js +1 -0
- package/dist/collection/components/radio-button/Selected.js.map +1 -0
- package/dist/collection/components/radio-button/index.js +1 -0
- package/dist/collection/components/radio-button/index.js.map +1 -0
- package/dist/collection/components/radio-button/item/index.js +6 -6
- package/dist/collection/components/radio-button/item/index.js.map +1 -0
- package/dist/collection/components/radio-button/item/style.css +4 -19
- package/dist/collection/components/radio-group/index.js +1 -0
- package/dist/collection/components/radio-group/index.js.map +1 -0
- package/dist/collection/components/reorder/Draggable.js +1 -0
- package/dist/collection/components/reorder/Draggable.js.map +1 -0
- package/dist/collection/components/reorder/Dragged.js +1 -0
- package/dist/collection/components/reorder/Dragged.js.map +1 -0
- package/dist/collection/components/reorder/index.js +1 -0
- package/dist/collection/components/reorder/index.js.map +1 -0
- package/dist/collection/components/room/index.js +1 -0
- package/dist/collection/components/room/index.js.map +1 -0
- package/dist/collection/components/select/index.js +1 -0
- package/dist/collection/components/select/index.js.map +1 -0
- package/dist/collection/components/select-demo/index.js +1 -1
- package/dist/collection/components/select-demo/index.js.map +1 -0
- package/dist/collection/components/selector/index.js +1 -0
- package/dist/collection/components/selector/index.js.map +1 -0
- package/dist/collection/components/skeleton/index.js +1 -0
- package/dist/collection/components/skeleton/index.js.map +1 -0
- package/dist/collection/components/spinner/index.js +1 -0
- package/dist/collection/components/spinner/index.js.map +1 -0
- package/dist/collection/components/submit/index.js +59 -116
- package/dist/collection/components/submit/index.js.map +1 -0
- package/dist/collection/components/summary/index.js +92 -0
- package/dist/collection/components/summary/index.js.map +1 -0
- package/dist/collection/components/summary/style.css +31 -0
- package/dist/collection/components/svg/index.js +1 -0
- package/dist/collection/components/svg/index.js.map +1 -0
- package/dist/collection/components/tab/index.js +1 -0
- package/dist/collection/components/tab/index.js.map +1 -0
- package/dist/collection/components/tab-switch/index.js +1 -0
- package/dist/collection/components/tab-switch/index.js.map +1 -0
- package/dist/collection/components/table/Selector.js +44 -0
- package/dist/collection/components/table/Selector.js.map +1 -0
- package/dist/collection/components/table/cell/index.js +1 -0
- package/dist/collection/components/table/cell/index.js.map +1 -0
- package/dist/collection/components/table/cell/style.css +10 -0
- package/dist/collection/components/table/demo/filtered/Root.js +2 -0
- package/dist/collection/components/table/demo/filtered/Root.js.map +1 -0
- package/dist/collection/components/table/demo/filtered/index.js +66 -0
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -0
- package/dist/collection/components/table/demo/filtered/style.css +3 -0
- package/dist/collection/components/table/demo/index.js +4 -1
- package/dist/collection/components/table/demo/index.js.map +1 -0
- package/dist/collection/components/table/expandable/cell/index.js +1 -5
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -0
- package/dist/collection/components/table/expandable/cell/style.css +10 -0
- package/dist/collection/components/table/expandable/row/index.js +1 -0
- package/dist/collection/components/table/expandable/row/index.js.map +1 -0
- package/dist/collection/components/table/header/index.js +1 -0
- package/dist/collection/components/table/header/index.js.map +1 -0
- package/dist/collection/components/table/header/style.css +11 -0
- package/dist/collection/components/table/index.js +20 -0
- package/dist/collection/components/table/index.js.map +1 -0
- package/dist/collection/components/table/row/index.js +1 -0
- package/dist/collection/components/table/row/index.js.map +1 -0
- package/dist/collection/components/toggle/style.css +36 -0
- package/dist/collection/components/toggle/toggle.js +129 -0
- package/dist/collection/components/toggle/toggle.js.map +1 -0
- package/dist/collection/components/toggle-switch/index.js +118 -0
- package/dist/collection/components/toggle-switch/index.js.map +1 -0
- package/dist/collection/components/toggle-switch/style.css +56 -0
- package/dist/collection/components/trigger/index.js +1 -23
- package/dist/collection/components/trigger/index.js.map +1 -0
- package/dist/collection/components/trigger/style.css +2 -2
- package/dist/collection/components/trigger-sink/index.js +1 -0
- package/dist/collection/components/trigger-sink/index.js.map +1 -0
- package/dist/collection/components/trigger-source/index.js +1 -0
- package/dist/collection/components/trigger-source/index.js.map +1 -0
- package/dist/collection/components/tuple/index.js +1 -0
- package/dist/collection/components/tuple/index.js.map +1 -0
- package/dist/collection/components/urlencoded/index.js +1 -0
- package/dist/collection/components/urlencoded/index.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/model/Autocomplete.js +1 -0
- package/dist/collection/model/Autocomplete.js.map +1 -0
- package/dist/collection/model/ClientIdentifier.js +1 -0
- package/dist/collection/model/ClientIdentifier.js.map +1 -0
- package/dist/collection/model/Color.js +1 -0
- package/dist/collection/model/Color.js.map +1 -0
- package/dist/collection/model/Fill.js +1 -0
- package/dist/collection/model/Fill.js.map +1 -0
- package/dist/collection/model/GoogleFont.js +1 -0
- package/dist/collection/model/GoogleFont.js.map +1 -0
- package/dist/collection/model/Listenable.js +1 -0
- package/dist/collection/model/Listenable.js.map +1 -0
- package/dist/collection/model/Message.js +1 -0
- package/dist/collection/model/Message.js.map +1 -0
- package/dist/collection/model/Notice.js +1 -0
- package/dist/collection/model/Notice.js.map +1 -0
- package/dist/collection/model/Option.js +1 -0
- package/dist/collection/model/Option.js.map +1 -0
- package/dist/collection/model/Trigger.js +1 -0
- package/dist/collection/model/Trigger.js.map +1 -0
- package/dist/collection/model/index.js +1 -0
- package/dist/collection/model/index.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hex.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hex.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hsl.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hsl.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Name.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Name.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Rgb.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Rgb.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/index.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/index.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/index.js +1 -0
- package/dist/collection/utilities/Cosmetic/index.js.map +1 -0
- package/dist/collection/utilities/index.js +1 -0
- package/dist/collection/utilities/index.js.map +1 -0
- package/dist/custom-elements/index.d.ts +66 -0
- package/dist/custom-elements/index.js +5708 -644
- package/dist/custom-elements/index.js.map +1 -0
- package/dist/esm/GoogleFont-8474516b.js +2 -0
- package/dist/esm/GoogleFont-8474516b.js.map +1 -0
- package/dist/esm/Listenable-55a1f6af.js +2 -0
- package/dist/esm/Listenable-55a1f6af.js.map +1 -0
- package/dist/esm/getLanguage-cccb8418.js +2 -0
- package/dist/esm/getLanguage-cccb8418.js.map +1 -0
- package/dist/esm/{index-d7a4e405.js → index-2e948fc3.js} +3 -1
- package/dist/esm/index-2e948fc3.js.map +1 -0
- package/dist/esm/{index-d3421c35.js → index-7b57a52c.js} +106 -2
- package/dist/esm/index-7b57a52c.js.map +1 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/{smoothly-accordion_53.entry.js → smoothly-accordion_60.entry.js} +5423 -460
- package/dist/esm/smoothly-accordion_60.entry.js.map +1 -0
- package/dist/esm/smoothly-address-display.entry.js +28 -0
- package/dist/esm/smoothly-address-display.entry.js.map +1 -0
- package/dist/esm/smoothly-address.entry.js +19 -0
- package/dist/esm/smoothly-address.entry.js.map +1 -0
- package/dist/esm/smoothly-addresses.entry.js +19 -0
- package/dist/esm/smoothly-addresses.entry.js.map +1 -0
- package/dist/esm/smoothly-color.entry.js +18 -0
- package/dist/esm/smoothly-color.entry.js.map +1 -0
- package/dist/esm/smoothly-country.entry.js +3 -1
- package/dist/esm/smoothly-country.entry.js.map +1 -0
- package/dist/esm/smoothly-google-font.entry.js +3 -1
- package/dist/esm/smoothly-google-font.entry.js.map +1 -0
- package/dist/esm/smoothly-radio-group.entry.js +3 -1
- package/dist/esm/smoothly-radio-group.entry.js.map +1 -0
- package/dist/esm/smoothly-reorder.entry.js +3 -1
- package/dist/esm/smoothly-reorder.entry.js.map +1 -0
- package/dist/esm/smoothly-trigger-sink.entry.js +3 -1
- package/dist/esm/smoothly-trigger-sink.entry.js.map +1 -0
- package/dist/esm/smoothly-trigger-source.entry.js +3 -1
- package/dist/esm/smoothly-trigger-source.entry.js.map +1 -0
- package/dist/esm/smoothly.js +6 -3
- package/dist/esm/smoothly.js.map +1 -0
- package/dist/smoothly/index.esm.js +2 -1
- package/dist/smoothly/index.esm.js.map +1 -0
- package/dist/smoothly/p-156763cd.js +2 -1
- package/dist/smoothly/p-156763cd.js.map +1 -0
- package/dist/smoothly/p-5200d31c.entry.js +2 -0
- package/dist/smoothly/p-5200d31c.entry.js.map +1 -0
- package/dist/smoothly/p-5b28795c.entry.js +2 -0
- package/dist/smoothly/p-5b28795c.entry.js.map +1 -0
- package/dist/smoothly/p-5b6351f6.js +2 -1
- package/dist/smoothly/p-5b6351f6.js.map +1 -0
- package/dist/smoothly/p-70280a11.js +2 -0
- package/dist/smoothly/p-70280a11.js.map +1 -0
- package/dist/smoothly/p-712b362e.entry.js +2 -0
- package/dist/smoothly/p-712b362e.entry.js.map +1 -0
- package/dist/smoothly/p-79025273.entry.js +2 -0
- package/dist/smoothly/p-79025273.entry.js.map +1 -0
- package/dist/smoothly/p-940af6d3.entry.js +2 -0
- package/dist/smoothly/p-940af6d3.entry.js.map +1 -0
- package/dist/smoothly/{p-6630d923.entry.js → p-b49664d8.entry.js} +2 -1
- package/dist/smoothly/p-b49664d8.entry.js.map +1 -0
- package/dist/smoothly/p-bd478a53.js +2 -1
- package/dist/smoothly/p-bd478a53.js.map +1 -0
- package/dist/smoothly/p-c49d2094.entry.js +2 -0
- package/dist/smoothly/p-c49d2094.entry.js.map +1 -0
- package/dist/smoothly/p-c88ae468.js +3 -0
- package/dist/smoothly/p-c88ae468.js.map +1 -0
- package/dist/smoothly/p-c9a64fb5.entry.js +2 -0
- package/dist/smoothly/p-c9a64fb5.entry.js.map +1 -0
- package/dist/smoothly/p-d4182274.entry.js +2 -0
- package/dist/smoothly/p-d4182274.entry.js.map +1 -0
- package/dist/smoothly/p-d4d04558.entry.js +2 -0
- package/dist/smoothly/p-d4d04558.entry.js.map +1 -0
- package/dist/smoothly/p-e136b93e.entry.js +2 -0
- package/dist/smoothly/p-e136b93e.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +2 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -0
- package/dist/types/components/Button.d.ts +10 -0
- package/dist/types/components/address/index.d.ts +6 -0
- package/dist/types/components/address-display/index.d.ts +13 -0
- package/dist/types/components/addresses/index.d.ts +6 -0
- package/dist/types/components/button/index.d.ts +7 -5
- package/dist/types/components/calendar/index.d.ts +1 -3
- package/dist/types/components/checkbox/index.d.ts +6 -7
- package/dist/types/components/color/index.d.ts +5 -0
- package/dist/types/components/filter/Clearable.d.ts +6 -0
- package/dist/types/components/filter/index.d.ts +16 -0
- package/dist/types/components/filter/input/index.d.ts +25 -0
- package/dist/types/components/form/Clearable.d.ts +6 -0
- package/dist/types/components/form/Data.d.ts +9 -0
- package/dist/types/components/form/index.d.ts +20 -0
- package/dist/types/components/frame/index.d.ts +2 -2
- package/dist/types/components/input/index.d.ts +3 -8
- package/dist/types/components/input-date/index.d.ts +0 -2
- package/dist/types/components/radio-button/item/index.d.ts +1 -1
- package/dist/types/components/submit/index.d.ts +7 -11
- package/dist/types/components/summary/index.d.ts +7 -0
- package/dist/types/components/table/Selector.d.ts +10 -0
- package/dist/types/components/table/demo/filtered/Root.d.ts +27 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +13 -0
- package/dist/types/components/table/expandable/cell/index.d.ts +0 -1
- package/dist/types/components/table/index.d.ts +1 -0
- package/dist/types/components/toggle/toggle.d.ts +9 -0
- package/dist/types/components/toggle-switch/index.d.ts +8 -0
- package/dist/types/components/trigger/index.d.ts +1 -2
- package/dist/types/components.d.ts +286 -31
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +20 -0
- package/loader/index.d.ts +9 -0
- package/package.json +6 -3
- package/dist/collection/components/submit/Data.js +0 -12
- package/dist/collection/components/submit/style.css +0 -37
- package/dist/collection/model/Expand.js +0 -1
- package/dist/smoothly/p-4a0b35b7.js +0 -2
- package/dist/smoothly/p-4fecfc5d.entry.js +0 -1
- package/dist/smoothly/p-5d41e3ca.entry.js +0 -1
- package/dist/smoothly/p-7d95afef.entry.js +0 -1
- package/dist/smoothly/p-7db49a38.entry.js +0 -1
- package/dist/smoothly/p-94e08cee.js +0 -1
- package/dist/smoothly/p-96e8781a.entry.js +0 -1
- package/dist/smoothly/p-e0f4957d.entry.js +0 -1
- package/dist/types/components/submit/Data.d.ts +0 -7
- package/dist/types/model/Expand.d.ts +0 -1
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
import * as translation from "./translation";
|
|
3
3
|
export class SmoothlyCheckbox {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.
|
|
6
|
-
this.
|
|
7
|
-
this.intermediate =
|
|
8
|
-
this.
|
|
5
|
+
this.size = "tiny";
|
|
6
|
+
this.checked = false;
|
|
7
|
+
this.intermediate = false;
|
|
8
|
+
this.name = undefined;
|
|
9
|
+
this.value = undefined;
|
|
9
10
|
this.disabled = undefined;
|
|
10
11
|
this.t = undefined;
|
|
11
12
|
}
|
|
12
13
|
componentWillLoad() {
|
|
13
14
|
this.t = translation.create(this.element);
|
|
14
15
|
}
|
|
15
|
-
toggle() {
|
|
16
|
+
async toggle() {
|
|
16
17
|
if (!this.disabled) {
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
18
|
+
const checked = this.intermediate || this.checked == false;
|
|
19
|
+
this.smoothlyChecked.emit({
|
|
20
|
+
[this.name]: checked ? this.value : undefined,
|
|
21
|
+
});
|
|
22
|
+
this.checked = checked;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
render() {
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
return (h(Host, null, h("main", null, h("div", null, h("smoothly-icon", { toolTip: this.t(!this.checked ? "Select" : "De-select"), onClick: e => {
|
|
27
|
+
this.toggle();
|
|
28
|
+
}, size: this.size, name: this.intermediate && !this.checked
|
|
29
|
+
? "remove-outline"
|
|
30
|
+
: this.checked && !this.intermediate
|
|
31
|
+
? "checkmark-outline"
|
|
32
|
+
: "empty" })), h("label", { htmlFor: this.name }, h("slot", null))), h("slot", { name: "expansion" })));
|
|
27
33
|
}
|
|
28
34
|
static get is() { return "smoothly-checkbox"; }
|
|
29
35
|
static get encapsulation() { return "scoped"; }
|
|
@@ -39,12 +45,12 @@ export class SmoothlyCheckbox {
|
|
|
39
45
|
}
|
|
40
46
|
static get properties() {
|
|
41
47
|
return {
|
|
42
|
-
"
|
|
43
|
-
"type": "
|
|
48
|
+
"size": {
|
|
49
|
+
"type": "string",
|
|
44
50
|
"mutable": false,
|
|
45
51
|
"complexType": {
|
|
46
|
-
"original": "
|
|
47
|
-
"resolved": "
|
|
52
|
+
"original": "\"tiny\" | \"small\" | \"medium\" | \"large\"",
|
|
53
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | \"tiny\"",
|
|
48
54
|
"references": {}
|
|
49
55
|
},
|
|
50
56
|
"required": false,
|
|
@@ -53,16 +59,16 @@ export class SmoothlyCheckbox {
|
|
|
53
59
|
"tags": [],
|
|
54
60
|
"text": ""
|
|
55
61
|
},
|
|
56
|
-
"attribute": "
|
|
62
|
+
"attribute": "size",
|
|
57
63
|
"reflect": false,
|
|
58
|
-
"defaultValue": "
|
|
64
|
+
"defaultValue": "\"tiny\""
|
|
59
65
|
},
|
|
60
|
-
"
|
|
61
|
-
"type": "
|
|
62
|
-
"mutable":
|
|
66
|
+
"checked": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"mutable": true,
|
|
63
69
|
"complexType": {
|
|
64
|
-
"original": "
|
|
65
|
-
"resolved": "
|
|
70
|
+
"original": "boolean",
|
|
71
|
+
"resolved": "boolean",
|
|
66
72
|
"references": {}
|
|
67
73
|
},
|
|
68
74
|
"required": false,
|
|
@@ -71,9 +77,9 @@ export class SmoothlyCheckbox {
|
|
|
71
77
|
"tags": [],
|
|
72
78
|
"text": ""
|
|
73
79
|
},
|
|
74
|
-
"attribute": "
|
|
75
|
-
"reflect":
|
|
76
|
-
"defaultValue": "
|
|
80
|
+
"attribute": "checked",
|
|
81
|
+
"reflect": true,
|
|
82
|
+
"defaultValue": "false"
|
|
77
83
|
},
|
|
78
84
|
"intermediate": {
|
|
79
85
|
"type": "boolean",
|
|
@@ -90,14 +96,15 @@ export class SmoothlyCheckbox {
|
|
|
90
96
|
"text": ""
|
|
91
97
|
},
|
|
92
98
|
"attribute": "intermediate",
|
|
93
|
-
"reflect": true
|
|
99
|
+
"reflect": true,
|
|
100
|
+
"defaultValue": "false"
|
|
94
101
|
},
|
|
95
|
-
"
|
|
96
|
-
"type": "
|
|
97
|
-
"mutable":
|
|
102
|
+
"name": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"mutable": false,
|
|
98
105
|
"complexType": {
|
|
99
|
-
"original": "
|
|
100
|
-
"resolved": "
|
|
106
|
+
"original": "string",
|
|
107
|
+
"resolved": "string",
|
|
101
108
|
"references": {}
|
|
102
109
|
},
|
|
103
110
|
"required": false,
|
|
@@ -106,12 +113,29 @@ export class SmoothlyCheckbox {
|
|
|
106
113
|
"tags": [],
|
|
107
114
|
"text": ""
|
|
108
115
|
},
|
|
109
|
-
"attribute": "
|
|
110
|
-
"reflect":
|
|
116
|
+
"attribute": "name",
|
|
117
|
+
"reflect": false
|
|
118
|
+
},
|
|
119
|
+
"value": {
|
|
120
|
+
"type": "any",
|
|
121
|
+
"mutable": false,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "any",
|
|
124
|
+
"resolved": "any",
|
|
125
|
+
"references": {}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"attribute": "value",
|
|
134
|
+
"reflect": false
|
|
111
135
|
},
|
|
112
136
|
"disabled": {
|
|
113
137
|
"type": "boolean",
|
|
114
|
-
"mutable":
|
|
138
|
+
"mutable": false,
|
|
115
139
|
"complexType": {
|
|
116
140
|
"original": "boolean",
|
|
117
141
|
"resolved": "boolean",
|
|
@@ -135,8 +159,8 @@ export class SmoothlyCheckbox {
|
|
|
135
159
|
}
|
|
136
160
|
static get events() {
|
|
137
161
|
return [{
|
|
138
|
-
"method": "
|
|
139
|
-
"name": "
|
|
162
|
+
"method": "smoothlyChecked",
|
|
163
|
+
"name": "smoothlyChecked",
|
|
140
164
|
"bubbles": true,
|
|
141
165
|
"cancelable": true,
|
|
142
166
|
"composed": true,
|
|
@@ -145,11 +169,36 @@ export class SmoothlyCheckbox {
|
|
|
145
169
|
"text": ""
|
|
146
170
|
},
|
|
147
171
|
"complexType": {
|
|
148
|
-
"original": "
|
|
149
|
-
"resolved": "{
|
|
150
|
-
"references": {
|
|
172
|
+
"original": "Record<string, any>",
|
|
173
|
+
"resolved": "{ [x: string]: any; }",
|
|
174
|
+
"references": {
|
|
175
|
+
"Record": {
|
|
176
|
+
"location": "global"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
151
179
|
}
|
|
152
180
|
}];
|
|
153
181
|
}
|
|
182
|
+
static get methods() {
|
|
183
|
+
return {
|
|
184
|
+
"toggle": {
|
|
185
|
+
"complexType": {
|
|
186
|
+
"signature": "() => Promise<void>",
|
|
187
|
+
"parameters": [],
|
|
188
|
+
"references": {
|
|
189
|
+
"Promise": {
|
|
190
|
+
"location": "global"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"return": "Promise<void>"
|
|
194
|
+
},
|
|
195
|
+
"docs": {
|
|
196
|
+
"text": "",
|
|
197
|
+
"tags": []
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}
|
|
154
202
|
static get elementRef() { return "element"; }
|
|
155
203
|
}
|
|
204
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAErG,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAM5C,MAAM,OAAO,gBAAgB;;gBAE0B,MAAM;mBACV,KAAK;wBACA,KAAK;;;;;;EAO5D,iBAAiB;IAChB,IAAI,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;EAC1C,CAAC;EAGD,KAAK,CAAC,MAAM;IACX,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MACnB,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,OAAO,IAAI,KAAK,CAAA;MAC1D,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;QACzB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;OAC7C,CAAC,CAAA;MACF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;KACtB;EACF,CAAC;EAED,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACJ;QACC;UACC,qBACC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,EACvD,OAAO,EAAE,CAAC,CAAC,EAAE;cACZ,IAAI,CAAC,MAAM,EAAE,CAAA;YACd,CAAC,EACD,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EACH,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,OAAO;cACjC,CAAC,CAAC,gBAAgB;cAClB,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY;gBACpC,CAAC,CAAC,mBAAmB;gBACrB,CAAC,CAAC,OAAO,GACO,CACd;QACN,aAAO,OAAO,EAAE,IAAI,CAAC,IAAI;UACxB,eAAa,CACN,CACF;MACP,YAAM,IAAI,EAAC,WAAW,GAAG,CACnB,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State } from \"@stencil/core\"\nimport * as langly from \"langly\"\nimport * as translation from \"./translation\"\n@Component({\n\ttag: \"smoothly-checkbox\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyCheckbox {\n\t@Element() element: HTMLElement\n\t@Prop() size: \"tiny\" | \"small\" | \"medium\" | \"large\" = \"tiny\"\n\t@Prop({ mutable: true, reflect: true }) checked = false\n\t@Prop({ mutable: true, reflect: true }) intermediate = false\n\t@Prop() name: string\n\t@Prop() value: any\n\t@Prop({ reflect: true }) disabled: boolean\n\t@Event() smoothlyChecked: EventEmitter<Record<string, any>>\n\t@State() t: langly.Translate\n\n\tcomponentWillLoad() {\n\t\tthis.t = translation.create(this.element)\n\t}\n\n\t@Method()\n\tasync toggle(): Promise<void> {\n\t\tif (!this.disabled) {\n\t\t\tconst checked = this.intermediate || this.checked == false\n\t\t\tthis.smoothlyChecked.emit({\n\t\t\t\t[this.name]: checked ? this.value : undefined,\n\t\t\t})\n\t\t\tthis.checked = checked\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<main>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\t\ttoolTip={this.t(!this.checked ? \"Select\" : \"De-select\")}\n\t\t\t\t\t\t\tonClick={e => {\n\t\t\t\t\t\t\t\tthis.toggle()\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\tname={\n\t\t\t\t\t\t\t\tthis.intermediate && !this.checked\n\t\t\t\t\t\t\t\t\t? \"remove-outline\"\n\t\t\t\t\t\t\t\t\t: this.checked && !this.intermediate\n\t\t\t\t\t\t\t\t\t? \"checkmark-outline\"\n\t\t\t\t\t\t\t\t\t: \"empty\"\n\t\t\t\t\t\t\t}></smoothly-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<label htmlFor={this.name}>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</label>\n\t\t\t\t</main>\n\t\t\t\t<slot name=\"expansion\" />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -1,16 +1,63 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
:host {
|
|
2
6
|
display: block;
|
|
3
7
|
}
|
|
4
|
-
|
|
5
|
-
|
|
8
|
+
|
|
9
|
+
:host > main {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
width: fit-content;
|
|
13
|
+
height: max-content;
|
|
14
|
+
margin: 0.3rem 0;
|
|
15
|
+
line-height: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host > main > label {
|
|
19
|
+
display:flex;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin: 0 0.2em;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host > main > div {
|
|
26
|
+
border: 1px solid rgb(var(--smoothly-color-contrast));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host > main > div > smoothly-icon {
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: center;
|
|
6
33
|
}
|
|
7
|
-
|
|
8
|
-
|
|
34
|
+
|
|
35
|
+
:host:not([checked]) > main > div > smoothly-icon,
|
|
36
|
+
:host:not([intermediate]) > main > div > smoothly-icon {
|
|
37
|
+
stroke: rgb(var(--smoothly-color-contrast));
|
|
9
38
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
39
|
+
|
|
40
|
+
:host[disabled] > main > div {
|
|
41
|
+
border: 1px solid rgb(var(--smoothly-color-contrast), 0.3);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
::slotted([slot=expansion]) {
|
|
45
|
+
display: none;
|
|
46
|
+
background-color: rgb(var(--smoothly-secondary-color));
|
|
47
|
+
color: rgb(var(--smoothly-secondary-contrast));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[checked]::slotted([slot=expansion]) {
|
|
51
|
+
display: block;
|
|
52
|
+
padding: 0.5em;
|
|
53
|
+
border-radius: 5px;
|
|
54
|
+
margin: 0.5rem 0;
|
|
13
55
|
}
|
|
14
|
-
|
|
15
|
-
|
|
56
|
+
|
|
57
|
+
[checked]::slotted([slot=expansion])::before {
|
|
58
|
+
content: "\25B2";
|
|
59
|
+
position: relative;
|
|
60
|
+
top: -1.35em;
|
|
61
|
+
left: 2rem;
|
|
62
|
+
color: rgb(var(--smoothly-secondary-color))
|
|
16
63
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/checkbox/translation/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AAEzB,MAAM,UAAU,MAAM,CAAC,QAAsC;EAC5D,OAAO,MAAM,CAAC,MAAM,CACnB;IACC,EAAE;GACF,EACD,QAAQ,CACR,CAAA;AACF,CAAC","sourcesContent":["import * as isoly from \"isoly\"\nimport * as langly from \"langly\"\nimport { sv } from \"./sv\"\n\nexport function create(language: isoly.Language | HTMLElement): langly.Translate {\n\treturn langly.create(\n\t\t{\n\t\t\tsv,\n\t\t},\n\t\tlanguage\n\t)\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sv.js","sourceRoot":"","sources":["../../../../src/components/checkbox/translation/sv.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG;EACjB,YAAY,EAAE,cAAc;EAC5B,cAAc,EAAE,gBAAgB;EAChC,MAAM,EAAE,SAAS;EACjB,QAAQ,EAAE,WAAW;CACrB,CAAA","sourcesContent":["export const sv = {\n\t\"Select all\": \"Markera alla\",\n\t\"Deselect all\": \"Avmarkera alla\",\n\tSelect: \"Markera\",\n\tDeselect: \"Avmarkera\",\n}\n"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class SmoothlyColor {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.color = undefined;
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
return h("slot", null);
|
|
8
|
+
}
|
|
9
|
+
static get is() { return "smoothly-color"; }
|
|
10
|
+
static get encapsulation() { return "scoped"; }
|
|
11
|
+
static get originalStyleUrls() {
|
|
12
|
+
return {
|
|
13
|
+
"$": ["style.css"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get styleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["style.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
"color": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "Color",
|
|
28
|
+
"resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
|
|
29
|
+
"references": {
|
|
30
|
+
"Color": {
|
|
31
|
+
"location": "import",
|
|
32
|
+
"path": "../../model"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": false,
|
|
37
|
+
"optional": true,
|
|
38
|
+
"docs": {
|
|
39
|
+
"tags": [],
|
|
40
|
+
"text": ""
|
|
41
|
+
},
|
|
42
|
+
"attribute": "color",
|
|
43
|
+
"reflect": true
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/color/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAQlD,MAAM,OAAO,aAAa;;;;EAGzB,MAAM;IACL,OAAO,eAAa,CAAA;EACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { Color } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-color\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyColor {\n\t@Prop({ reflect: true }) color?: Color\n\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[color=default] {
|
|
2
|
+
--smoothly-color: var(--smoothly-default-color);
|
|
3
|
+
--smoothly-color-contrast: var(--smoothly-default-contrast);
|
|
4
|
+
--smoothly-color-shade: var(--smoothly-default-shade);
|
|
5
|
+
--smoothly-color-tint: var(--smoothly-default-tint);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[color=primary] {
|
|
9
|
+
--smoothly-color: var(--smoothly-primary-color);
|
|
10
|
+
--smoothly-color-contrast: var(--smoothly-primary-contrast);
|
|
11
|
+
--smoothly-color-shade: var(--smoothly-primary-shade);
|
|
12
|
+
--smoothly-color-tint: var(--smoothly-primary-tint);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[color=secondary] {
|
|
16
|
+
--smoothly-color: var(--smoothly-secondary-color);
|
|
17
|
+
--smoothly-color-contrast: var(--smoothly-secondary-contrast);
|
|
18
|
+
--smoothly-color-shade: var(--smoothly-secondary-shade);
|
|
19
|
+
--smoothly-color-tint: var(--smoothly-secondary-tint);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[color=tertiary] {
|
|
23
|
+
--smoothly-color: var(--smoothly-tertiary-color);
|
|
24
|
+
--smoothly-color-contrast: var(--smoothly-tertiary-contrast);
|
|
25
|
+
--smoothly-color-shade: var(--smoothly-tertiary-shade);
|
|
26
|
+
--smoothly-color-tint: var(--smoothly-tertiary-tint);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[color=success] {
|
|
30
|
+
--smoothly-color: var(--smoothly-success-color);
|
|
31
|
+
--smoothly-color-contrast: var(--smoothly-success-color);
|
|
32
|
+
--smoothly-color-shade: var(--smoothly-success-shade);
|
|
33
|
+
--smoothly-color-tint: var(--smoothly-success-tint);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[color=warning] {
|
|
37
|
+
--smoothly-color: var(--smoothly-warning-color);
|
|
38
|
+
--smoothly-color-contrast: var(--smoothly-warning-contrast);
|
|
39
|
+
--smoothly-color-shade: var(--smoothly-warning-shade);
|
|
40
|
+
--smoothly-color-tint: var(--smoothly-warning-tint);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[color=danger] {
|
|
44
|
+
--smoothly-color: var(--smoothly-danger-color);
|
|
45
|
+
--smoothly-color-contrast: var(--smoothly-danger-contrast);
|
|
46
|
+
--smoothly-color-shade: var(--smoothly-danger-shade);
|
|
47
|
+
--smoothly-color-tint: var(--smoothly-danger-tint);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[color=light] {
|
|
51
|
+
--smoothly-color: var(--smoothly-light-color);
|
|
52
|
+
--smoothly-color-contrast: var(--smoothly-light-contrast);
|
|
53
|
+
--smoothly-color-shade: var(--smoothly-light-shade);
|
|
54
|
+
--smoothly-color-tint: var(--smoothly-light-tint);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[color=medium] {
|
|
58
|
+
--smoothly-color: var(--smoothly-medium-color);
|
|
59
|
+
--smoothly-color-contrast: var(--smoothly-medium-contrast);
|
|
60
|
+
--smoothly-color-shade: var(--smoothly-medium-shade);
|
|
61
|
+
--smoothly-color-tint: var(--smoothly-medium-tint);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[color=dark] {
|
|
65
|
+
--smoothly-color: var(--smoothly-dark-color);
|
|
66
|
+
--smoothly-color-contrast: var(--smoothly-dark-contrast);
|
|
67
|
+
--smoothly-color-shade: var(--smoothly-dark-shade);
|
|
68
|
+
--smoothly-color-tint: var(--smoothly-dark-tint);
|
|
69
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/country/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,WAAW,EAAY,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAMpC,MAAM,OAAO,eAAe;;;gBAEgB,QAAQ;;;EAGnD,iBAAiB;IAChB,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;EAC1C,CAAC;EACD,MAAM;;IACL,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IACvG,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAC5D,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,WAAW,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;MAClG,GAAG;MACH,CAAC,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CACjE,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { Component, Element, h, Host, Prop, State } from \"@stencil/core\"\nimport { CountryCode, Language } from \"isoly\"\nimport { getLanguage } from \"langly\"\n\n@Component({\n\ttag: \"smoothly-country\",\n\tscoped: true,\n})\nexport class SmoothlyCountry {\n\t@Prop() value: CountryCode.Alpha2\n\t@Prop() text: \"alpha2\" | \"name\" | \"none\" = \"alpha2\"\n\t@Element() element: HTMLElement\n\t@State() language?: Language\n\tcomponentWillLoad() {\n\t\tthis.language = getLanguage(this.element)\n\t}\n\trender() {\n\t\tconst name = this.language && this.value ? CountryCode.Name.from(this.language, this.value) : undefined\n\t\treturn (\n\t\t\t<Host title={this.text == \"alpha2\" && name ? name : this.value}>\n\t\t\t\t{this.value?.toUpperCase().replace(/./g, char => String.fromCodePoint(char.charCodeAt(0) + 127397)) +\n\t\t\t\t\t\" \" +\n\t\t\t\t\t(this.text == \"alpha2\" ? this.value : this.text == \"name\" ? name : \"\")}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/dialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAS,OAAO,EAAE,MAAM,aAAa,CAAA;AAO5C,MAAM,OAAO,cAAc;;;gBAEqB,IAAI;oBACf,KAAK;;;EAGzC,eAAe,CAAC,KAA2B;IAC1C,IAAI,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,OAAO;MAC3D,IAAI,CAAC,IAAI,GAAG,KAAK,CAAA;EACnB,CAAC;EACD,QAAQ;IACP,OAAO;MACN,KAAK,EAAE;QACN,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;OACrC;KACD,CAAA;EACF,CAAC;EACD,MAAM;IACL,OAAO;MACN;QACE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAChB,wBAAkB,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO;UAC1C,qBAAe,IAAI,EAAC,cAAc,EAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAkB,CACjE,CACnB,CAAC,CAAC,CAAC,CACH,EAAE,CACF;QACA,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,cAAK,IAAI,CAAC,MAAM,CAAM,CAAC,CAAC,CAAC,YAAM,IAAI,EAAC,QAAQ,GAAQ,CAC3D;MACT;QACC,eAAa,CACP;KACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Listen, Prop } from \"@stencil/core\"\nimport { Color, Trigger } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-dialog\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyDialog {\n\t@Prop({ reflect: true }) color: Color | undefined\n\t@Prop({ mutable: true, reflect: true }) open = true\n\t@Prop({ reflect: true }) closable = false\n\t@Prop({ reflect: true }) header: string | undefined\n\t@Listen(\"trigger\")\n\tTriggerListener(event: CustomEvent<Trigger>) {\n\t\tif (Trigger.is(event.detail) && event.detail.name == \"close\")\n\t\t\tthis.open = false\n\t}\n\thostData() {\n\t\treturn {\n\t\t\tstyle: {\n\t\t\t\tdisplay: this.open ? \"block\" : \"none\",\n\t\t\t},\n\t\t}\n\t}\n\trender() {\n\t\treturn [\n\t\t\t<header>\n\t\t\t\t{this.closable ? (\n\t\t\t\t\t<smoothly-trigger fill=\"clear\" name=\"close\">\n\t\t\t\t\t\t<smoothly-icon name=\"close-circle\" fill=\"solid\" color={this.color}></smoothly-icon>\n\t\t\t\t\t</smoothly-trigger>\n\t\t\t\t) : (\n\t\t\t\t\t[]\n\t\t\t\t)}\n\t\t\t\t{this.header ? <h1>{this.header}</h1> : <slot name=\"header\"></slot>}\n\t\t\t</header>,\n\t\t\t<main>\n\t\t\t\t<slot></slot>\n\t\t\t</main>,\n\t\t]\n\t}\n}\n//\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/dialog-demo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AAK5C,MAAM,OAAO,kBAAkB;EAC9B,MAAM;IACL,OAAO,CACN,uBAAiB,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,QAAQ;MACxE,sBAAgB,GAAG,EAAC,4BAA4B,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAmB,CAC1F,CAClB,CAAA;EACF,CAAC;;CACD","sourcesContent":["import { Component, h } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-dialog-demo\",\n})\nexport class SmoothlyDialogDemo {\n\trender() {\n\t\treturn (\n\t\t\t<smoothly-dialog color=\"default\" style={{ \"margin-top\": \"6vh\" }} closable>\n\t\t\t\t<smoothly-frame url=\"https://www.wikipedia.org/\" name=\"parent\" style={{ height: \"80vh\" }}></smoothly-frame>\n\t\t\t</smoothly-dialog>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/display/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAyB,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACzE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAQ,MAAM,QAAQ,CAAA;AAO1C,MAAM,OAAO,eAAe;;;;;;;;EAM3B,MAAM;;IACL,IAAI,MAAwC,CAAA;IAC5C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;IACtB,QAAQ,IAAI,EAAE;MACb;QACC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;QACjC,MAAK;MACN,KAAK,OAAO;QACX,MAAM,GAAG,SAAG,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC,KAAK,IAAG,MAAM,CAAC,IAAI,CAAC,KAAK,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CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;AAC9F,CAAC","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { CountryCode, Currency, DateTime, Language, Locale } from \"isoly\"\nimport { format, get, Type } from \"tidily\"\n\n@Component({\n\ttag: \"smoothly-display\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyDisplay {\n\t@Prop() type: Type\n\t@Prop() value?: any\n\t@Prop() currency?: Currency\n\t@Prop() country?: CountryCode.Alpha2\n\t@Prop() format?: DateTime.Format\n\trender() {\n\t\tlet result: string | HTMLElement | undefined\n\t\tconst type = this.type\n\t\tswitch (type) {\n\t\t\tdefault:\n\t\t\t\tresult = format(this.value, type)\n\t\t\t\tbreak\n\t\t\tcase \"email\":\n\t\t\t\tresult = <a href={\"mailto:\" + this.value}>{format(this.value, type)}</a>\n\t\t\t\tbreak\n\t\t\tcase \"phone\":\n\t\t\t\tresult = <a href={\"tel:\" + this.value}>{format(this.value, type, this.country)}</a>\n\t\t\t\tbreak\n\t\t\tcase \"postal-code\":\n\t\t\t\tresult = format(this.value, type, this.country)\n\t\t\t\tbreak\n\t\t\tcase \"price\":\n\t\t\t\tresult = format(this.value, type, this.currency)\n\t\t\t\tbreak\n\t\t\tcase \"date\":\n\t\t\t\tresult = get(this.type as Type, getLocale())?.toString(this.value)\n\t\t\t\tbreak\n\t\t\tcase \"date-time\":\n\t\t\t\tresult = this.format\n\t\t\t\t\t? DateTime.localize(this.value, this.format, getLocale())\n\t\t\t\t\t: get(this.type as Type, getLocale())?.toString(this.value)\n\t\t\t\tbreak\n\t\t}\n\t\treturn result\n\t}\n}\nfunction getLocale(): Locale | undefined {\n\tconst result = navigator.language\n\treturn Locale.is(result) ? result : Language.is(result) ? Locale.toLocale(result) : und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AAG,MAAM,GAAG,GAAG,CAAA;MACrB,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;MAC7B,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,WAAW,GAAG,CAAC,EAAE,GAAG,CAAC,CAAA;KACxD;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC,GAAG,CAAC,CAAA;IAC9D,IAAI,MAAM,GAAG,CAAC,EAAE;MACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAChC,MAAM,QAAQ,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,cAAc,CAAA;QAChE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;QAChF,eAAe,EAAE,CAAA;OACjB;KACD;IAED,OAAO,MAAM,CAAA;EACd,CAAC;EAED,MAAM;IACL,OAAO;MACN,OAAO,IAAI,CAAC,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;MAC/F,GAAG;MACH,IAAI,CAAC,QAAQ;KACb,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Prop } from \"@stencil/core\"\nimport { Currency } from \"isoly\"\n\n@Component({\n\ttag: \"smoothly-display-amount\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyDisplayAmount {\n\t@Prop() amount: number | string\n\t@Prop() currency: Currency\n\t@Prop() toInteger = false\n\n\tformat(amount: string): string {\n\t\tconst digitsPerGroup = 3\n\t\tconst defaultDecimals = 2\n\t\tconst maxDecimals = (\n\t\t\tCurrency.decimalDigits(this.currency) ? Currency.decimalDigits(this.currency) : defaultDecimals\n\t\t) as number\n\t\tlet beforeSeparator = amount.length\n\t\tlet separator: number\n\t\tlet result = amount\n\t\tif (result == \"\")\n\t\t\tresult = \"0\"\n\t\tif (amount.includes(\".\")) {\n\t\t\tseparator = amount.indexOf(\".\")\n\t\t\tif (separator == 0) {\n\t\t\t\tresult = \"0\" + result\n\t\t\t\tseparator++\n\t\t\t}\n\t\t\tbeforeSeparator = separator\n\t\t\tresult = result.padEnd(separator + maxDecimals + 1, \"0\")\n\t\t\tresult = result.substring(0, separator + maxDecimals + 1)\n\t\t} else if (!this.toInteger) {\n\t\t\tresult = result + \".\"\n\t\t\tseparator = result.length - 1\n\t\t\tresult = result.padEnd(separator + maxDecimals + 1, \"0\")\n\t\t}\n\t\tconst spaces = Math.ceil(beforeSeparator / digitsPerGroup) - 1\n\t\tif (spaces > 0) {\n\t\t\tfor (let i = 0; i < spaces; i++) {\n\t\t\t\tconst position = beforeSeparator - (spaces - i) * digitsPerGroup\n\t\t\t\tresult = result.slice(0, position) + \" \" + result.slice(position, result.length)\n\t\t\t\tbeforeSeparator++\n\t\t\t}\n\t\t}\n\n\t\treturn result\n\t}\n\n\trender() {\n\t\treturn [\n\t\t\ttypeof this.amount == \"number\" ? this.format(this.amount.toString()) : this.format(this.amount),\n\t\t\t\" \",\n\t\t\tthis.currency,\n\t\t]\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/display-date-time/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,IAAI,EAAE,MAAM,eAAe,CAAA;AAWlE,MAAM,OAAO,uBAAuB;;;;EAGnC,iBAAiB;IAChB,OAAO,CAAC,IAAI,CAAC,gGAAgG,CAAC,CAAA;EAC/G,CAAC;EACD,MAAM;IACL,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAEzC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;EACvC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, ComponentWillLoad, Prop } from \"@stencil/core\"\nimport { DateTime } from \"isoly\"\n\n/**\n * DEPRECATED, use <smoothly-display type=\"date-time\">\n */\n@Component({\n\ttag: \"smoothly-display-date-time\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyDisplayDateTime implements ComponentWillLoad {\n\t@Prop() datetime: DateTime\n\n\tcomponentWillLoad(): void | Promise<void> {\n\t\tconsole.warn('Component <smoothly-display-date-time> is deprecated, use <smoothly-display type=\"date-time\">.')\n\t}\n\trender() {\n\t\tconst datetime = this.datetime.split(\"T\")\n\n\t\treturn [datetime[0], \" \", datetime[1]]\n\t}\n}\n"]}
|
|
@@ -7,7 +7,7 @@ export class SmoothlyDisplayDemo {
|
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
9
|
return [
|
|
10
|
-
h("main", null, h("
|
|
10
|
+
h("main", null, h("fieldset", null, h("h2", null, "Smoothly display"), h("smoothly-display-date-time", { datetime: "2019-08-15T08:08:17.65Z" }), h("dl", null, h("dt", null, "text"), h("dd", null, h("smoothly-display", { type: "text", value: "text" })), h("dt", null, "postal code"), h("dd", null, h("smoothly-display", { type: "postal-code", value: "752 31" })), h("dt", null, "password"), h("dd", null, h("smoothly-display", { type: "password", value: "password" })), h("dt", null, "email"), h("dd", null, h("smoothly-display", { type: "email", value: "test@example.com" })), h("dt", null, "price"), h("dd", null, h("smoothly-display", { type: "price", value: "13.37", currency: "SEK" })), h("dt", null, "display amount without decimals"), h("dd", null, h("smoothly-display-amount", { amount: 200, currency: "SEK", toInteger: true })), h("dt", null, "display amount with decimals if they are set, otherwise no decimal"), h("dd", null, h("smoothly-display-amount", { amount: 200.20, currency: "SEK", toInteger: true })), h("dt", null, "display amount with decimals"), h("dd", null, h("smoothly-display-amount", { amount: 200.20, currency: "SEK" })), h("dt", null, "percent"), h("dd", null, h("smoothly-display", { type: "percent", value: "42" })), h("dt", null, "phone"), h("dd", null, h("smoothly-display", { type: "phone", value: "0101881108" })), h("dt", null, "card number"), h("dd", null, h("smoothly-display", { type: "card-number", value: "4111111111111111" })), h("dt", null, "card expires"), h("dd", null, h("smoothly-display", { type: "card-expires", value: "7/22" })), h("dt", null, "card csc"), h("dd", null, h("smoothly-display", { type: "card-csc", value: "987" })), h("dt", null, "date"), h("dd", null, h("smoothly-display", { type: "date", value: "2022-07-07" })), h("dt", null, "date time"), h("dd", null, h("smoothly-display", { type: "date-time", format: { year: "numeric", month: "short", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric" }, value: "2022-07-07T02:02:02Z" })), h("dd", null, h("smoothly-display", { type: "date-time", format: { year: "2-digit", month: "long", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, value: "2022-07-07T02:02:02Z" })), h("dd", null, h("smoothly-display", { type: "date-time", format: { year: "numeric", month: "2-digit", day: "2-digit", hour: "numeric", minute: "numeric", second: "numeric" }, value: "2022-07-07T12:22:24Z" })), h("dd", null, h("smoothly-display", { type: "date-time", format: { year: "numeric", month: "numeric", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric" }, value: "2022-07-07T12:22:24Z" })), h("dd", null, h("smoothly-display", { type: "date-time", format: { year: "numeric", month: "short", day: "numeric" }, value: "2022-07-07T00:00+02:00" })), h("dd", null, h("smoothly-display", { type: "date-time", format: { year: "2-digit", month: "numeric", day: "numeric" }, value: "2022-07-07T00:00+02:00" })), h("dd", null, h("smoothly-display", { type: "date-time", format: { year: "2-digit", month: "numeric", day: "numeric", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZone: "+01:00" }, value: "2022-07-07T12:15Z" })), h("dt", null, "Deprecated display date time"), h("dd", null, h("smoothly-display-date-time", { datetime: "2019-01-31T20:01:34" })), h("dt", null, "Display amount"), h("dd", null, h("smoothly-display-amount", { currency: "SEK", amount: "1289.5" })), h("dt", null, "Quiet"), h("dd", null, h("smoothly-quiet", { color: "dark" }, "-")))), h("fieldset", null, h("h2", null, "Smoothly skeleton"), h("smoothly-skeleton", { period: 3, distance: "20rem", width: "20rem" }), h("smoothly-skeleton", { period: 3, distance: "20rem", color: "200,200,255" }), h("smoothly-skeleton", { period: 3, distance: "20rem", color: "var(--smoothly-warning-color)" }), h("smoothly-skeleton", { period: 3, distance: "20rem" }), h("smoothly-skeleton", { align: "center", period: 3, distance: "20rem", width: "20rem" }), h("smoothly-skeleton", { align: "center", period: 3, distance: "20rem" }), h("smoothly-skeleton", { align: "center", period: 3, distance: "20rem" }), h("smoothly-skeleton", { align: "center", period: 3, distance: "20rem" }), h("smoothly-skeleton", { align: "right", period: 3, distance: "20rem", width: "20rem" }), h("smoothly-skeleton", { align: "right", period: 3, distance: "20rem" }), h("smoothly-skeleton", { align: "right", period: 3, distance: "20rem" }), h("smoothly-skeleton", { align: "right", period: 3, distance: "20rem" })), h("fieldset", null, h("h2", null, "Smoothly URL encoded"), h("smoothly-urlencoded", { data: "hej=hopp&tjena=moss" })), h("fieldset", null, h("h2", null, "Smoothly popup"), h("div", { style: { display: "flex", justifyContent: "space-between" } }, h("smoothly-popup", { direction: "down" }, "Click for popup", h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup stuff that has a lot of text")), h("smoothly-popup", { direction: "down" }, "Click for popup", h("span", { slot: "popup", color: "dark", style: { whiteSpace: "nowrap" } }, "Some popup with a bunch of text."))), h("smoothly-popup", null, h("div", null, "Popup, click me"), h("div", { color: "dark", slot: "popup" }, "1 line popup"))), h("fieldset", null, h("h2", null, "Test of different kinds of notifier"), h("button", { onClick: () => this.noticeWarning(Notice.warn("This is a test warning notice.")) }, "warning"), h("button", { onClick: () => this.noticeWarning(Notice.succeded("This is a test success notice.")) }, "success"), h("button", { onClick: () => this.noticeWarning(Notice.failed("This is a test danger notice.")) }, "danger"), h("button", { onClick: () => this.noticeWarning(Notice.execute("This is a test execute notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "execute"), h("button", { onClick: () => this.noticeWarning(Notice.delay("This is a test delay notice.", () => new Promise(resolve => window.setTimeout(() => resolve([true, "This went great"]), 3000)))) }, "delay")), h("fieldset", null, h("h2", null, "Smoothly spinner"), h("div", { style: { position: "relative", height: "10em" } }, "Large Spinner", h("smoothly-spinner", { active: true, size: "large", style: { "--background-color": "255,255,255", "--background-opacity": "0.2", "--spinner-color": "0,130,0", } })), h("div", { style: { position: "relative", height: "10em" } }, "Medium Spinner", h("smoothly-spinner", { active: true, size: "medium" })), h("div", { style: { position: "relative", height: "10em" } }, "Small Spinner", h("smoothly-spinner", { active: true, size: "small" })), h("div", { style: { position: "absolute", left: "500px", top: "150px" } }, h("smoothly-svg", { url: "https://theme.payfunc.com/intergiro/animated-logo.svg" }))), h("fieldset", null, h("h2", null, "Smoothly summary"), h("smoothly-summary", { color: "light", fill: "clear", size: "large" }, h("p", { slot: "summary" }, "Some title"), h("p", { slot: "content" }, "Some content")), h("smoothly-summary", { color: "light", fill: "clear", size: "large" }, h("p", { slot: "summary" }, "Some title"), h("p", { slot: "content" }, "Some content")), h("smoothly-summary", { color: "danger", fill: "clear" }, h("div", { slot: "summary", style: { display: "flex", gap: "0.3rem" } }, h("span", null, "Person"), h("smoothly-icon", { name: "person", color: "light", fill: "clear", size: "tiny" })), h("p", { slot: "content" }, "Some person information.")), h("smoothly-summary", { color: "danger", fill: "clear" }, h("p", { slot: "summary" }, "Some other title"), h("p", { slot: "content" }, "A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.")))),
|
|
11
11
|
];
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "smoothly-display-demo"; }
|
|
@@ -35,3 +35,4 @@ export class SmoothlyDisplayDemo {
|
|
|
35
35
|
}];
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/display-demo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAIpC,MAAM,OAAO,mBAAmB;EAEvB,aAAa,CAAC,MAAc;IACnC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;EACzB,CAAC;EACD,MAAM;IACL,OAAO;MACN;QACC;UACC,iCAAyB;UACzB,kCAA4B,QAAQ,EAAC,yBAAyB,GAA8B;UAC5F;YACC,qBAAa;YACb;cACC,wBAAkB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAoB,CAC1D;YACL,4BAAoB;YACpB;cACC,wBAAkB,IAAI,EAAC,aAAa,EAAC,KAAK,EAAC,QAAQ,GAAoB,CACnE;YACL,yBAAiB;YACjB;cACC,wBAAkB,IAAI,EAAC,UAAU,EAAC,KAAK,EAAC,UAAU,GAAoB,CAClE;YACL,sBAAc;YACd;cACC,wBAAkB,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,kBAAkB,GAAoB,CACvE;YACL,sBAAc;YACd;cACC,wBAAkB,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,GAAoB,CAC3E;YACL,gDAAwC;YACxC;cACC,+BAAyB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;YAChC,SAAG,IAAI,EAAC,SAAS,mBAAiB,CAChB;UACnB,wBAAkB,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO;YACxD,SAAG,IAAI,EAAC,SAAS,iBAAe;YAChC,SAAG,IAAI,EAAC,SAAS,mBAAiB,CAChB;UACnB,wBAAkB,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO;YAC5C,WAAK,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAC;cAAE,yBAAmB;cAAA,qBAAe,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAiB,CAAM;YAC1K,SAAG,IAAI,EAAC,SAAS,+BAA6B,CAC5B;UACnB,wBAAkB,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO;YAC5C,SAAG,IAAI,EAAC,SAAS,uBAAqB;YACtC,SAAG,IAAI,EAAC,SAAS,qSAAmS,CAClS,CACT,CACL;KACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, EventEmitter, h } from \"@stencil/core\"\nimport { Notice } from \"../../model\"\n@Component({\n\ttag: \"smoothly-display-demo\",\n})\nexport class SmoothlyDisplayDemo {\n\t@Event() notice: EventEmitter<Notice>\n\tprivate noticeWarning(notice: Notice) {\n\t\tconsole.log(\"emit\", notice)\n\t\tthis.notice.emit(notice)\n\t}\n\trender() {\n\t\treturn [\n\t\t\t<main>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<h2>Smoothly display</h2>\n\t\t\t\t\t<smoothly-display-date-time datetime=\"2019-08-15T08:08:17.65Z\"></smoothly-display-date-time>\n\t\t\t\t\t<dl>\n\t\t\t\t\t\t<dt>text</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"text\" value=\"text\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>postal code</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"postal-code\" value=\"752 31\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>password</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"password\" value=\"password\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>email</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"email\" value=\"test@example.com\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>price</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"price\" value=\"13.37\" currency=\"SEK\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>display amount without decimals</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display-amount amount={200} currency=\"SEK\" toInteger={true}></smoothly-display-amount>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>display amount with decimals if they are set, otherwise no decimal</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display-amount amount={200.20} currency=\"SEK\" toInteger={true}></smoothly-display-amount>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>display amount with decimals</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display-amount amount={200.20} currency=\"SEK\"></smoothly-display-amount>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>percent</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"percent\" value=\"42\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>phone</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"phone\" value=\"0101881108\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>card number</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"card-number\" value=\"4111111111111111\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>card expires</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"card-expires\" value=\"7/22\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>card csc</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"card-csc\" value=\"987\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>date</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"date\" value=\"2022-07-07\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>date time</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"date-time\" format={{year: \"numeric\", month: \"short\", day: \"numeric\", hour: \"numeric\", minute: \"numeric\", second: \"numeric\"}} value=\"2022-07-07T02:02:02Z\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"date-time\" format={{year: \"2-digit\", month: \"long\", day: \"2-digit\", hour: \"2-digit\", minute: \"2-digit\", second: \"2-digit\"}} value=\"2022-07-07T02:02:02Z\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"date-time\" format={{year: \"numeric\", month: \"2-digit\", day: \"2-digit\", hour: \"numeric\", minute: \"numeric\", second: \"numeric\"}} value=\"2022-07-07T12:22:24Z\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"date-time\" format={{year: \"numeric\", month: \"numeric\", day: \"numeric\", hour: \"numeric\", minute: \"numeric\", second: \"numeric\"}} value=\"2022-07-07T12:22:24Z\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"date-time\" format={{year: \"numeric\", month: \"short\", day: \"numeric\"}} value=\"2022-07-07T00:00+02:00\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"date-time\" format={{year: \"2-digit\", month: \"numeric\", day: \"numeric\"}} value=\"2022-07-07T00:00+02:00\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display type=\"date-time\" format={{year: \"2-digit\", month: \"numeric\", day: \"numeric\", hour: \"2-digit\", minute: \"2-digit\", second: \"2-digit\", timeZone:\"+01:00\"}} value=\"2022-07-07T12:15Z\"></smoothly-display>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>Deprecated display date time</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display-date-time datetime=\"2019-01-31T20:01:34\"></smoothly-display-date-time>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>Display amount</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-display-amount currency=\"SEK\" amount=\"1289.5\"></smoothly-display-amount>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t\t<dt>Quiet</dt>\n\t\t\t\t\t\t<dd>\n\t\t\t\t\t\t\t<smoothly-quiet color=\"dark\">-</smoothly-quiet>\n\t\t\t\t\t\t</dd>\n\t\t\t\t\t</dl>\n\t\t\t\t</fieldset>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<h2>Smoothly skeleton</h2>\n\t\t\t\t\t<smoothly-skeleton period={3} distance=\"20rem\" width=\"20rem\"></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton period={3} distance=\"20rem\" color=\"200,200,255\"></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton period={3} distance=\"20rem\" color=\"var(--smoothly-warning-color)\"></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton period={3} distance=\"20rem\" ></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton align=\"center\" period={3} distance=\"20rem\" width=\"20rem\"></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton align=\"center\" period={3} distance=\"20rem\" ></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton align=\"center\" period={3} distance=\"20rem\" ></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton align=\"center\" period={3} distance=\"20rem\" ></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton align=\"right\" period={3} distance=\"20rem\" width=\"20rem\"></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton align=\"right\" period={3} distance=\"20rem\" ></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton align=\"right\" period={3} distance=\"20rem\" ></smoothly-skeleton>\n\t\t\t\t\t<smoothly-skeleton align=\"right\" period={3} distance=\"20rem\" ></smoothly-skeleton>\n\t\t\t\t</fieldset>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<h2>Smoothly URL encoded</h2>\n\t\t\t\t\t<smoothly-urlencoded data=\"hej=hopp&tjena=moss\"></smoothly-urlencoded>\n\t\t\t\t</fieldset>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<h2>Smoothly popup</h2>\n\t\t\t\t\t<div style={{display: \"flex\", justifyContent: \"space-between\"}}>\n\t\t\t\t\t\t<smoothly-popup direction=\"down\">\n\t\t\t\t\t\t\tClick for popup\n\t\t\t\t\t\t\t<span slot=\"popup\" color=\"dark\" style={{whiteSpace: \"nowrap\"}}>Some popup stuff that has a lot of text</span>\n\t\t\t\t\t\t</smoothly-popup>\n\t\t\t\t\t\t<smoothly-popup direction=\"down\">\n\t\t\t\t\t\t\tClick for popup\n\t\t\t\t\t\t\t<span slot=\"popup\" color=\"dark\" style={{whiteSpace: \"nowrap\"}}>Some popup with a bunch of text.</span>\n\t\t\t\t\t\t</smoothly-popup>\n\t\t\t\t\t</div>\n\t\t\t\t\t<smoothly-popup>\n\t\t\t\t\t\t<div>Popup, click me</div>\n\t\t\t\t\t\t<div color=\"dark\" slot=\"popup\">\n\t\t\t\t\t\t\t1 line popup\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</smoothly-popup>\n\t\t\t\t</fieldset>\n\t\t\t\t<fieldset>\n\t\t\t\t<h2>Test of different kinds of notifier</h2>\n\t\t\t\t\t<button onClick={() => this.noticeWarning(Notice.warn(\"This is a test warning notice.\"))}>warning</button>\n\t\t\t\t\t<button onClick={() => this.noticeWarning(Notice.succeded(\"This is a test success notice.\"))}>success</button>\n\t\t\t\t\t<button onClick={() => this.noticeWarning(Notice.failed(\"This is a test danger notice.\"))}>danger</button>\n\t\t\t\t\t<button\n\t\t\t\t\t\tonClick={() =>\n\t\t\t\t\t\t\tthis.noticeWarning(\n\t\t\t\t\t\t\t\tNotice.execute(\n\t\t\t\t\t\t\t\t\t\"This is a test execute notice.\",\n\t\t\t\t\t\t\t\t\t() =>\n\t\t\t\t\t\t\t\t\t\tnew Promise<[boolean, string]>(resolve =>\n\t\t\t\t\t\t\t\t\t\t\twindow.setTimeout(() => resolve([true, \"This went great\"]), 3000)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}>\n\t\t\t\t\t\texecute\n\t\t\t\t\t</button>\n\t\t\t\t\t<button\n\t\t\t\t\t\tonClick={() =>\n\t\t\t\t\t\t\tthis.noticeWarning(\n\t\t\t\t\t\t\t\tNotice.delay(\n\t\t\t\t\t\t\t\t\t\"This is a test delay notice.\",\n\t\t\t\t\t\t\t\t\t() =>\n\t\t\t\t\t\t\t\t\t\tnew Promise<[boolean, string]>(resolve =>\n\t\t\t\t\t\t\t\t\t\t\twindow.setTimeout(() => resolve([true, \"This went great\"]), 3000)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}>\n\t\t\t\t\t\tdelay\n\t\t\t\t\t</button>\n\t\t\t\t</fieldset>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<h2>Smoothly spinner</h2>\n\t\t\t\t\t<div style={{position: \"relative\", height: \"10em\"}}>Large Spinner<smoothly-spinner active size=\"large\" style={{\"--background-color\": \"255,255,255\", \"--background-opacity\": \"0.2\", \"--spinner-color\": \"0,130,0\", }}></smoothly-spinner></div>\n\t\t\t\t\t<div style={{position: \"relative\", height: \"10em\"}}>Medium Spinner<smoothly-spinner active size=\"medium\"></smoothly-spinner></div>\n\t\t\t\t\t<div style={{position: \"relative\", height: \"10em\"}}>Small Spinner<smoothly-spinner active size=\"small\"></smoothly-spinner></div>\n\t\t\t\t\t<div style={{position: \"absolute\", left: \"500px\", top: \"150px\" }}><smoothly-svg url=\"https://theme.payfunc.com/intergiro/animated-logo.svg\"></smoothly-svg></div>\n\t\t\t\t</fieldset>\n\t\t\t\t<fieldset>\n\t\t\t\t\t<h2>Smoothly summary</h2>\n\t\t\t\t\t<smoothly-summary color=\"light\" fill=\"clear\" size=\"large\">\n\t\t\t\t\t\t<p slot=\"summary\">Some title</p>\n\t\t\t\t\t\t<p slot=\"content\">Some content</p>\n\t\t\t\t\t</smoothly-summary>\n\t\t\t\t\t<smoothly-summary color=\"light\" fill=\"clear\" size=\"large\">\n\t\t\t\t\t\t<p slot=\"summary\">Some title</p>\n\t\t\t\t\t\t<p slot=\"content\">Some content</p>\n\t\t\t\t\t</smoothly-summary>\n\t\t\t\t\t<smoothly-summary color=\"danger\" fill=\"clear\">\n\t\t\t\t\t\t<div slot=\"summary\" style={{display: \"flex\", gap: \"0.3rem\"}}><span>Person</span><smoothly-icon name=\"person\" color=\"light\" fill=\"clear\" size=\"tiny\"></smoothly-icon></div>\n\t\t\t\t\t\t<p slot=\"content\">Some person information.</p>\n\t\t\t\t\t</smoothly-summary>\n\t\t\t\t\t<smoothly-summary color=\"danger\" fill=\"clear\">\n\t\t\t\t\t\t<p slot=\"summary\">Some other title</p>\n\t\t\t\t\t\t<p slot=\"content\">A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.</p>\n\t\t\t\t\t</smoothly-summary>\n\t\t\t\t</fieldset>\n\t\t\t</main>,\n\t\t]\n\t}\n}\n"]}
|