@carbon/web-components 2.0.0-beta.1 → 2.0.0-beta.2
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/custom-elements.json +275 -48
- package/es/components/button/defs.d.ts +4 -0
- package/es/components/button/defs.d.ts.map +1 -1
- package/es/components/button/defs.js +1 -0
- package/es/components/button/defs.js.map +1 -1
- package/es/components/date-picker/fix-events-plugin.d.ts.map +1 -1
- package/es/components/date-picker/fix-events-plugin.js +1 -1
- package/es/components/date-picker/fix-events-plugin.js.map +1 -1
- package/es/components/date-picker/focus-plugin.d.ts.map +1 -1
- package/es/components/date-picker/focus-plugin.js +1 -1
- package/es/components/date-picker/focus-plugin.js.map +1 -1
- package/es/components/date-picker/shadow-dom-events-plugin.d.ts.map +1 -1
- package/es/components/date-picker/shadow-dom-events-plugin.js +1 -1
- package/es/components/date-picker/shadow-dom-events-plugin.js.map +1 -1
- package/es/components/dropdown/dropdown.d.ts +3 -1
- package/es/components/dropdown/dropdown.d.ts.map +1 -1
- package/es/components/file-uploader/defs.d.ts +6 -10
- package/es/components/file-uploader/defs.d.ts.map +1 -1
- package/es/components/file-uploader/defs.js +3 -4
- package/es/components/file-uploader/defs.js.map +1 -1
- package/es/components/file-uploader/demo-file-uploader.d.ts +33 -10
- package/es/components/file-uploader/demo-file-uploader.d.ts.map +1 -1
- package/es/components/file-uploader/demo-file-uploader.js +108 -27
- package/es/components/file-uploader/demo-file-uploader.js.map +1 -1
- package/es/components/file-uploader/file-uploader-button.d.ts +396 -0
- package/es/components/file-uploader/file-uploader-button.d.ts.map +1 -0
- package/es/components/file-uploader/file-uploader-button.js +295 -0
- package/es/components/file-uploader/file-uploader-button.js.map +1 -0
- package/es/components/file-uploader/file-uploader-drop-container.d.ts +389 -0
- package/es/components/file-uploader/file-uploader-drop-container.d.ts.map +1 -0
- package/es/components/file-uploader/file-uploader-drop-container.js +274 -0
- package/es/components/file-uploader/file-uploader-drop-container.js.map +1 -0
- package/es/components/file-uploader/file-uploader-item.d.ts +7 -11
- package/es/components/file-uploader/file-uploader-item.d.ts.map +1 -1
- package/es/components/file-uploader/file-uploader-item.js +35 -45
- package/es/components/file-uploader/file-uploader-item.js.map +1 -1
- package/es/components/file-uploader/file-uploader-skeleton.d.ts +22 -0
- package/es/components/file-uploader/file-uploader-skeleton.d.ts.map +1 -0
- package/es/components/file-uploader/file-uploader-skeleton.js +50 -0
- package/es/components/file-uploader/file-uploader-skeleton.js.map +1 -0
- package/es/components/file-uploader/file-uploader.css.js +1 -1
- package/es/components/file-uploader/file-uploader.d.ts +17 -8
- package/es/components/file-uploader/file-uploader.d.ts.map +1 -1
- package/es/components/file-uploader/file-uploader.js +71 -24
- package/es/components/file-uploader/file-uploader.js.map +1 -1
- package/es/components/file-uploader/file-uploader.rtl.css.js +1 -1
- package/es/components/file-uploader/index.d.ts +4 -2
- package/es/components/file-uploader/index.d.ts.map +1 -1
- package/es/components/file-uploader/index.js +4 -2
- package/es/components/file-uploader/index.js.map +1 -1
- package/es/components/progress-bar/defs.d.ts +57 -0
- package/es/components/progress-bar/defs.d.ts.map +1 -0
- package/es/components/progress-bar/defs.js +38 -0
- package/es/components/progress-bar/defs.js.map +1 -0
- package/es/components/progress-bar/index.d.ts +11 -0
- package/es/components/progress-bar/index.d.ts.map +1 -0
- package/es/components/progress-bar/index.js +11 -0
- package/es/components/progress-bar/index.js.map +1 -0
- package/es/components/progress-bar/progress-bar.css.js +12 -0
- package/es/components/progress-bar/progress-bar.d.ts +57 -0
- package/es/components/progress-bar/progress-bar.d.ts.map +1 -0
- package/es/components/progress-bar/progress-bar.js +260 -0
- package/es/components/progress-bar/progress-bar.js.map +1 -0
- package/es/components/progress-bar/progress-bar.rtl.css.js +12 -0
- package/es/components/slider/slider.d.ts +1 -3
- package/es/components/slider/slider.d.ts.map +1 -1
- package/es/components/structured-list/structured-list-row.d.ts +3 -0
- package/es/components/structured-list/structured-list-row.d.ts.map +1 -1
- package/es/components/tile/expandable-tile.d.ts +3 -1
- package/es/components/tile/expandable-tile.d.ts.map +1 -1
- package/es/components/ui-shell/side-nav.d.ts.map +1 -1
- package/es/components/ui-shell/side-nav.js +1 -1
- package/es/components/ui-shell/side-nav.js.map +1 -1
- package/es/components-react/file-uploader/demo-file-uploader.d.ts +31 -7
- package/es/components-react/file-uploader/demo-file-uploader.js +30 -6
- package/es/components-react/file-uploader/file-uploader-button.d.ts +19 -0
- package/es/components-react/file-uploader/file-uploader-button.js +28 -0
- package/es/components-react/file-uploader/file-uploader-drop-container.d.ts +19 -0
- package/es/components-react/file-uploader/file-uploader-drop-container.js +28 -0
- package/es/components-react/file-uploader/file-uploader-item.d.ts +2 -2
- package/es/components-react/file-uploader/file-uploader-skeleton.d.ts +15 -0
- package/es/components-react/file-uploader/file-uploader-skeleton.js +21 -0
- package/es/components-react/file-uploader/file-uploader.d.ts +2 -2
- package/es/components-react/progress-bar/defs.js +9 -0
- package/es/components-react/progress-bar/progress-bar.d.ts +15 -0
- package/es/components-react/progress-bar/progress-bar.js +26 -0
- package/es/globals/mixins/form.d.ts +1 -1
- package/es/globals/mixins/form.d.ts.map +1 -1
- package/es/globals/mixins/form.js +2 -2
- package/es/globals/mixins/form.js.map +1 -1
- package/es/globals/mixins/host-listener.d.ts +1 -1
- package/es/globals/mixins/host-listener.d.ts.map +1 -1
- package/es/globals/mixins/host-listener.js +2 -2
- package/es/globals/mixins/host-listener.js.map +1 -1
- package/es/globals/mixins/on.d.ts +11 -0
- package/es/globals/mixins/on.d.ts.map +1 -0
- package/es/globals/mixins/on.js +17 -0
- package/es/globals/mixins/on.js.map +1 -0
- package/es/globals/wrappers/createReactCustomElementType.d.ts.map +1 -1
- package/es/globals/wrappers/createReactCustomElementType.js +1 -1
- package/es/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/es/icons/SLM/16.js +15 -0
- package/es/icons/SLM/20.js +15 -0
- package/es/icons/SLM/24.js +15 -0
- package/es/icons/SLM/32.js +15 -0
- package/es/icons/apple--dash/16.js +15 -0
- package/es/icons/apple--dash/20.js +15 -0
- package/es/icons/apple--dash/24.js +15 -0
- package/es/icons/apple--dash/32.js +15 -0
- package/es/icons/batch-job/16.js +15 -0
- package/es/icons/batch-job/20.js +15 -0
- package/es/icons/batch-job/24.js +15 -0
- package/es/icons/batch-job/32.js +15 -0
- package/es/icons/batch-job--step/16.js +15 -0
- package/es/icons/batch-job--step/20.js +15 -0
- package/es/icons/batch-job--step/24.js +15 -0
- package/es/icons/batch-job--step/32.js +15 -0
- package/es/icons/boot-volume/16.js +15 -0
- package/es/icons/boot-volume/20.js +15 -0
- package/es/icons/boot-volume/24.js +15 -0
- package/es/icons/boot-volume/32.js +15 -0
- package/es/icons/boot-volume--alt/16.js +15 -0
- package/es/icons/boot-volume--alt/20.js +15 -0
- package/es/icons/boot-volume--alt/24.js +15 -0
- package/es/icons/boot-volume--alt/32.js +15 -0
- package/es/icons/bottles--01/16.js +15 -0
- package/es/icons/bottles--01/20.js +15 -0
- package/es/icons/bottles--01/24.js +15 -0
- package/es/icons/bottles--01/32.js +15 -0
- package/es/icons/bottles--01--dash/16.js +15 -0
- package/es/icons/bottles--01--dash/20.js +15 -0
- package/es/icons/bottles--01--dash/24.js +15 -0
- package/es/icons/bottles--01--dash/32.js +15 -0
- package/es/icons/bottles--02/16.js +15 -0
- package/es/icons/bottles--02/20.js +15 -0
- package/es/icons/bottles--02/24.js +15 -0
- package/es/icons/bottles--02/32.js +15 -0
- package/es/icons/bottles--02--dash/16.js +15 -0
- package/es/icons/bottles--02--dash/20.js +15 -0
- package/es/icons/bottles--02--dash/24.js +15 -0
- package/es/icons/bottles--02--dash/32.js +15 -0
- package/es/icons/bottles--container/16.js +15 -0
- package/es/icons/bottles--container/20.js +15 -0
- package/es/icons/bottles--container/24.js +15 -0
- package/es/icons/bottles--container/32.js +15 -0
- package/es/icons/build-tool/16.js +15 -0
- package/es/icons/build-tool/20.js +15 -0
- package/es/icons/build-tool/24.js +15 -0
- package/es/icons/build-tool/32.js +15 -0
- package/es/icons/calendar--add/16.js +15 -0
- package/es/icons/calendar--add/20.js +15 -0
- package/es/icons/calendar--add/24.js +15 -0
- package/es/icons/calendar--add/32.js +15 -0
- package/es/icons/calendar--add--alt/16.js +15 -0
- package/es/icons/calendar--add--alt/20.js +15 -0
- package/es/icons/calendar--add--alt/24.js +15 -0
- package/es/icons/calendar--add--alt/32.js +15 -0
- package/es/icons/carbon--ui-builder/16.js +15 -0
- package/es/icons/carbon--ui-builder/20.js +15 -0
- package/es/icons/carbon--ui-builder/24.js +15 -0
- package/es/icons/carbon--ui-builder/32.js +15 -0
- package/es/icons/catalog--publish/16.js +15 -0
- package/es/icons/catalog--publish/20.js +15 -0
- package/es/icons/catalog--publish/24.js +15 -0
- package/es/icons/catalog--publish/32.js +15 -0
- package/es/icons/cics--db2-connection/16.js +15 -0
- package/es/icons/cics--db2-connection/20.js +15 -0
- package/es/icons/cics--db2-connection/24.js +15 -0
- package/es/icons/cics--db2-connection/32.js +15 -0
- package/es/icons/cics--program/16.js +15 -0
- package/es/icons/cics--program/20.js +15 -0
- package/es/icons/cics--program/24.js +15 -0
- package/es/icons/cics--program/32.js +15 -0
- package/es/icons/cics--sit/16.js +15 -0
- package/es/icons/cics--sit/20.js +15 -0
- package/es/icons/cics--sit/24.js +15 -0
- package/es/icons/cics--sit/32.js +15 -0
- package/es/icons/cics--sit-overrides/16.js +15 -0
- package/es/icons/cics--sit-overrides/20.js +15 -0
- package/es/icons/cics--sit-overrides/24.js +15 -0
- package/es/icons/cics--sit-overrides/32.js +15 -0
- package/es/icons/cics--transaction-server-zos/16.js +15 -0
- package/es/icons/cics--transaction-server-zos/20.js +15 -0
- package/es/icons/cics--transaction-server-zos/24.js +15 -0
- package/es/icons/cics--transaction-server-zos/32.js +15 -0
- package/es/icons/cics-region--alt/16.js +15 -0
- package/es/icons/cics-region--alt/20.js +15 -0
- package/es/icons/cics-region--alt/24.js +15 -0
- package/es/icons/cics-region--alt/32.js +15 -0
- package/es/icons/connect--reference/16.js +15 -0
- package/es/icons/connect--reference/20.d.ts +17 -0
- package/es/icons/connect--reference/20.js +15 -0
- package/es/icons/connect--reference/24.d.ts +17 -0
- package/es/icons/connect--reference/24.js +15 -0
- package/es/icons/connect--reference/32.d.ts +17 -0
- package/es/icons/connect--reference/32.js +15 -0
- package/es/icons/continuous-deployment/16.d.ts +17 -0
- package/es/icons/continuous-deployment/16.js +15 -0
- package/es/icons/continuous-deployment/20.d.ts +17 -0
- package/es/icons/continuous-deployment/20.js +15 -0
- package/es/icons/continuous-deployment/24.d.ts +17 -0
- package/es/icons/continuous-deployment/24.js +15 -0
- package/es/icons/continuous-deployment/32.d.ts +17 -0
- package/es/icons/continuous-deployment/32.js +15 -0
- package/es/icons/continuous-integration/16.d.ts +17 -0
- package/es/icons/continuous-integration/16.js +15 -0
- package/es/icons/continuous-integration/20.d.ts +17 -0
- package/es/icons/continuous-integration/20.js +15 -0
- package/es/icons/continuous-integration/24.d.ts +17 -0
- package/es/icons/continuous-integration/24.js +15 -0
- package/es/icons/continuous-integration/32.d.ts +17 -0
- package/es/icons/continuous-integration/32.js +15 -0
- package/es/icons/data-enrichment/16.js +1 -1
- package/es/icons/data-enrichment/20.js +1 -1
- package/es/icons/data-enrichment/24.js +1 -1
- package/es/icons/data-enrichment/32.js +1 -1
- package/es/icons/data-enrichment--add/16.d.ts +17 -0
- package/es/icons/data-enrichment--add/16.js +15 -0
- package/es/icons/data-enrichment--add/20.d.ts +17 -0
- package/es/icons/data-enrichment--add/20.js +15 -0
- package/es/icons/data-enrichment--add/24.d.ts +17 -0
- package/es/icons/data-enrichment--add/24.js +15 -0
- package/es/icons/data-enrichment--add/32.d.ts +17 -0
- package/es/icons/data-enrichment--add/32.js +15 -0
- package/es/icons/data-quality-definition/16.d.ts +17 -0
- package/es/icons/data-quality-definition/16.js +15 -0
- package/es/icons/data-quality-definition/20.d.ts +17 -0
- package/es/icons/data-quality-definition/20.js +15 -0
- package/es/icons/data-quality-definition/24.d.ts +17 -0
- package/es/icons/data-quality-definition/24.js +15 -0
- package/es/icons/data-quality-definition/32.d.ts +17 -0
- package/es/icons/data-quality-definition/32.js +15 -0
- package/es/icons/data-volume/16.d.ts +17 -0
- package/es/icons/data-volume/16.js +15 -0
- package/es/icons/data-volume/20.d.ts +17 -0
- package/es/icons/data-volume/20.js +15 -0
- package/es/icons/data-volume/24.d.ts +17 -0
- package/es/icons/data-volume/24.js +15 -0
- package/es/icons/data-volume/32.d.ts +17 -0
- package/es/icons/data-volume/32.js +15 -0
- package/es/icons/data-volume--alt/16.d.ts +17 -0
- package/es/icons/data-volume--alt/16.js +15 -0
- package/es/icons/data-volume--alt/20.d.ts +17 -0
- package/es/icons/data-volume--alt/20.js +15 -0
- package/es/icons/data-volume--alt/24.d.ts +17 -0
- package/es/icons/data-volume--alt/24.js +15 -0
- package/es/icons/data-volume--alt/32.d.ts +17 -0
- package/es/icons/data-volume--alt/32.js +15 -0
- package/es/icons/db2--buffer-pool/16.d.ts +17 -0
- package/es/icons/db2--buffer-pool/16.js +15 -0
- package/es/icons/db2--buffer-pool/20.d.ts +17 -0
- package/es/icons/db2--buffer-pool/20.js +15 -0
- package/es/icons/db2--buffer-pool/24.d.ts +17 -0
- package/es/icons/db2--buffer-pool/24.js +15 -0
- package/es/icons/db2--buffer-pool/32.d.ts +17 -0
- package/es/icons/db2--buffer-pool/32.js +15 -0
- package/es/icons/db2--data-sharing-group/16.d.ts +17 -0
- package/es/icons/db2--data-sharing-group/16.js +15 -0
- package/es/icons/db2--data-sharing-group/20.d.ts +17 -0
- package/es/icons/db2--data-sharing-group/20.js +15 -0
- package/es/icons/db2--data-sharing-group/24.d.ts +17 -0
- package/es/icons/db2--data-sharing-group/24.js +15 -0
- package/es/icons/db2--data-sharing-group/32.d.ts +17 -0
- package/es/icons/db2--data-sharing-group/32.js +15 -0
- package/es/icons/db2--database/16.d.ts +17 -0
- package/es/icons/db2--database/16.js +15 -0
- package/es/icons/db2--database/20.d.ts +17 -0
- package/es/icons/db2--database/20.js +15 -0
- package/es/icons/db2--database/24.d.ts +17 -0
- package/es/icons/db2--database/24.js +15 -0
- package/es/icons/db2--database/32.d.ts +17 -0
- package/es/icons/db2--database/32.js +15 -0
- package/es/icons/diamond-fill/index.d.ts +17 -0
- package/es/icons/document--multiple-01/16.d.ts +17 -0
- package/es/icons/document--multiple-01/16.js +15 -0
- package/es/icons/document--multiple-01/20.d.ts +17 -0
- package/es/icons/document--multiple-01/20.js +15 -0
- package/es/icons/document--multiple-01/24.d.ts +17 -0
- package/es/icons/document--multiple-01/24.js +15 -0
- package/es/icons/document--multiple-01/32.d.ts +17 -0
- package/es/icons/document--multiple-01/32.js +15 -0
- package/es/icons/document--multiple-02/16.d.ts +17 -0
- package/es/icons/document--multiple-02/16.js +15 -0
- package/es/icons/document--multiple-02/20.d.ts +17 -0
- package/es/icons/document--multiple-02/20.js +15 -0
- package/es/icons/document--multiple-02/24.d.ts +17 -0
- package/es/icons/document--multiple-02/24.js +15 -0
- package/es/icons/document--multiple-02/32.d.ts +17 -0
- package/es/icons/document--multiple-02/32.js +15 -0
- package/es/icons/drink--01/16.d.ts +17 -0
- package/es/icons/drink--01/16.js +15 -0
- package/es/icons/drink--01/20.d.ts +17 -0
- package/es/icons/drink--01/20.js +15 -0
- package/es/icons/drink--01/24.d.ts +17 -0
- package/es/icons/drink--01/24.js +15 -0
- package/es/icons/drink--01/32.d.ts +17 -0
- package/es/icons/drink--01/32.js +15 -0
- package/es/icons/drink--02/16.d.ts +17 -0
- package/es/icons/drink--02/16.js +15 -0
- package/es/icons/drink--02/20.d.ts +17 -0
- package/es/icons/drink--02/20.js +15 -0
- package/es/icons/drink--02/24.d.ts +17 -0
- package/es/icons/drink--02/24.js +15 -0
- package/es/icons/drink--02/32.d.ts +17 -0
- package/es/icons/drink--02/32.js +15 -0
- package/es/icons/executable-program/16.d.ts +17 -0
- package/es/icons/executable-program/16.js +15 -0
- package/es/icons/executable-program/20.d.ts +17 -0
- package/es/icons/executable-program/20.js +15 -0
- package/es/icons/executable-program/24.d.ts +17 -0
- package/es/icons/executable-program/24.js +15 -0
- package/es/icons/executable-program/32.d.ts +17 -0
- package/es/icons/executable-program/32.js +15 -0
- package/es/icons/ibm--bluepay/16.d.ts +17 -0
- package/es/icons/ibm--bluepay/16.js +15 -0
- package/es/icons/ibm--bluepay/20.d.ts +17 -0
- package/es/icons/ibm--bluepay/20.js +15 -0
- package/es/icons/ibm--bluepay/24.d.ts +17 -0
- package/es/icons/ibm--bluepay/24.js +15 -0
- package/es/icons/ibm--bluepay/32.d.ts +17 -0
- package/es/icons/ibm--bluepay/32.js +15 -0
- package/es/icons/ibm--content-services/16.d.ts +17 -0
- package/es/icons/ibm--content-services/16.js +15 -0
- package/es/icons/ibm--content-services/20.d.ts +17 -0
- package/es/icons/ibm--content-services/20.js +15 -0
- package/es/icons/ibm--content-services/24.d.ts +17 -0
- package/es/icons/ibm--content-services/24.js +15 -0
- package/es/icons/ibm--content-services/32.d.ts +17 -0
- package/es/icons/ibm--content-services/32.js +15 -0
- package/es/icons/ibm--datastage/16.d.ts +17 -0
- package/es/icons/ibm--datastage/16.js +15 -0
- package/es/icons/ibm--datastage/20.d.ts +17 -0
- package/es/icons/ibm--datastage/20.js +15 -0
- package/es/icons/ibm--datastage/24.d.ts +17 -0
- package/es/icons/ibm--datastage/24.js +15 -0
- package/es/icons/ibm--datastage/32.d.ts +17 -0
- package/es/icons/ibm--datastage/32.js +15 -0
- package/es/icons/ibm--db2/16.d.ts +17 -0
- package/es/icons/ibm--db2/16.js +15 -0
- package/es/icons/ibm--db2/20.d.ts +17 -0
- package/es/icons/ibm--db2/20.js +15 -0
- package/es/icons/ibm--db2/24.d.ts +17 -0
- package/es/icons/ibm--db2/24.js +15 -0
- package/es/icons/ibm--db2/32.d.ts +17 -0
- package/es/icons/ibm--db2/32.js +15 -0
- package/es/icons/ibm--db2--alt/16.d.ts +17 -0
- package/es/icons/ibm--db2--alt/16.js +15 -0
- package/es/icons/ibm--db2--alt/20.d.ts +17 -0
- package/es/icons/ibm--db2--alt/20.js +15 -0
- package/es/icons/ibm--db2--alt/24.d.ts +17 -0
- package/es/icons/ibm--db2--alt/24.js +15 -0
- package/es/icons/ibm--db2--alt/32.d.ts +17 -0
- package/es/icons/ibm--db2--alt/32.js +15 -0
- package/es/icons/ibm--mq/16.d.ts +17 -0
- package/es/icons/ibm--mq/16.js +15 -0
- package/es/icons/ibm--mq/20.d.ts +17 -0
- package/es/icons/ibm--mq/20.js +15 -0
- package/es/icons/ibm--mq/24.d.ts +17 -0
- package/es/icons/ibm--mq/24.js +15 -0
- package/es/icons/ibm--mq/32.d.ts +17 -0
- package/es/icons/ibm--mq/32.js +15 -0
- package/es/icons/ibm--open-enterprise-languages/16.d.ts +17 -0
- package/es/icons/ibm--open-enterprise-languages/16.js +15 -0
- package/es/icons/ibm--open-enterprise-languages/20.d.ts +17 -0
- package/es/icons/ibm--open-enterprise-languages/20.js +15 -0
- package/es/icons/ibm--open-enterprise-languages/24.d.ts +17 -0
- package/es/icons/ibm--open-enterprise-languages/24.js +15 -0
- package/es/icons/ibm--open-enterprise-languages/32.d.ts +17 -0
- package/es/icons/ibm--open-enterprise-languages/32.js +15 -0
- package/es/icons/ibm--power-vs/16.d.ts +17 -0
- package/es/icons/ibm--power-vs/16.js +15 -0
- package/es/icons/ibm--power-vs/20.d.ts +17 -0
- package/es/icons/ibm--power-vs/20.js +15 -0
- package/es/icons/ibm--power-vs/24.d.ts +17 -0
- package/es/icons/ibm--power-vs/24.js +15 -0
- package/es/icons/ibm--power-vs/32.d.ts +17 -0
- package/es/icons/ibm--power-vs/32.js +15 -0
- package/es/icons/ibm--process-mining/16.d.ts +17 -0
- package/es/icons/ibm--process-mining/16.js +15 -0
- package/es/icons/ibm--process-mining/20.d.ts +17 -0
- package/es/icons/ibm--process-mining/20.js +15 -0
- package/es/icons/ibm--process-mining/24.d.ts +17 -0
- package/es/icons/ibm--process-mining/24.js +15 -0
- package/es/icons/ibm--process-mining/32.d.ts +17 -0
- package/es/icons/ibm--process-mining/32.js +15 -0
- package/es/icons/ibm--telehealth/16.d.ts +17 -0
- package/es/icons/ibm--telehealth/16.js +15 -0
- package/es/icons/ibm--telehealth/20.d.ts +17 -0
- package/es/icons/ibm--telehealth/20.js +15 -0
- package/es/icons/ibm--telehealth/24.d.ts +17 -0
- package/es/icons/ibm--telehealth/24.js +15 -0
- package/es/icons/ibm--telehealth/32.d.ts +17 -0
- package/es/icons/ibm--telehealth/32.js +15 -0
- package/es/icons/ibm--tenet/16.d.ts +17 -0
- package/es/icons/ibm--tenet/16.js +15 -0
- package/es/icons/ibm--tenet/20.d.ts +17 -0
- package/es/icons/ibm--tenet/20.js +15 -0
- package/es/icons/ibm--tenet/24.d.ts +17 -0
- package/es/icons/ibm--tenet/24.js +15 -0
- package/es/icons/ibm--tenet/32.d.ts +17 -0
- package/es/icons/ibm--tenet/32.js +15 -0
- package/es/icons/ibm--toolchain/16.d.ts +17 -0
- package/es/icons/ibm--toolchain/16.js +15 -0
- package/es/icons/ibm--toolchain/20.d.ts +17 -0
- package/es/icons/ibm--toolchain/20.js +15 -0
- package/es/icons/ibm--toolchain/24.d.ts +17 -0
- package/es/icons/ibm--toolchain/24.js +15 -0
- package/es/icons/ibm--toolchain/32.d.ts +17 -0
- package/es/icons/ibm--toolchain/32.js +15 -0
- package/es/icons/ibm-cloud--HSM/16.d.ts +17 -0
- package/es/icons/ibm-cloud--HSM/16.js +15 -0
- package/es/icons/ibm-cloud--HSM/20.d.ts +17 -0
- package/es/icons/ibm-cloud--HSM/20.js +15 -0
- package/es/icons/ibm-cloud--HSM/24.d.ts +17 -0
- package/es/icons/ibm-cloud--HSM/24.js +15 -0
- package/es/icons/ibm-cloud--HSM/32.d.ts +17 -0
- package/es/icons/ibm-cloud--HSM/32.js +15 -0
- package/es/icons/ibm-cloud--app-id/16.d.ts +17 -0
- package/es/icons/ibm-cloud--app-id/16.js +15 -0
- package/es/icons/ibm-cloud--app-id/20.d.ts +17 -0
- package/es/icons/ibm-cloud--app-id/20.js +15 -0
- package/es/icons/ibm-cloud--app-id/24.d.ts +17 -0
- package/es/icons/ibm-cloud--app-id/24.js +15 -0
- package/es/icons/ibm-cloud--app-id/32.d.ts +17 -0
- package/es/icons/ibm-cloud--app-id/32.js +15 -0
- package/es/icons/ibm-cloud--citrix-daas/16.d.ts +17 -0
- package/es/icons/ibm-cloud--citrix-daas/16.js +15 -0
- package/es/icons/ibm-cloud--citrix-daas/20.d.ts +17 -0
- package/es/icons/ibm-cloud--citrix-daas/20.js +15 -0
- package/es/icons/ibm-cloud--citrix-daas/24.d.ts +17 -0
- package/es/icons/ibm-cloud--citrix-daas/24.js +15 -0
- package/es/icons/ibm-cloud--citrix-daas/32.d.ts +17 -0
- package/es/icons/ibm-cloud--citrix-daas/32.js +15 -0
- package/es/icons/ibm-cloud--continuous-delivery/16.d.ts +17 -0
- package/es/icons/ibm-cloud--continuous-delivery/16.js +15 -0
- package/es/icons/ibm-cloud--continuous-delivery/20.d.ts +17 -0
- package/es/icons/ibm-cloud--continuous-delivery/20.js +15 -0
- package/es/icons/ibm-cloud--continuous-delivery/24.d.ts +17 -0
- package/es/icons/ibm-cloud--continuous-delivery/24.js +15 -0
- package/es/icons/ibm-cloud--continuous-delivery/32.d.ts +17 -0
- package/es/icons/ibm-cloud--continuous-delivery/32.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--connect/16.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--connect/16.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--connect/20.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--connect/20.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--connect/24.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--connect/24.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--connect/32.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--connect/32.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated/16.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated/16.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated/20.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated/20.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated/24.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated/24.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated/32.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated/32.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated-hosting/16.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated-hosting/16.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated-hosting/20.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated-hosting/20.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated-hosting/24.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated-hosting/24.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated-hosting/32.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--dedicated-hosting/32.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--exchange/16.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--exchange/16.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--exchange/20.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--exchange/20.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--exchange/24.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--exchange/24.js +15 -0
- package/es/icons/ibm-cloud--direct-link-1--exchange/32.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-1--exchange/32.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--connect/16.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--connect/16.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--connect/20.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--connect/20.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--connect/24.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--connect/24.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--connect/32.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--connect/32.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated/16.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated/16.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated/20.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated/20.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated/24.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated/24.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated/32.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated/32.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated-hosting/16.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated-hosting/16.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated-hosting/20.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated-hosting/20.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated-hosting/24.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated-hosting/24.js +15 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated-hosting/32.d.ts +17 -0
- package/es/icons/ibm-cloud--direct-link-2--dedicated-hosting/32.js +15 -0
- package/es/icons/ibm-cloud--event-notification/16.d.ts +17 -0
- package/es/icons/ibm-cloud--event-notification/16.js +15 -0
- package/es/icons/ibm-cloud--event-notification/20.d.ts +17 -0
- package/es/icons/ibm-cloud--event-notification/20.js +15 -0
- package/es/icons/ibm-cloud--event-notification/24.d.ts +17 -0
- package/es/icons/ibm-cloud--event-notification/24.js +15 -0
- package/es/icons/ibm-cloud--event-notification/32.d.ts +17 -0
- package/es/icons/ibm-cloud--event-notification/32.js +15 -0
- package/es/icons/ibm-cloud--event-streams/16.d.ts +17 -0
- package/es/icons/ibm-cloud--event-streams/16.js +15 -0
- package/es/icons/ibm-cloud--event-streams/20.d.ts +17 -0
- package/es/icons/ibm-cloud--event-streams/20.js +15 -0
- package/es/icons/ibm-cloud--event-streams/24.d.ts +17 -0
- package/es/icons/ibm-cloud--event-streams/24.js +15 -0
- package/es/icons/ibm-cloud--event-streams/32.d.ts +17 -0
- package/es/icons/ibm-cloud--event-streams/32.js +15 -0
- package/es/icons/ibm-cloud--for-education/16.d.ts +17 -0
- package/es/icons/ibm-cloud--for-education/16.js +15 -0
- package/es/icons/ibm-cloud--for-education/20.d.ts +17 -0
- package/es/icons/ibm-cloud--for-education/20.js +15 -0
- package/es/icons/ibm-cloud--for-education/24.d.ts +17 -0
- package/es/icons/ibm-cloud--for-education/24.js +15 -0
- package/es/icons/ibm-cloud--for-education/32.d.ts +17 -0
- package/es/icons/ibm-cloud--for-education/32.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-crypto-services/16.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-crypto-services/16.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-crypto-services/20.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-crypto-services/20.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-crypto-services/24.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-crypto-services/24.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-crypto-services/32.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-crypto-services/32.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-dbaas/16.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-dbaas/16.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-dbaas/20.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-dbaas/20.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-dbaas/24.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-dbaas/24.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-dbaas/32.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-dbaas/32.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-vs/16.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-vs/16.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-vs/20.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-vs/20.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-vs/24.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-vs/24.js +15 -0
- package/es/icons/ibm-cloud--hyper-protect-vs/32.d.ts +17 -0
- package/es/icons/ibm-cloud--hyper-protect-vs/32.js +15 -0
- package/es/icons/ibm-cloud--internet-services/16.js +1 -1
- package/es/icons/ibm-cloud--internet-services/20.js +1 -1
- package/es/icons/ibm-cloud--internet-services/24.js +1 -1
- package/es/icons/ibm-cloud--internet-services/32.js +1 -1
- package/es/icons/ibm-cloud--ipsec-vpn/16.d.ts +17 -0
- package/es/icons/ibm-cloud--ipsec-vpn/16.js +15 -0
- package/es/icons/ibm-cloud--ipsec-vpn/20.d.ts +17 -0
- package/es/icons/ibm-cloud--ipsec-vpn/20.js +15 -0
- package/es/icons/ibm-cloud--ipsec-vpn/24.d.ts +17 -0
- package/es/icons/ibm-cloud--ipsec-vpn/24.js +15 -0
- package/es/icons/ibm-cloud--ipsec-vpn/32.d.ts +17 -0
- package/es/icons/ibm-cloud--ipsec-vpn/32.js +15 -0
- package/es/icons/ibm-cloud--key-protect/16.d.ts +17 -0
- package/es/icons/ibm-cloud--key-protect/16.js +15 -0
- package/es/icons/ibm-cloud--key-protect/20.d.ts +17 -0
- package/es/icons/ibm-cloud--key-protect/20.js +15 -0
- package/es/icons/ibm-cloud--key-protect/24.d.ts +17 -0
- package/es/icons/ibm-cloud--key-protect/24.js +15 -0
- package/es/icons/ibm-cloud--key-protect/32.d.ts +17 -0
- package/es/icons/ibm-cloud--key-protect/32.js +15 -0
- package/es/icons/ibm-cloud--kubernetes-service/16.d.ts +17 -0
- package/es/icons/ibm-cloud--kubernetes-service/16.js +15 -0
- package/es/icons/ibm-cloud--kubernetes-service/20.d.ts +17 -0
- package/es/icons/ibm-cloud--kubernetes-service/20.js +15 -0
- package/es/icons/ibm-cloud--kubernetes-service/24.d.ts +17 -0
- package/es/icons/ibm-cloud--kubernetes-service/24.js +15 -0
- package/es/icons/ibm-cloud--kubernetes-service/32.d.ts +17 -0
- package/es/icons/ibm-cloud--kubernetes-service/32.js +15 -0
- package/es/icons/ibm-cloud--logging/16.d.ts +17 -0
- package/es/icons/ibm-cloud--logging/16.js +15 -0
- package/es/icons/ibm-cloud--logging/20.d.ts +17 -0
- package/es/icons/ibm-cloud--logging/20.js +15 -0
- package/es/icons/ibm-cloud--logging/24.d.ts +17 -0
- package/es/icons/ibm-cloud--logging/24.js +15 -0
- package/es/icons/ibm-cloud--logging/32.d.ts +17 -0
- package/es/icons/ibm-cloud--logging/32.js +15 -0
- package/es/icons/ibm-cloud--mass-data-migration/16.d.ts +17 -0
- package/es/icons/ibm-cloud--mass-data-migration/16.js +15 -0
- package/es/icons/ibm-cloud--mass-data-migration/20.d.ts +17 -0
- package/es/icons/ibm-cloud--mass-data-migration/20.js +15 -0
- package/es/icons/ibm-cloud--mass-data-migration/24.d.ts +17 -0
- package/es/icons/ibm-cloud--mass-data-migration/24.js +15 -0
- package/es/icons/ibm-cloud--mass-data-migration/32.d.ts +17 -0
- package/es/icons/ibm-cloud--mass-data-migration/32.js +15 -0
- package/es/icons/ibm-cloud--pal/16.d.ts +17 -0
- package/es/icons/ibm-cloud--pal/16.js +15 -0
- package/es/icons/ibm-cloud--pal/20.d.ts +17 -0
- package/es/icons/ibm-cloud--pal/20.js +15 -0
- package/es/icons/ibm-cloud--pal/24.d.ts +17 -0
- package/es/icons/ibm-cloud--pal/24.js +15 -0
- package/es/icons/ibm-cloud--pal/32.d.ts +17 -0
- package/es/icons/ibm-cloud--pal/32.js +15 -0
- package/es/icons/ibm-cloud--privileged-access-gateway/16.d.ts +17 -0
- package/es/icons/ibm-cloud--privileged-access-gateway/16.js +15 -0
- package/es/icons/ibm-cloud--privileged-access-gateway/20.d.ts +17 -0
- package/es/icons/ibm-cloud--privileged-access-gateway/20.js +15 -0
- package/es/icons/ibm-cloud--privileged-access-gateway/24.d.ts +17 -0
- package/es/icons/ibm-cloud--privileged-access-gateway/24.js +15 -0
- package/es/icons/ibm-cloud--privileged-access-gateway/32.d.ts +17 -0
- package/es/icons/ibm-cloud--privileged-access-gateway/32.js +15 -0
- package/es/icons/ibm-cloud--secrets-manager/16.d.ts +17 -0
- package/es/icons/ibm-cloud--secrets-manager/16.js +15 -0
- package/es/icons/ibm-cloud--secrets-manager/20.d.ts +17 -0
- package/es/icons/ibm-cloud--secrets-manager/20.js +15 -0
- package/es/icons/ibm-cloud--secrets-manager/24.d.ts +17 -0
- package/es/icons/ibm-cloud--secrets-manager/24.js +15 -0
- package/es/icons/ibm-cloud--secrets-manager/32.d.ts +17 -0
- package/es/icons/ibm-cloud--secrets-manager/32.js +15 -0
- package/es/icons/ibm-cloud--sysdig-secure/16.d.ts +17 -0
- package/es/icons/ibm-cloud--sysdig-secure/16.js +15 -0
- package/es/icons/ibm-cloud--sysdig-secure/20.d.ts +17 -0
- package/es/icons/ibm-cloud--sysdig-secure/20.js +15 -0
- package/es/icons/ibm-cloud--sysdig-secure/24.d.ts +17 -0
- package/es/icons/ibm-cloud--sysdig-secure/24.js +15 -0
- package/es/icons/ibm-cloud--sysdig-secure/32.d.ts +17 -0
- package/es/icons/ibm-cloud--sysdig-secure/32.js +15 -0
- package/es/icons/ibm-cloud-pak--MANTA-automated-data-lineage/16.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--MANTA-automated-data-lineage/16.js +15 -0
- package/es/icons/ibm-cloud-pak--MANTA-automated-data-lineage/20.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--MANTA-automated-data-lineage/20.js +15 -0
- package/es/icons/ibm-cloud-pak--MANTA-automated-data-lineage/24.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--MANTA-automated-data-lineage/24.js +15 -0
- package/es/icons/ibm-cloud-pak--MANTA-automated-data-lineage/32.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--MANTA-automated-data-lineage/32.js +15 -0
- package/es/icons/ibm-cloud-pak--business-automation/16.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--business-automation/16.js +15 -0
- package/es/icons/ibm-cloud-pak--business-automation/20.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--business-automation/20.js +15 -0
- package/es/icons/ibm-cloud-pak--business-automation/24.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--business-automation/24.js +15 -0
- package/es/icons/ibm-cloud-pak--business-automation/32.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--business-automation/32.js +15 -0
- package/es/icons/ibm-cloud-pak--netezza/16.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--netezza/16.js +15 -0
- package/es/icons/ibm-cloud-pak--netezza/20.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--netezza/20.js +15 -0
- package/es/icons/ibm-cloud-pak--netezza/24.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--netezza/24.js +15 -0
- package/es/icons/ibm-cloud-pak--netezza/32.d.ts +17 -0
- package/es/icons/ibm-cloud-pak--netezza/32.js +15 -0
- package/es/icons/ibm-watson--assistant/16.d.ts +17 -0
- package/es/icons/ibm-watson--assistant/16.js +15 -0
- package/es/icons/ibm-watson--assistant/20.d.ts +17 -0
- package/es/icons/ibm-watson--assistant/20.js +15 -0
- package/es/icons/ibm-watson--assistant/24.d.ts +17 -0
- package/es/icons/ibm-watson--assistant/24.js +15 -0
- package/es/icons/ibm-watson--assistant/32.d.ts +17 -0
- package/es/icons/ibm-watson--assistant/32.js +15 -0
- package/es/icons/ibm-watson--discovery/16.d.ts +17 -0
- package/es/icons/ibm-watson--discovery/16.js +15 -0
- package/es/icons/ibm-watson--discovery/20.d.ts +17 -0
- package/es/icons/ibm-watson--discovery/20.js +15 -0
- package/es/icons/ibm-watson--discovery/24.d.ts +17 -0
- package/es/icons/ibm-watson--discovery/24.js +15 -0
- package/es/icons/ibm-watson--discovery/32.d.ts +17 -0
- package/es/icons/ibm-watson--discovery/32.js +15 -0
- package/es/icons/ibm-watson--knowledge-catalog/16.d.ts +17 -0
- package/es/icons/ibm-watson--knowledge-catalog/16.js +15 -0
- package/es/icons/ibm-watson--knowledge-catalog/20.d.ts +17 -0
- package/es/icons/ibm-watson--knowledge-catalog/20.js +15 -0
- package/es/icons/ibm-watson--knowledge-catalog/24.d.ts +17 -0
- package/es/icons/ibm-watson--knowledge-catalog/24.js +15 -0
- package/es/icons/ibm-watson--knowledge-catalog/32.d.ts +17 -0
- package/es/icons/ibm-watson--knowledge-catalog/32.js +15 -0
- package/es/icons/ibm-watson--knowledge-studio/16.d.ts +17 -0
- package/es/icons/ibm-watson--knowledge-studio/16.js +15 -0
- package/es/icons/ibm-watson--knowledge-studio/20.d.ts +17 -0
- package/es/icons/ibm-watson--knowledge-studio/20.js +15 -0
- package/es/icons/ibm-watson--knowledge-studio/24.d.ts +17 -0
- package/es/icons/ibm-watson--knowledge-studio/24.js +15 -0
- package/es/icons/ibm-watson--knowledge-studio/32.d.ts +17 -0
- package/es/icons/ibm-watson--knowledge-studio/32.js +15 -0
- package/es/icons/ibm-watson--language-translator/16.d.ts +17 -0
- package/es/icons/ibm-watson--language-translator/16.js +15 -0
- package/es/icons/ibm-watson--language-translator/20.d.ts +17 -0
- package/es/icons/ibm-watson--language-translator/20.js +15 -0
- package/es/icons/ibm-watson--language-translator/24.d.ts +17 -0
- package/es/icons/ibm-watson--language-translator/24.js +15 -0
- package/es/icons/ibm-watson--language-translator/32.d.ts +17 -0
- package/es/icons/ibm-watson--language-translator/32.js +15 -0
- package/es/icons/ibm-watson--machine-learning/16.d.ts +17 -0
- package/es/icons/ibm-watson--machine-learning/16.js +15 -0
- package/es/icons/ibm-watson--machine-learning/20.d.ts +17 -0
- package/es/icons/ibm-watson--machine-learning/20.js +15 -0
- package/es/icons/ibm-watson--machine-learning/24.d.ts +17 -0
- package/es/icons/ibm-watson--machine-learning/24.js +15 -0
- package/es/icons/ibm-watson--machine-learning/32.d.ts +17 -0
- package/es/icons/ibm-watson--machine-learning/32.js +15 -0
- package/es/icons/ibm-watson--natural-language-classifier/16.d.ts +17 -0
- package/es/icons/ibm-watson--natural-language-classifier/16.js +15 -0
- package/es/icons/ibm-watson--natural-language-classifier/20.d.ts +17 -0
- package/es/icons/ibm-watson--natural-language-classifier/20.js +15 -0
- package/es/icons/ibm-watson--natural-language-classifier/24.d.ts +17 -0
- package/es/icons/ibm-watson--natural-language-classifier/24.js +15 -0
- package/es/icons/ibm-watson--natural-language-classifier/32.d.ts +17 -0
- package/es/icons/ibm-watson--natural-language-classifier/32.js +15 -0
- package/es/icons/ibm-watson--natural-language-understanding/16.d.ts +17 -0
- package/es/icons/ibm-watson--natural-language-understanding/16.js +15 -0
- package/es/icons/ibm-watson--natural-language-understanding/20.d.ts +17 -0
- package/es/icons/ibm-watson--natural-language-understanding/20.js +15 -0
- package/es/icons/ibm-watson--natural-language-understanding/24.d.ts +17 -0
- package/es/icons/ibm-watson--natural-language-understanding/24.js +15 -0
- package/es/icons/ibm-watson--natural-language-understanding/32.d.ts +17 -0
- package/es/icons/ibm-watson--natural-language-understanding/32.js +15 -0
- package/es/icons/ibm-watson--openscale/16.d.ts +17 -0
- package/es/icons/ibm-watson--openscale/16.js +15 -0
- package/es/icons/ibm-watson--openscale/20.d.ts +17 -0
- package/es/icons/ibm-watson--openscale/20.js +15 -0
- package/es/icons/ibm-watson--openscale/24.d.ts +17 -0
- package/es/icons/ibm-watson--openscale/24.js +15 -0
- package/es/icons/ibm-watson--openscale/32.d.ts +17 -0
- package/es/icons/ibm-watson--openscale/32.js +15 -0
- package/es/icons/ibm-watson--query/16.d.ts +17 -0
- package/es/icons/ibm-watson--query/16.js +15 -0
- package/es/icons/ibm-watson--query/20.d.ts +17 -0
- package/es/icons/ibm-watson--query/20.js +15 -0
- package/es/icons/ibm-watson--query/24.d.ts +17 -0
- package/es/icons/ibm-watson--query/24.js +15 -0
- package/es/icons/ibm-watson--query/32.d.ts +17 -0
- package/es/icons/ibm-watson--query/32.js +15 -0
- package/es/icons/ibm-watson--speech-to-text/16.d.ts +17 -0
- package/es/icons/ibm-watson--speech-to-text/16.js +15 -0
- package/es/icons/ibm-watson--speech-to-text/20.d.ts +17 -0
- package/es/icons/ibm-watson--speech-to-text/20.js +15 -0
- package/es/icons/ibm-watson--speech-to-text/24.d.ts +17 -0
- package/es/icons/ibm-watson--speech-to-text/24.js +15 -0
- package/es/icons/ibm-watson--speech-to-text/32.d.ts +17 -0
- package/es/icons/ibm-watson--speech-to-text/32.js +15 -0
- package/es/icons/ibm-watson--studio/16.d.ts +17 -0
- package/es/icons/ibm-watson--studio/16.js +15 -0
- package/es/icons/ibm-watson--studio/20.d.ts +17 -0
- package/es/icons/ibm-watson--studio/20.js +15 -0
- package/es/icons/ibm-watson--studio/24.d.ts +17 -0
- package/es/icons/ibm-watson--studio/24.js +15 -0
- package/es/icons/ibm-watson--studio/32.d.ts +17 -0
- package/es/icons/ibm-watson--studio/32.js +15 -0
- package/es/icons/ibm-watson--text-to-speech/16.d.ts +17 -0
- package/es/icons/ibm-watson--text-to-speech/16.js +15 -0
- package/es/icons/ibm-watson--text-to-speech/20.d.ts +17 -0
- package/es/icons/ibm-watson--text-to-speech/20.js +15 -0
- package/es/icons/ibm-watson--text-to-speech/24.d.ts +17 -0
- package/es/icons/ibm-watson--text-to-speech/24.js +15 -0
- package/es/icons/ibm-watson--text-to-speech/32.d.ts +17 -0
- package/es/icons/ibm-watson--text-to-speech/32.js +15 -0
- package/es/icons/ibm-watson--tone-analyzer/16.d.ts +17 -0
- package/es/icons/ibm-watson--tone-analyzer/16.js +15 -0
- package/es/icons/ibm-watson--tone-analyzer/20.d.ts +17 -0
- package/es/icons/ibm-watson--tone-analyzer/20.js +15 -0
- package/es/icons/ibm-watson--tone-analyzer/24.d.ts +17 -0
- package/es/icons/ibm-watson--tone-analyzer/24.js +15 -0
- package/es/icons/ibm-watson--tone-analyzer/32.d.ts +17 -0
- package/es/icons/ibm-watson--tone-analyzer/32.js +15 -0
- package/es/icons/ibm-z--cloud-mod-stack/16.d.ts +17 -0
- package/es/icons/ibm-z--cloud-mod-stack/16.js +15 -0
- package/es/icons/ibm-z--cloud-mod-stack/20.d.ts +17 -0
- package/es/icons/ibm-z--cloud-mod-stack/20.js +15 -0
- package/es/icons/ibm-z--cloud-mod-stack/24.d.ts +17 -0
- package/es/icons/ibm-z--cloud-mod-stack/24.js +15 -0
- package/es/icons/ibm-z--cloud-mod-stack/32.d.ts +17 -0
- package/es/icons/ibm-z--cloud-mod-stack/32.js +15 -0
- package/es/icons/ibm-z-cloud--provisioning/16.d.ts +17 -0
- package/es/icons/ibm-z-cloud--provisioning/16.js +15 -0
- package/es/icons/ibm-z-cloud--provisioning/20.d.ts +17 -0
- package/es/icons/ibm-z-cloud--provisioning/20.js +15 -0
- package/es/icons/ibm-z-cloud--provisioning/24.d.ts +17 -0
- package/es/icons/ibm-z-cloud--provisioning/24.js +15 -0
- package/es/icons/ibm-z-cloud--provisioning/32.d.ts +17 -0
- package/es/icons/ibm-z-cloud--provisioning/32.js +15 -0
- package/es/icons/ibm-z-os--package-manager/16.d.ts +17 -0
- package/es/icons/ibm-z-os--package-manager/16.js +15 -0
- package/es/icons/ibm-z-os--package-manager/20.d.ts +17 -0
- package/es/icons/ibm-z-os--package-manager/20.js +15 -0
- package/es/icons/ibm-z-os--package-manager/24.d.ts +17 -0
- package/es/icons/ibm-z-os--package-manager/24.js +15 -0
- package/es/icons/ibm-z-os--package-manager/32.d.ts +17 -0
- package/es/icons/ibm-z-os--package-manager/32.js +15 -0
- package/es/icons/keyboard--off/16.d.ts +17 -0
- package/es/icons/keyboard--off/16.js +15 -0
- package/es/icons/keyboard--off/20.d.ts +17 -0
- package/es/icons/keyboard--off/20.js +15 -0
- package/es/icons/keyboard--off/24.d.ts +17 -0
- package/es/icons/keyboard--off/24.js +15 -0
- package/es/icons/keyboard--off/32.d.ts +17 -0
- package/es/icons/keyboard--off/32.js +15 -0
- package/es/icons/list--checked/16.js +1 -1
- package/es/icons/list--checked/20.js +1 -1
- package/es/icons/list--checked/24.js +1 -1
- package/es/icons/list--checked/32.js +1 -1
- package/es/icons/list--checked--mirror/16.d.ts +17 -0
- package/es/icons/list--checked--mirror/16.js +15 -0
- package/es/icons/list--checked--mirror/20.d.ts +17 -0
- package/es/icons/list--checked--mirror/20.js +15 -0
- package/es/icons/list--checked--mirror/24.d.ts +17 -0
- package/es/icons/list--checked--mirror/24.js +15 -0
- package/es/icons/list--checked--mirror/32.d.ts +17 -0
- package/es/icons/list--checked--mirror/32.js +15 -0
- package/es/icons/list--numbered--mirror/16.d.ts +17 -0
- package/es/icons/list--numbered--mirror/16.js +15 -0
- package/es/icons/list--numbered--mirror/20.d.ts +17 -0
- package/es/icons/list--numbered--mirror/20.js +15 -0
- package/es/icons/list--numbered--mirror/24.d.ts +17 -0
- package/es/icons/list--numbered--mirror/24.js +15 -0
- package/es/icons/list--numbered--mirror/32.d.ts +17 -0
- package/es/icons/list--numbered--mirror/32.js +15 -0
- package/es/icons/logical-partition/16.js +1 -1
- package/es/icons/logical-partition/20.js +1 -1
- package/es/icons/logical-partition/24.js +1 -1
- package/es/icons/logical-partition/32.js +1 -1
- package/es/icons/logo--angular/16.d.ts +17 -0
- package/es/icons/logo--angular/16.js +15 -0
- package/es/icons/logo--angular/20.d.ts +17 -0
- package/es/icons/logo--angular/20.js +15 -0
- package/es/icons/logo--angular/24.d.ts +17 -0
- package/es/icons/logo--angular/24.js +15 -0
- package/es/icons/logo--angular/32.d.ts +17 -0
- package/es/icons/logo--angular/32.js +15 -0
- package/es/icons/logo--ansible-community/16.d.ts +17 -0
- package/es/icons/logo--ansible-community/16.js +15 -0
- package/es/icons/logo--ansible-community/20.d.ts +17 -0
- package/es/icons/logo--ansible-community/20.js +15 -0
- package/es/icons/logo--ansible-community/24.d.ts +17 -0
- package/es/icons/logo--ansible-community/24.js +15 -0
- package/es/icons/logo--ansible-community/32.d.ts +17 -0
- package/es/icons/logo--ansible-community/32.js +15 -0
- package/es/icons/logo--discord/16.js +1 -1
- package/es/icons/logo--discord/20.js +1 -1
- package/es/icons/logo--discord/24.js +1 -1
- package/es/icons/logo--discord/32.js +1 -1
- package/es/icons/logo--figma/16.d.ts +17 -0
- package/es/icons/logo--figma/16.js +15 -0
- package/es/icons/logo--figma/20.d.ts +17 -0
- package/es/icons/logo--figma/20.js +15 -0
- package/es/icons/logo--figma/24.d.ts +17 -0
- package/es/icons/logo--figma/24.js +15 -0
- package/es/icons/logo--figma/32.d.ts +17 -0
- package/es/icons/logo--figma/32.js +15 -0
- package/es/icons/logo--invision/16.d.ts +17 -0
- package/es/icons/logo--invision/16.js +15 -0
- package/es/icons/logo--invision/20.d.ts +17 -0
- package/es/icons/logo--invision/20.js +15 -0
- package/es/icons/logo--invision/24.d.ts +17 -0
- package/es/icons/logo--invision/24.js +15 -0
- package/es/icons/logo--invision/32.d.ts +17 -0
- package/es/icons/logo--invision/32.js +15 -0
- package/es/icons/logo--kubernetes/16.d.ts +17 -0
- package/es/icons/logo--kubernetes/16.js +15 -0
- package/es/icons/logo--kubernetes/20.d.ts +17 -0
- package/es/icons/logo--kubernetes/20.js +15 -0
- package/es/icons/logo--kubernetes/24.d.ts +17 -0
- package/es/icons/logo--kubernetes/24.js +15 -0
- package/es/icons/logo--kubernetes/32.d.ts +17 -0
- package/es/icons/logo--kubernetes/32.js +15 -0
- package/es/icons/logo--medium/16.js +1 -1
- package/es/icons/logo--medium/20.js +1 -1
- package/es/icons/logo--medium/24.js +1 -1
- package/es/icons/logo--medium/32.js +1 -1
- package/es/icons/logo--npm/16.d.ts +17 -0
- package/es/icons/logo--npm/16.js +15 -0
- package/es/icons/logo--npm/20.d.ts +17 -0
- package/es/icons/logo--npm/20.js +15 -0
- package/es/icons/logo--npm/24.d.ts +17 -0
- package/es/icons/logo--npm/24.js +15 -0
- package/es/icons/logo--npm/32.d.ts +17 -0
- package/es/icons/logo--npm/32.js +15 -0
- package/es/icons/logo--react/16.d.ts +17 -0
- package/es/icons/logo--react/16.js +15 -0
- package/es/icons/logo--react/20.d.ts +17 -0
- package/es/icons/logo--react/20.js +15 -0
- package/es/icons/logo--react/24.d.ts +17 -0
- package/es/icons/logo--react/24.js +15 -0
- package/es/icons/logo--react/32.d.ts +17 -0
- package/es/icons/logo--react/32.js +15 -0
- package/es/icons/logo--red-hat-ansible/16.d.ts +17 -0
- package/es/icons/logo--red-hat-ansible/16.js +15 -0
- package/es/icons/logo--red-hat-ansible/20.d.ts +17 -0
- package/es/icons/logo--red-hat-ansible/20.js +15 -0
- package/es/icons/logo--red-hat-ansible/24.d.ts +17 -0
- package/es/icons/logo--red-hat-ansible/24.js +15 -0
- package/es/icons/logo--red-hat-ansible/32.d.ts +17 -0
- package/es/icons/logo--red-hat-ansible/32.js +15 -0
- package/es/icons/logo--sketch/16.d.ts +17 -0
- package/es/icons/logo--sketch/16.js +15 -0
- package/es/icons/logo--sketch/20.d.ts +17 -0
- package/es/icons/logo--sketch/20.js +15 -0
- package/es/icons/logo--sketch/24.d.ts +17 -0
- package/es/icons/logo--sketch/24.js +15 -0
- package/es/icons/logo--sketch/32.d.ts +17 -0
- package/es/icons/logo--sketch/32.js +15 -0
- package/es/icons/logo--svelte/16.d.ts +17 -0
- package/es/icons/logo--svelte/16.js +15 -0
- package/es/icons/logo--svelte/20.d.ts +17 -0
- package/es/icons/logo--svelte/20.js +15 -0
- package/es/icons/logo--svelte/24.d.ts +17 -0
- package/es/icons/logo--svelte/24.js +15 -0
- package/es/icons/logo--svelte/32.d.ts +17 -0
- package/es/icons/logo--svelte/32.js +15 -0
- package/es/icons/logo--twitter/16.js +1 -1
- package/es/icons/logo--twitter/20.js +1 -1
- package/es/icons/logo--twitter/24.js +1 -1
- package/es/icons/logo--twitter/32.js +1 -1
- package/es/icons/logo--vmware/16.js +1 -1
- package/es/icons/logo--vmware/20.js +1 -1
- package/es/icons/logo--vmware/24.js +1 -1
- package/es/icons/logo--vmware/32.js +1 -1
- package/es/icons/logo--vmware--alt/16.d.ts +17 -0
- package/es/icons/logo--vmware--alt/16.js +15 -0
- package/es/icons/logo--vmware--alt/20.d.ts +17 -0
- package/es/icons/logo--vmware--alt/20.js +15 -0
- package/es/icons/logo--vmware--alt/24.d.ts +17 -0
- package/es/icons/logo--vmware--alt/24.js +15 -0
- package/es/icons/logo--vmware--alt/32.d.ts +17 -0
- package/es/icons/logo--vmware--alt/32.js +15 -0
- package/es/icons/logo--vue/16.d.ts +17 -0
- package/es/icons/logo--vue/16.js +15 -0
- package/es/icons/logo--vue/20.d.ts +17 -0
- package/es/icons/logo--vue/20.js +15 -0
- package/es/icons/logo--vue/24.d.ts +17 -0
- package/es/icons/logo--vue/24.js +15 -0
- package/es/icons/logo--vue/32.d.ts +17 -0
- package/es/icons/logo--vue/32.js +15 -0
- package/es/icons/logo--yelp/16.js +1 -1
- package/es/icons/logo--yelp/20.js +1 -1
- package/es/icons/logo--yelp/24.js +1 -1
- package/es/icons/logo--yelp/32.js +1 -1
- package/es/icons/microservices--1/16.d.ts +17 -0
- package/es/icons/microservices--1/16.js +15 -0
- package/es/icons/microservices--1/20.d.ts +17 -0
- package/es/icons/microservices--1/20.js +15 -0
- package/es/icons/microservices--1/24.d.ts +17 -0
- package/es/icons/microservices--1/24.js +15 -0
- package/es/icons/microservices--1/32.d.ts +17 -0
- package/es/icons/microservices--1/32.js +15 -0
- package/es/icons/microservices--2/16.d.ts +17 -0
- package/es/icons/microservices--2/16.js +15 -0
- package/es/icons/microservices--2/20.d.ts +17 -0
- package/es/icons/microservices--2/20.js +15 -0
- package/es/icons/microservices--2/24.d.ts +17 -0
- package/es/icons/microservices--2/24.js +15 -0
- package/es/icons/microservices--2/32.d.ts +17 -0
- package/es/icons/microservices--2/32.js +15 -0
- package/es/icons/plan/16.d.ts +17 -0
- package/es/icons/plan/16.js +15 -0
- package/es/icons/plan/20.d.ts +17 -0
- package/es/icons/plan/20.js +15 -0
- package/es/icons/plan/24.d.ts +17 -0
- package/es/icons/plan/24.js +15 -0
- package/es/icons/plan/32.d.ts +17 -0
- package/es/icons/plan/32.js +15 -0
- package/es/icons/port--input/16.d.ts +17 -0
- package/es/icons/port--input/16.js +15 -0
- package/es/icons/port--input/20.d.ts +17 -0
- package/es/icons/port--input/20.js +15 -0
- package/es/icons/port--input/24.d.ts +17 -0
- package/es/icons/port--input/24.js +15 -0
- package/es/icons/port--input/32.d.ts +17 -0
- package/es/icons/port--input/32.js +15 -0
- package/es/icons/port--output/16.d.ts +17 -0
- package/es/icons/port--output/16.js +15 -0
- package/es/icons/port--output/20.d.ts +17 -0
- package/es/icons/port--output/20.js +15 -0
- package/es/icons/port--output/24.d.ts +17 -0
- package/es/icons/port--output/24.js +15 -0
- package/es/icons/port--output/32.d.ts +17 -0
- package/es/icons/port--output/32.js +15 -0
- package/es/icons/promote/16.d.ts +17 -0
- package/es/icons/promote/16.js +15 -0
- package/es/icons/promote/20.d.ts +17 -0
- package/es/icons/promote/20.js +15 -0
- package/es/icons/promote/24.d.ts +17 -0
- package/es/icons/promote/24.js +15 -0
- package/es/icons/promote/32.d.ts +17 -0
- package/es/icons/promote/32.js +15 -0
- package/es/icons/recycle/16.d.ts +17 -0
- package/es/icons/recycle/16.js +15 -0
- package/es/icons/recycle/20.d.ts +17 -0
- package/es/icons/recycle/20.js +15 -0
- package/es/icons/recycle/24.d.ts +17 -0
- package/es/icons/recycle/24.js +15 -0
- package/es/icons/recycle/32.d.ts +17 -0
- package/es/icons/recycle/32.js +15 -0
- package/es/icons/reference-architecture/16.d.ts +17 -0
- package/es/icons/reference-architecture/16.js +15 -0
- package/es/icons/reference-architecture/20.d.ts +17 -0
- package/es/icons/reference-architecture/20.js +15 -0
- package/es/icons/reference-architecture/24.d.ts +17 -0
- package/es/icons/reference-architecture/24.js +15 -0
- package/es/icons/reference-architecture/32.d.ts +17 -0
- package/es/icons/reference-architecture/32.js +15 -0
- package/es/icons/repo--artifact/16.d.ts +17 -0
- package/es/icons/repo--artifact/16.js +15 -0
- package/es/icons/repo--artifact/20.d.ts +17 -0
- package/es/icons/repo--artifact/20.js +15 -0
- package/es/icons/repo--artifact/24.d.ts +17 -0
- package/es/icons/repo--artifact/24.js +15 -0
- package/es/icons/repo--artifact/32.d.ts +17 -0
- package/es/icons/repo--artifact/32.js +15 -0
- package/es/icons/repo--source-code/16.d.ts +17 -0
- package/es/icons/repo--source-code/16.js +15 -0
- package/es/icons/repo--source-code/20.d.ts +17 -0
- package/es/icons/repo--source-code/20.js +15 -0
- package/es/icons/repo--source-code/24.d.ts +17 -0
- package/es/icons/repo--source-code/24.js +15 -0
- package/es/icons/repo--source-code/32.d.ts +17 -0
- package/es/icons/repo--source-code/32.js +15 -0
- package/es/icons/rule--data-quality/16.d.ts +17 -0
- package/es/icons/rule--data-quality/16.js +15 -0
- package/es/icons/rule--data-quality/20.d.ts +17 -0
- package/es/icons/rule--data-quality/20.js +15 -0
- package/es/icons/rule--data-quality/24.d.ts +17 -0
- package/es/icons/rule--data-quality/24.js +15 -0
- package/es/icons/rule--data-quality/32.d.ts +17 -0
- package/es/icons/rule--data-quality/32.js +15 -0
- package/es/icons/run--mirror/16.d.ts +17 -0
- package/es/icons/run--mirror/16.js +15 -0
- package/es/icons/run--mirror/20.d.ts +17 -0
- package/es/icons/run--mirror/20.js +15 -0
- package/es/icons/run--mirror/24.d.ts +17 -0
- package/es/icons/run--mirror/24.js +15 -0
- package/es/icons/run--mirror/32.d.ts +17 -0
- package/es/icons/run--mirror/32.js +15 -0
- package/es/icons/screen-map/16.d.ts +17 -0
- package/es/icons/screen-map/16.js +15 -0
- package/es/icons/screen-map/20.d.ts +17 -0
- package/es/icons/screen-map/20.js +15 -0
- package/es/icons/screen-map/24.d.ts +17 -0
- package/es/icons/screen-map/24.js +15 -0
- package/es/icons/screen-map/32.d.ts +17 -0
- package/es/icons/screen-map/32.js +15 -0
- package/es/icons/screen-map--set/16.d.ts +17 -0
- package/es/icons/screen-map--set/16.js +15 -0
- package/es/icons/screen-map--set/20.d.ts +17 -0
- package/es/icons/screen-map--set/20.js +15 -0
- package/es/icons/screen-map--set/24.d.ts +17 -0
- package/es/icons/screen-map--set/24.js +15 -0
- package/es/icons/screen-map--set/32.d.ts +17 -0
- package/es/icons/screen-map--set/32.js +15 -0
- package/es/icons/search--locate--mirror/16.d.ts +17 -0
- package/es/icons/search--locate--mirror/16.js +15 -0
- package/es/icons/search--locate--mirror/20.d.ts +17 -0
- package/es/icons/search--locate--mirror/20.js +15 -0
- package/es/icons/search--locate--mirror/24.d.ts +17 -0
- package/es/icons/search--locate--mirror/24.js +15 -0
- package/es/icons/search--locate--mirror/32.d.ts +17 -0
- package/es/icons/search--locate--mirror/32.js +15 -0
- package/es/icons/service-id/16.d.ts +17 -0
- package/es/icons/service-id/16.js +15 -0
- package/es/icons/service-id/20.d.ts +17 -0
- package/es/icons/service-id/20.js +15 -0
- package/es/icons/service-id/24.d.ts +17 -0
- package/es/icons/service-id/24.js +15 -0
- package/es/icons/service-id/32.d.ts +17 -0
- package/es/icons/service-id/32.js +15 -0
- package/es/icons/side-panel--close/16.d.ts +17 -0
- package/es/icons/side-panel--close/16.js +15 -0
- package/es/icons/side-panel--close/20.d.ts +17 -0
- package/es/icons/side-panel--close/20.js +15 -0
- package/es/icons/side-panel--close/24.d.ts +17 -0
- package/es/icons/side-panel--close/24.js +15 -0
- package/es/icons/side-panel--close/32.d.ts +17 -0
- package/es/icons/side-panel--close/32.js +15 -0
- package/es/icons/side-panel--close--filled/16.d.ts +17 -0
- package/es/icons/side-panel--close--filled/16.js +15 -0
- package/es/icons/side-panel--close--filled/20.d.ts +17 -0
- package/es/icons/side-panel--close--filled/20.js +15 -0
- package/es/icons/side-panel--close--filled/24.d.ts +17 -0
- package/es/icons/side-panel--close--filled/24.js +15 -0
- package/es/icons/side-panel--close--filled/32.d.ts +17 -0
- package/es/icons/side-panel--close--filled/32.js +15 -0
- package/es/icons/side-panel--open/16.d.ts +17 -0
- package/es/icons/side-panel--open/16.js +15 -0
- package/es/icons/side-panel--open/20.d.ts +17 -0
- package/es/icons/side-panel--open/20.js +15 -0
- package/es/icons/side-panel--open/24.d.ts +17 -0
- package/es/icons/side-panel--open/24.js +15 -0
- package/es/icons/side-panel--open/32.d.ts +17 -0
- package/es/icons/side-panel--open/32.js +15 -0
- package/es/icons/side-panel--open--filled/16.d.ts +17 -0
- package/es/icons/side-panel--open--filled/16.js +15 -0
- package/es/icons/side-panel--open--filled/20.d.ts +17 -0
- package/es/icons/side-panel--open--filled/20.js +15 -0
- package/es/icons/side-panel--open--filled/24.d.ts +17 -0
- package/es/icons/side-panel--open--filled/24.js +15 -0
- package/es/icons/side-panel--open--filled/32.d.ts +17 -0
- package/es/icons/side-panel--open--filled/32.js +15 -0
- package/es/icons/summary--KPI--mirror/16.d.ts +17 -0
- package/es/icons/summary--KPI--mirror/16.js +15 -0
- package/es/icons/summary--KPI--mirror/20.d.ts +17 -0
- package/es/icons/summary--KPI--mirror/20.js +15 -0
- package/es/icons/summary--KPI--mirror/24.d.ts +17 -0
- package/es/icons/summary--KPI--mirror/24.js +15 -0
- package/es/icons/summary--KPI--mirror/32.d.ts +17 -0
- package/es/icons/summary--KPI--mirror/32.js +15 -0
- package/es/icons/tcp-ip-service/16.d.ts +17 -0
- package/es/icons/tcp-ip-service/16.js +15 -0
- package/es/icons/tcp-ip-service/20.d.ts +17 -0
- package/es/icons/tcp-ip-service/20.js +15 -0
- package/es/icons/tcp-ip-service/24.d.ts +17 -0
- package/es/icons/tcp-ip-service/24.js +15 -0
- package/es/icons/tcp-ip-service/32.d.ts +17 -0
- package/es/icons/tcp-ip-service/32.js +15 -0
- package/es/icons/test-tool/16.d.ts +17 -0
- package/es/icons/test-tool/16.js +15 -0
- package/es/icons/test-tool/20.d.ts +17 -0
- package/es/icons/test-tool/20.js +15 -0
- package/es/icons/test-tool/24.d.ts +17 -0
- package/es/icons/test-tool/24.js +15 -0
- package/es/icons/test-tool/32.d.ts +17 -0
- package/es/icons/test-tool/32.js +15 -0
- package/es/icons/tools--alt/16.js +1 -1
- package/es/icons/tools--alt/20.js +1 -1
- package/es/icons/tools--alt/24.js +1 -1
- package/es/icons/tools--alt/32.js +1 -1
- package/es/icons/transform--binary/16.d.ts +17 -0
- package/es/icons/transform--binary/16.js +15 -0
- package/es/icons/transform--binary/20.d.ts +17 -0
- package/es/icons/transform--binary/20.js +15 -0
- package/es/icons/transform--binary/24.d.ts +17 -0
- package/es/icons/transform--binary/24.js +15 -0
- package/es/icons/transform--binary/32.d.ts +17 -0
- package/es/icons/transform--binary/32.js +15 -0
- package/es/icons/transform--instructions/16.d.ts +17 -0
- package/es/icons/transform--instructions/16.js +15 -0
- package/es/icons/transform--instructions/20.d.ts +17 -0
- package/es/icons/transform--instructions/20.js +15 -0
- package/es/icons/transform--instructions/24.d.ts +17 -0
- package/es/icons/transform--instructions/24.js +15 -0
- package/es/icons/transform--instructions/32.d.ts +17 -0
- package/es/icons/transform--instructions/32.js +15 -0
- package/es/icons/transform--language/16.d.ts +17 -0
- package/es/icons/transform--language/16.js +15 -0
- package/es/icons/transform--language/20.d.ts +17 -0
- package/es/icons/transform--language/20.js +15 -0
- package/es/icons/transform--language/24.d.ts +17 -0
- package/es/icons/transform--language/24.js +15 -0
- package/es/icons/transform--language/32.d.ts +17 -0
- package/es/icons/transform--language/32.js +15 -0
- package/es/icons/tsq/16.d.ts +17 -0
- package/es/icons/tsq/16.js +15 -0
- package/es/icons/tsq/20.d.ts +17 -0
- package/es/icons/tsq/20.js +15 -0
- package/es/icons/tsq/24.d.ts +17 -0
- package/es/icons/tsq/24.js +15 -0
- package/es/icons/tsq/32.d.ts +17 -0
- package/es/icons/tsq/32.js +15 -0
- package/es/icons/unsaved/16.d.ts +17 -0
- package/es/icons/unsaved/16.js +15 -0
- package/es/icons/unsaved/20.d.ts +17 -0
- package/es/icons/unsaved/20.js +15 -0
- package/es/icons/unsaved/24.d.ts +17 -0
- package/es/icons/unsaved/24.js +15 -0
- package/es/icons/unsaved/32.d.ts +17 -0
- package/es/icons/unsaved/32.js +15 -0
- package/es/icons/user--sponsor/16.d.ts +17 -0
- package/es/icons/user--sponsor/16.js +15 -0
- package/es/icons/user--sponsor/20.d.ts +17 -0
- package/es/icons/user--sponsor/20.js +15 -0
- package/es/icons/user--sponsor/24.d.ts +17 -0
- package/es/icons/user--sponsor/24.js +15 -0
- package/es/icons/user--sponsor/32.d.ts +17 -0
- package/es/icons/user--sponsor/32.js +15 -0
- package/es/icons/watson-health/image-availability--local/16.d.ts +17 -0
- package/es/icons/watson-health/image-availability--local/16.js +15 -0
- package/es/icons/watson-health/image-availability--local/20.d.ts +17 -0
- package/es/icons/watson-health/image-availability--local/20.js +15 -0
- package/es/icons/watson-health/image-availability--local/24.d.ts +17 -0
- package/es/icons/watson-health/image-availability--local/24.js +15 -0
- package/es/icons/watson-health/image-availability--local/32.d.ts +17 -0
- package/es/icons/watson-health/image-availability--local/32.js +15 -0
- package/es/icons/watson-health/image-availability--retrieving/16.d.ts +17 -0
- package/es/icons/watson-health/image-availability--retrieving/16.js +15 -0
- package/es/icons/watson-health/image-availability--retrieving/20.d.ts +17 -0
- package/es/icons/watson-health/image-availability--retrieving/20.js +15 -0
- package/es/icons/watson-health/image-availability--retrieving/24.d.ts +17 -0
- package/es/icons/watson-health/image-availability--retrieving/24.js +15 -0
- package/es/icons/watson-health/image-availability--retrieving/32.d.ts +17 -0
- package/es/icons/watson-health/image-availability--retrieving/32.js +15 -0
- package/es/icons/watson-health/image-availability--unavailable/16.d.ts +17 -0
- package/es/icons/watson-health/image-availability--unavailable/16.js +15 -0
- package/es/icons/watson-health/image-availability--unavailable/20.d.ts +17 -0
- package/es/icons/watson-health/image-availability--unavailable/20.js +15 -0
- package/es/icons/watson-health/image-availability--unavailable/24.d.ts +17 -0
- package/es/icons/watson-health/image-availability--unavailable/24.js +15 -0
- package/es/icons/watson-health/image-availability--unavailable/32.d.ts +17 -0
- package/es/icons/watson-health/image-availability--unavailable/32.js +15 -0
- package/es/icons/white-paper/16.d.ts +17 -0
- package/es/icons/white-paper/16.js +15 -0
- package/es/icons/white-paper/20.d.ts +17 -0
- package/es/icons/white-paper/20.js +15 -0
- package/es/icons/white-paper/24.d.ts +17 -0
- package/es/icons/white-paper/24.js +15 -0
- package/es/icons/white-paper/32.d.ts +17 -0
- package/es/icons/white-paper/32.js +15 -0
- package/es/icons/workflow-automation/16.d.ts +17 -0
- package/es/icons/workflow-automation/16.js +15 -0
- package/es/icons/workflow-automation/20.d.ts +17 -0
- package/es/icons/workflow-automation/20.js +15 -0
- package/es/icons/workflow-automation/24.d.ts +17 -0
- package/es/icons/workflow-automation/24.js +15 -0
- package/es/icons/workflow-automation/32.d.ts +17 -0
- package/es/icons/workflow-automation/32.js +15 -0
- package/es/icons/z--lpar/16.d.ts +17 -0
- package/es/icons/z--lpar/16.js +15 -0
- package/es/icons/z--lpar/20.d.ts +17 -0
- package/es/icons/z--lpar/20.js +15 -0
- package/es/icons/z--lpar/24.d.ts +17 -0
- package/es/icons/z--lpar/24.js +15 -0
- package/es/icons/z--lpar/32.d.ts +17 -0
- package/es/icons/z--lpar/32.js +15 -0
- package/es/icons/z--systems/16.d.ts +17 -0
- package/es/icons/z--systems/16.js +15 -0
- package/es/icons/z--systems/20.d.ts +17 -0
- package/es/icons/z--systems/20.js +15 -0
- package/es/icons/z--systems/24.d.ts +17 -0
- package/es/icons/z--systems/24.js +15 -0
- package/es/icons/z--systems/32.d.ts +17 -0
- package/es/icons/z--systems/32.js +15 -0
- package/es/icons/zos/16.d.ts +17 -0
- package/es/icons/zos/16.js +15 -0
- package/es/icons/zos/20.d.ts +17 -0
- package/es/icons/zos/20.js +15 -0
- package/es/icons/zos/24.d.ts +17 -0
- package/es/icons/zos/24.js +15 -0
- package/es/icons/zos/32.d.ts +17 -0
- package/es/icons/zos/32.js +15 -0
- package/es/icons/zos--sysplex/16.d.ts +17 -0
- package/es/icons/zos--sysplex/16.js +15 -0
- package/es/icons/zos--sysplex/20.d.ts +17 -0
- package/es/icons/zos--sysplex/20.js +15 -0
- package/es/icons/zos--sysplex/24.d.ts +17 -0
- package/es/icons/zos--sysplex/24.js +15 -0
- package/es/icons/zos--sysplex/32.d.ts +17 -0
- package/es/icons/zos--sysplex/32.js +15 -0
- package/es/index.d.ts +6 -0
- package/es/index.d.ts.map +1 -1
- package/es/index.js +6 -0
- package/es/index.js.map +1 -1
- package/lib/components/button/defs.js +1 -0
- package/lib/components/button/defs.js.map +1 -1
- package/lib/components/file-uploader/defs.js +3 -4
- package/lib/components/file-uploader/defs.js.map +1 -1
- package/lib/components/progress-bar/defs.js +44 -0
- package/lib/components/progress-bar/defs.js.map +1 -0
- package/lib/components-react-node/file-uploader/demo-file-uploader.js +30 -6
- package/lib/components-react-node/file-uploader/file-uploader-button.js +49 -0
- package/lib/components-react-node/file-uploader/file-uploader-drop-container.js +49 -0
- package/lib/components-react-node/file-uploader/file-uploader-skeleton.js +36 -0
- package/lib/components-react-node/progress-bar/defs.js +24 -0
- package/lib/components-react-node/progress-bar/progress-bar.js +55 -0
- package/lib/globals/wrappers/createReactCustomElementType.js +1 -1
- package/lib/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/package.json +1 -1
- package/scss/components/file-uploader/file-uploader.scss +22 -23
- package/scss/components/progress-bar/progress-bar.scss +10 -0
- package/es/components/file-uploader/drop-container.d.ts +0 -385
- package/es/components/file-uploader/drop-container.d.ts.map +0 -1
- package/es/components/file-uploader/drop-container.js +0 -264
- package/es/components/file-uploader/drop-container.js.map +0 -1
- package/es/components/input/defs.d.ts +0 -44
- package/es/components/input/defs.d.ts.map +0 -1
- package/es/components/input/defs.js +0 -36
- package/es/components/input/defs.js.map +0 -1
- package/es/components/input/index.d.ts +0 -11
- package/es/components/input/index.d.ts.map +0 -1
- package/es/components/input/index.js +0 -11
- package/es/components/input/index.js.map +0 -1
- package/es/components/input/input.css.js +0 -12
- package/es/components/input/input.d.ts +0 -786
- package/es/components/input/input.d.ts.map +0 -1
- package/es/components/input/input.js +0 -574
- package/es/components/input/input.js.map +0 -1
- package/es/components/input/input.rtl.css.js +0 -12
- package/es/components/search/defs.d.ts +0 -11
- package/es/components/search/defs.d.ts.map +0 -1
- package/es/components/search/defs.js +0 -11
- package/es/components/search/defs.js.map +0 -1
- package/es/components-react/file-uploader/drop-container.d.ts +0 -19
- package/es/components-react/file-uploader/drop-container.js +0 -28
- package/es/components-react/input/defs.js +0 -9
- package/es/components-react/input/input.d.ts +0 -15
- package/es/components-react/input/input.js +0 -22
- package/es/components-react/search/defs.d.ts +0 -14
- package/es/components-react/search/defs.js +0 -9
- package/es/icons/app-switcher/16.js +0 -15
- package/es/icons/app-switcher/20.js +0 -15
- package/es/icons/app-switcher/24.js +0 -15
- package/es/icons/app-switcher/32.js +0 -15
- package/es/icons/arrows/16.js +0 -15
- package/es/icons/arrows/20.js +0 -15
- package/es/icons/arrows/24.js +0 -15
- package/es/icons/arrows/32.js +0 -15
- package/es/icons/back-to-top/16.js +0 -15
- package/es/icons/back-to-top/20.js +0 -15
- package/es/icons/back-to-top/24.js +0 -15
- package/es/icons/back-to-top/32.js +0 -15
- package/es/icons/checkbox--undeterminate/16.js +0 -15
- package/es/icons/checkbox--undeterminate/20.js +0 -15
- package/es/icons/checkbox--undeterminate/24.js +0 -15
- package/es/icons/checkbox--undeterminate/32.js +0 -15
- package/es/icons/checkbox--undeterminate--filled/16.js +0 -15
- package/es/icons/checkbox--undeterminate--filled/20.js +0 -15
- package/es/icons/checkbox--undeterminate--filled/24.js +0 -15
- package/es/icons/checkbox--undeterminate--filled/32.js +0 -15
- package/es/icons/cloud--lightning/16.js +0 -15
- package/es/icons/cloud--lightning/20.js +0 -15
- package/es/icons/cloud--lightning/24.js +0 -15
- package/es/icons/cloud--lightning/32.js +0 -15
- package/es/icons/cloud--rain/16.js +0 -15
- package/es/icons/cloud--rain/20.js +0 -15
- package/es/icons/cloud--rain/24.js +0 -15
- package/es/icons/cloud--rain/32.js +0 -15
- package/es/icons/cloud--snow/16.js +0 -15
- package/es/icons/cloud--snow/20.js +0 -15
- package/es/icons/cloud--snow/24.js +0 -15
- package/es/icons/cloud--snow/32.js +0 -15
- package/es/icons/delete/16.js +0 -15
- package/es/icons/delete/20.js +0 -15
- package/es/icons/delete/24.js +0 -15
- package/es/icons/delete/32.js +0 -15
- package/es/icons/glyph--caution/index.js +0 -15
- package/es/icons/glyph--caution-inverted/index.js +0 -15
- package/es/icons/glyph--circle-fill/index.js +0 -15
- package/es/icons/glyph--circle-stroke/index.js +0 -15
- package/es/icons/glyph--critical/index.js +0 -15
- package/es/icons/glyph--incomplete/index.js +0 -15
- package/es/icons/glyph--square-fill/index.js +0 -15
- package/es/icons/letter--Aa--large/16.js +0 -15
- package/es/icons/letter--Aa--large/20.js +0 -15
- package/es/icons/letter--Aa--large/24.js +0 -15
- package/es/icons/letter--Aa--large/32.js +0 -15
- package/es/icons/logo--delicious/16.js +0 -15
- package/es/icons/logo--delicious/20.js +0 -15
- package/es/icons/logo--delicious/24.js +0 -15
- package/es/icons/logo--delicious/32.js +0 -15
- package/es/icons/logo--google/16.js +0 -15
- package/es/icons/logo--google/20.js +0 -15
- package/es/icons/logo--google/24.js +0 -15
- package/es/icons/logo--google/32.js +0 -15
- package/es/icons/logo--stumbleupon/16.js +0 -15
- package/es/icons/logo--stumbleupon/20.js +0 -15
- package/es/icons/logo--stumbleupon/24.js +0 -15
- package/es/icons/logo--stumbleupon/32.js +0 -15
- package/es/icons/mammogram--stacked/16.js +0 -15
- package/es/icons/mammogram--stacked/20.js +0 -15
- package/es/icons/mammogram--stacked/24.js +0 -15
- package/es/icons/mammogram--stacked/32.js +0 -15
- package/es/icons/misuse--alt/16.js +0 -15
- package/es/icons/misuse--alt/20.js +0 -15
- package/es/icons/misuse--alt/24.js +0 -15
- package/es/icons/misuse--alt/32.js +0 -15
- package/es/icons/research--bloch-sphere/16.js +0 -15
- package/es/icons/research--bloch-sphere/20.js +0 -15
- package/es/icons/research--bloch-sphere/24.js +0 -15
- package/es/icons/research--bloch-sphere/32.js +0 -15
- package/es/icons/research--hinton-plot/16.js +0 -15
- package/es/icons/research--hinton-plot/20.js +0 -15
- package/es/icons/research--hinton-plot/24.js +0 -15
- package/es/icons/research--hinton-plot/32.js +0 -15
- package/es/icons/research--matrix/16.js +0 -15
- package/es/icons/research--matrix/20.js +0 -15
- package/es/icons/research--matrix/24.js +0 -15
- package/es/icons/research--matrix/32.js +0 -15
- package/es/icons/sunny/16.js +0 -15
- package/es/icons/sunny/20.js +0 -15
- package/es/icons/sunny/24.js +0 -15
- package/es/icons/sunny/32.js +0 -15
- package/es/icons/undefined/index.js +0 -15
- package/es/icons/watson-health/edit-filter/16.js +0 -15
- package/es/icons/watson-health/edit-filter/20.js +0 -15
- package/es/icons/watson-health/edit-filter/24.js +0 -15
- package/es/icons/watson-health/edit-filter/32.js +0 -15
- package/lib/components/input/defs.js +0 -47
- package/lib/components/input/defs.js.map +0 -1
- package/lib/components/search/defs.js +0 -21
- package/lib/components/search/defs.js.map +0 -1
- package/lib/components-react-node/file-uploader/drop-container.js +0 -49
- package/lib/components-react-node/input/defs.js +0 -24
- package/lib/components-react-node/input/input.js +0 -55
- package/lib/components-react-node/search/defs.js +0 -24
- package/scss/components/input/input.scss +0 -37
- /package/es/components-react/{input → progress-bar}/defs.d.ts +0 -0
- /package/es/components-react/{input → progress-bar}/index.d.ts +0 -0
- /package/es/components-react/{input → progress-bar}/index.js +0 -0
- /package/es/icons/{app-switcher → SLM}/16.d.ts +0 -0
- /package/es/icons/{app-switcher → SLM}/20.d.ts +0 -0
- /package/es/icons/{app-switcher → SLM}/24.d.ts +0 -0
- /package/es/icons/{app-switcher → SLM}/32.d.ts +0 -0
- /package/es/icons/{arrows → apple--dash}/16.d.ts +0 -0
- /package/es/icons/{arrows → apple--dash}/20.d.ts +0 -0
- /package/es/icons/{arrows → apple--dash}/24.d.ts +0 -0
- /package/es/icons/{arrows → apple--dash}/32.d.ts +0 -0
- /package/es/icons/{checkbox--undeterminate--filled → batch-job}/16.d.ts +0 -0
- /package/es/icons/{checkbox--undeterminate--filled → batch-job}/20.d.ts +0 -0
- /package/es/icons/{checkbox--undeterminate--filled → batch-job}/24.d.ts +0 -0
- /package/es/icons/{checkbox--undeterminate--filled → batch-job}/32.d.ts +0 -0
- /package/es/icons/{back-to-top → batch-job--step}/16.d.ts +0 -0
- /package/es/icons/{back-to-top → batch-job--step}/20.d.ts +0 -0
- /package/es/icons/{back-to-top → batch-job--step}/24.d.ts +0 -0
- /package/es/icons/{back-to-top → batch-job--step}/32.d.ts +0 -0
- /package/es/icons/{cloud--lightning → boot-volume}/16.d.ts +0 -0
- /package/es/icons/{cloud--lightning → boot-volume}/20.d.ts +0 -0
- /package/es/icons/{cloud--lightning → boot-volume}/24.d.ts +0 -0
- /package/es/icons/{cloud--lightning → boot-volume}/32.d.ts +0 -0
- /package/es/icons/{checkbox--undeterminate → boot-volume--alt}/16.d.ts +0 -0
- /package/es/icons/{checkbox--undeterminate → boot-volume--alt}/20.d.ts +0 -0
- /package/es/icons/{checkbox--undeterminate → boot-volume--alt}/24.d.ts +0 -0
- /package/es/icons/{checkbox--undeterminate → boot-volume--alt}/32.d.ts +0 -0
- /package/es/icons/{cloud--snow → bottles--01}/16.d.ts +0 -0
- /package/es/icons/{cloud--snow → bottles--01}/20.d.ts +0 -0
- /package/es/icons/{cloud--snow → bottles--01}/24.d.ts +0 -0
- /package/es/icons/{cloud--snow → bottles--01}/32.d.ts +0 -0
- /package/es/icons/{cloud--rain → bottles--01--dash}/16.d.ts +0 -0
- /package/es/icons/{cloud--rain → bottles--01--dash}/20.d.ts +0 -0
- /package/es/icons/{cloud--rain → bottles--01--dash}/24.d.ts +0 -0
- /package/es/icons/{cloud--rain → bottles--01--dash}/32.d.ts +0 -0
- /package/es/icons/{letter--Aa--large → bottles--02}/16.d.ts +0 -0
- /package/es/icons/{letter--Aa--large → bottles--02}/20.d.ts +0 -0
- /package/es/icons/{letter--Aa--large → bottles--02}/24.d.ts +0 -0
- /package/es/icons/{letter--Aa--large → bottles--02}/32.d.ts +0 -0
- /package/es/icons/{delete → bottles--02--dash}/16.d.ts +0 -0
- /package/es/icons/{delete → bottles--02--dash}/20.d.ts +0 -0
- /package/es/icons/{delete → bottles--02--dash}/24.d.ts +0 -0
- /package/es/icons/{delete → bottles--02--dash}/32.d.ts +0 -0
- /package/es/icons/{logo--delicious → bottles--container}/16.d.ts +0 -0
- /package/es/icons/{logo--delicious → bottles--container}/20.d.ts +0 -0
- /package/es/icons/{logo--delicious → bottles--container}/24.d.ts +0 -0
- /package/es/icons/{logo--delicious → bottles--container}/32.d.ts +0 -0
- /package/es/icons/{logo--google → build-tool}/16.d.ts +0 -0
- /package/es/icons/{logo--google → build-tool}/20.d.ts +0 -0
- /package/es/icons/{logo--google → build-tool}/24.d.ts +0 -0
- /package/es/icons/{logo--google → build-tool}/32.d.ts +0 -0
- /package/es/icons/{mammogram--stacked → calendar--add}/16.d.ts +0 -0
- /package/es/icons/{mammogram--stacked → calendar--add}/20.d.ts +0 -0
- /package/es/icons/{mammogram--stacked → calendar--add}/24.d.ts +0 -0
- /package/es/icons/{mammogram--stacked → calendar--add}/32.d.ts +0 -0
- /package/es/icons/{logo--stumbleupon → calendar--add--alt}/16.d.ts +0 -0
- /package/es/icons/{logo--stumbleupon → calendar--add--alt}/20.d.ts +0 -0
- /package/es/icons/{logo--stumbleupon → calendar--add--alt}/24.d.ts +0 -0
- /package/es/icons/{logo--stumbleupon → calendar--add--alt}/32.d.ts +0 -0
- /package/es/icons/{misuse--alt → carbon--ui-builder}/16.d.ts +0 -0
- /package/es/icons/{misuse--alt → carbon--ui-builder}/20.d.ts +0 -0
- /package/es/icons/{misuse--alt → carbon--ui-builder}/24.d.ts +0 -0
- /package/es/icons/{misuse--alt → carbon--ui-builder}/32.d.ts +0 -0
- /package/es/icons/{research--bloch-sphere → catalog--publish}/16.d.ts +0 -0
- /package/es/icons/{research--bloch-sphere → catalog--publish}/20.d.ts +0 -0
- /package/es/icons/{research--bloch-sphere → catalog--publish}/24.d.ts +0 -0
- /package/es/icons/{research--bloch-sphere → catalog--publish}/32.d.ts +0 -0
- /package/es/icons/{research--hinton-plot → cics--db2-connection}/16.d.ts +0 -0
- /package/es/icons/{research--hinton-plot → cics--db2-connection}/20.d.ts +0 -0
- /package/es/icons/{research--hinton-plot → cics--db2-connection}/24.d.ts +0 -0
- /package/es/icons/{research--hinton-plot → cics--db2-connection}/32.d.ts +0 -0
- /package/es/icons/{research--matrix → cics--program}/16.d.ts +0 -0
- /package/es/icons/{research--matrix → cics--program}/20.d.ts +0 -0
- /package/es/icons/{research--matrix → cics--program}/24.d.ts +0 -0
- /package/es/icons/{research--matrix → cics--program}/32.d.ts +0 -0
- /package/es/icons/{watson-health/edit-filter → cics--sit}/16.d.ts +0 -0
- /package/es/icons/{watson-health/edit-filter → cics--sit}/20.d.ts +0 -0
- /package/es/icons/{watson-health/edit-filter → cics--sit}/24.d.ts +0 -0
- /package/es/icons/{watson-health/edit-filter → cics--sit}/32.d.ts +0 -0
- /package/es/icons/{sunny → cics--sit-overrides}/16.d.ts +0 -0
- /package/es/icons/{sunny → cics--sit-overrides}/20.d.ts +0 -0
- /package/es/icons/{sunny → cics--sit-overrides}/24.d.ts +0 -0
- /package/es/icons/{sunny → cics--sit-overrides}/32.d.ts +0 -0
- /package/es/icons/{glyph--caution-inverted/index.d.ts → cics--transaction-server-zos/16.d.ts} +0 -0
- /package/es/icons/{glyph--caution/index.d.ts → cics--transaction-server-zos/20.d.ts} +0 -0
- /package/es/icons/{glyph--circle-fill/index.d.ts → cics--transaction-server-zos/24.d.ts} +0 -0
- /package/es/icons/{glyph--circle-stroke/index.d.ts → cics--transaction-server-zos/32.d.ts} +0 -0
- /package/es/icons/{glyph--critical/index.d.ts → cics-region--alt/16.d.ts} +0 -0
- /package/es/icons/{glyph--incomplete/index.d.ts → cics-region--alt/20.d.ts} +0 -0
- /package/es/icons/{glyph--square-fill/index.d.ts → cics-region--alt/24.d.ts} +0 -0
- /package/es/icons/{glyph--undefined/index.d.ts → cics-region--alt/32.d.ts} +0 -0
- /package/es/icons/{undefined/index.d.ts → connect--reference/16.d.ts} +0 -0
- /package/es/icons/{glyph--undefined → diamond-fill}/index.js +0 -0
- /package/lib/components-react-node/{input → progress-bar}/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/slider/slider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6GrC;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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GH,OAAO,CAAC,kBAAkB,CAaxB;IAEF;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,SAAS,SAAM;IAEf;;OAEG;IAEH,QAAQ,SAAM;IAEd;;OAEG;IAEH,QAAQ,SAAM;IAEd;;;OAGG;IAEH,aAAa,QAAS,MAAM,YAAY,MAAM,GAAG,SAAS,YACpC;IAEtB;;;OAGG;IAEH,aAAa,QAAS,MAAM,YAAY,MAAM,GAAG,SAAS,YACpC;IAEtB;;OAEG;IACH,IACI,GAAG,WAEN;IAED,IAAI,GAAG,CAAC,KAAK,QAAA,EAIZ;IAED;;OAEG;IACH,IACI,GAAG,WAEN;IAED,IAAI,GAAG,CAAC,KAAK,QAAA,EAIZ;IAED;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IACH,IACI,IAAI,WAEP;IAED,IAAI,IAAI,CAAC,KAAK,QAAA,EAIb;IAED;;;OAGG;IACH,IACI,cAAc,WAEjB;IAED,IAAI,cAAc,CAAC,KAAK,QAAA,EAIvB;IAED;;OAEG;IAEH,KAAK,MAAC;IAEN,iBAAiB;IAUjB,oBAAoB;IAQpB,YAAY,CAAC,iBAAiB,KAAA;IAsC9B,MAAM;IAqEN;;OAEG;IACH,MAAM,KAAK,aAAa,WAEvB;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,SAAS,CAAC","file":"slider.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport throttle from 'lodash-es/throttle';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport FormMixin from '../../globals/mixins/form';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport CDSSliderInput from './slider-input';\nimport styles from './slider.scss';\n\ninterface Cancelable {\n cancel(): void;\n}\n\n/**\n * The direction to move the thumb, associated with key symbols.\n */\nconst THUMB_DIRECTION = {\n Left: -1,\n ArrowLeft: -1,\n Up: -1,\n ArrowUp: -1,\n Right: 1,\n ArrowRight: 1,\n Down: 1,\n ArrowDown: 1,\n};\n\n/**\n * Slider.\n *\n * @element cds-slider\n * @slot label-text - The label text.\n * @slot max-text - The text for maximum value.\n * @slot min-text - The text for minimum value.\n * @fires cds-slider-changed - The custom event fired after the value is changed by user gesture.\n */\n@customElement(`${prefix}-slider`)\nclass CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(LitElement))) {\n /**\n * The internal value of `max` property.\n */\n private _max = '100';\n\n /**\n * The internal value of `min` property.\n */\n private _min = '0';\n\n /**\n * The internal value of `step` property.\n */\n private _step = '1';\n\n /**\n * The internal value of `stepMultiplier` property.\n */\n private _stepMultiplier = '4';\n\n /**\n * The handle for the throttled listener of `pointermove` event.\n */\n private _throttledHandlePointermoveImpl:\n | (((event: PointerEvent) => void) & Cancelable)\n | null = null;\n\n /**\n * `true` if dragging of thumb is in progress.\n */\n private _dragging = false;\n\n /**\n * The rate of the thumb position in the track.\n * When we try to set a new value, we adjust the value considering `step` property.\n */\n private get _rate() {\n const { max, min, value } = this;\n // Copes with out-of-range value coming programmatically or from `<cds-slider-input>`\n return (\n (Math.min(Number(max), Math.max(Number(min), value)) - Number(min)) /\n (Number(max) - Number(min))\n );\n }\n\n private set _rate(rate: number) {\n const { max, min, step } = this;\n this.value =\n Number(min) +\n Math.round(\n ((Number(max) - Number(min)) * Math.min(1, Math.max(0, rate))) /\n Number(step)\n ) *\n Number(step);\n }\n\n /**\n * The DOM element of the thumb.\n */\n @query('#thumb')\n private _thumbNode!: HTMLDivElement;\n\n /**\n * The DOM element of the track.\n */\n @query('#track')\n private _trackNode!: HTMLDivElement;\n\n /**\n * Handles `click` event on the `<label>` to focus on the thumb.\n */\n _handleClickLabel() {\n this._thumbNode?.focus();\n }\n\n _handleFormdata(event: Event) {\n const { formData } = event as any; // TODO: Wait for `FormDataEvent` being available in `lib.dom.d.ts`\n const { disabled, name, value } = this;\n if (!disabled) {\n formData.append(name, String(value));\n }\n }\n\n /**\n * Handles `keydown` event on the thumb to increase/decrease the value.\n */\n private _handleKeydown({ key, shiftKey }: KeyboardEvent) {\n if (!this.disabled) {\n if (key in THUMB_DIRECTION) {\n const {\n max: rawMax,\n min: rawMin,\n step: rawStep,\n stepMultiplier: rawstepMultiplier,\n value,\n } = this;\n const max = Number(rawMax);\n const min = Number(rawMin);\n const step = Number(rawStep);\n const stepMultiplier = Number(rawstepMultiplier);\n const diff =\n (!shiftKey ? step : (max - min) / stepMultiplier) *\n THUMB_DIRECTION[key];\n const stepCount = (value + diff) / step;\n // Snaps to next\n this.value = Math.min(\n max,\n Math.max(\n min,\n (diff >= 0 ? Math.floor(stepCount) : Math.ceil(stepCount)) * step\n )\n );\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: this.value,\n intermediate: false,\n },\n })\n );\n }\n }\n }\n\n /**\n * Handles `pointerdown` event on the thumb to start dragging.\n */\n private _startDrag() {\n this._dragging = true;\n this._thumbNode.style.touchAction = 'none';\n }\n\n /**\n * Handles `pointerdown` event on the track to update the thumb position and the value as necessary.\n */\n private _handleClick(event: PointerEvent) {\n if (!this.disabled) {\n const { _trackNode: trackNode } = this;\n const isRtl =\n trackNode\n .ownerDocument!.defaultView!.getComputedStyle(trackNode)\n .getPropertyValue('direction') === 'rtl';\n const thumbPosition = event.clientX;\n const { left: trackLeft, width: trackWidth } =\n trackNode.getBoundingClientRect();\n this._rate =\n (isRtl\n ? trackLeft + trackWidth - thumbPosition\n : thumbPosition - trackLeft) / trackWidth;\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: this.value,\n },\n })\n );\n }\n }\n\n /**\n * Handles `pointermove` to update the thumb position and the value as necessary.\n *\n * @param event The event.\n */\n @HostListener('document:pointermove')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handlePointermove = (event: PointerEvent) => {\n const { disabled, _dragging: dragging } = this;\n if (!disabled && dragging) {\n this._throttledHandlePointermoveImpl!(event);\n }\n };\n\n /**\n * Updates thumb position and value upon user's `pointermove` gesture.\n *\n * @param event The event.\n */\n private _handlePointermoveImpl(event: PointerEvent) {\n const { disabled, _dragging: dragging, _trackNode: trackNode } = this;\n if (!disabled && dragging) {\n const isRtl =\n trackNode\n .ownerDocument!.defaultView!.getComputedStyle(trackNode)\n .getPropertyValue('direction') === 'rtl';\n const thumbPosition = event.clientX;\n const { left: trackLeft, width: trackWidth } =\n this._trackNode.getBoundingClientRect();\n this._rate =\n (isRtl\n ? trackLeft + trackWidth - thumbPosition\n : thumbPosition - trackLeft) / trackWidth;\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: this.value,\n intermediate: true,\n },\n })\n );\n }\n }\n\n /**\n * Handles `pointerup` and `pointerleave` event to finishing dragging.\n */\n private _endDrag = () => {\n if (this._dragging) {\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: this.value,\n },\n })\n );\n this._dragging = false;\n this._thumbNode.style.touchAction = '';\n }\n };\n\n /**\n * Handles `${prefix}-slider-input-changed` event to update the value.\n */\n @HostListener('eventChangeInput')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleChangeInput = ({ detail }: CustomEvent) => {\n const { intermediate, value } = detail;\n this.value = value;\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value,\n intermediate,\n },\n })\n );\n };\n\n /**\n * `true` if the check box should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * \ttrue to specify if the control is required.\n */\n @property({ type: Boolean, reflect: true })\n required = false;\n\n /**\n * \tWhether the slider should be read-only\n */\n @property({ type: Boolean, reflect: true })\n readonly = false;\n\n /**\n * The label text.\n */\n @property({ attribute: 'label-text' })\n labelText = '';\n\n /**\n * The label associated with the maximum value.\n */\n @property({ attribute: 'max-label', reflect: true })\n maxLabel = '';\n\n /**\n * The label associated with the minimum value.\n */\n @property({ attribute: 'min-label', reflect: true })\n minLabel = '';\n\n /**\n * The formatter for the text for maximum value.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatMaxText = (max: string, maxLabel: string | undefined) =>\n `${max}${maxLabel}`;\n\n /**\n * The formatter for the text for min/max value.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatMinText = (min: string, minLabel: string | undefined) =>\n `${min}${minLabel}`;\n\n /**\n * The maximum value.\n */\n @property({ type: Number, reflect: true })\n get max() {\n return this._max.toString();\n }\n\n set max(value) {\n const { max: oldMax } = this;\n this._max = value;\n this.requestUpdate('max', oldMax);\n }\n\n /**\n * The minimum value.\n */\n @property({ type: Number, reflect: true })\n get min() {\n return this._min.toString();\n }\n\n set min(value) {\n const { min: oldMin } = this;\n this._min = value;\n this.requestUpdate('min', oldMin);\n }\n\n /**\n * The form name.\n */\n @property()\n name!: string;\n\n /**\n * true to specify if the control is invalid.\n */\n @property({ type: Boolean })\n invalid = false;\n\n /**\n * The snapping step of the value.\n */\n @property({ type: Number, reflect: true })\n get step() {\n return this._step.toString();\n }\n\n set step(value) {\n const { step: oldStep } = this;\n this._step = value;\n this.requestUpdate('step', oldStep);\n }\n\n /**\n * A value determining how much the value should increase/decrease by Shift+arrow keys,\n * which will be `(max - min) / stepMultiplier`.\n */\n @property({ type: Number, reflect: true, attribute: 'step-multiplier' })\n get stepMultiplier() {\n return this._stepMultiplier.toString();\n }\n\n set stepMultiplier(value) {\n const { stepMultiplier: oldstepMultiplier } = this;\n this._stepMultiplier = value;\n this.requestUpdate('stepMultiplier', oldstepMultiplier);\n }\n\n /**\n * The value.\n */\n @property({ type: Number })\n value;\n\n connectedCallback() {\n super.connectedCallback();\n if (!this._throttledHandlePointermoveImpl) {\n this._throttledHandlePointermoveImpl = throttle(\n this._handlePointermoveImpl,\n 10\n );\n }\n }\n\n disconnectedCallback() {\n if (this._throttledHandlePointermoveImpl) {\n this._throttledHandlePointermoveImpl.cancel();\n this._throttledHandlePointermoveImpl = null;\n }\n super.disconnectedCallback();\n }\n\n shouldUpdate(changedProperties) {\n const input = this.querySelector(\n (this.constructor as typeof CDSSlider).selectorInput\n ) as CDSSliderInput;\n if (changedProperties.has('disabled')) {\n if (input) {\n input.disabled = this.disabled;\n }\n if (this.disabled) {\n this._dragging = false;\n }\n }\n if (changedProperties.has('readonly')) {\n if (input) {\n input.readonly = this.readonly;\n }\n if (this.readonly) {\n this._dragging = false;\n }\n }\n if (input) {\n ['max', 'min', 'step', 'value'].forEach((name) => {\n if (changedProperties.has(name)) {\n input[name] = this[name];\n }\n });\n\n if (changedProperties.has('value') || changedProperties.has('invalid')) {\n if (this.value < this.min || this.value > this.max || this.invalid) {\n input.invalid = true;\n } else {\n input.invalid = false;\n }\n }\n }\n return true;\n }\n\n render() {\n const {\n disabled,\n formatMaxText,\n formatMinText,\n labelText,\n max,\n min,\n maxLabel,\n minLabel,\n value,\n readonly,\n _rate: rate,\n _handleClickLabel: handleClickLabel,\n _handleKeydown: handleKeydown,\n _handleClick: handleClick,\n _startDrag: startDrag,\n _endDrag: endDrag,\n } = this;\n const labelClasses = classMap({\n [`${prefix}--label`]: true,\n [`${prefix}--label--disabled`]: disabled,\n });\n const sliderClasses = classMap({\n [`${prefix}--slider`]: true,\n [`${prefix}--slider--disabled`]: disabled,\n [`${prefix}--slider--readonly`]: readonly,\n });\n return html`\n <label class=\"${labelClasses}\" @click=\"${handleClickLabel}\">\n <slot name=\"label-text\">${labelText}</slot>\n </label>\n <div class=\"${prefix}--slider-container\">\n <span class=\"${prefix}--slider__range-label\">\n <slot name=\"min-text\">${formatMinText(min, minLabel)}</slot>\n </span>\n <div\n @keydown=\"${handleKeydown}\"\n @click=\"${handleClick}\"\n @pointerup=\"${endDrag}\"\n @pointerleave=\"${endDrag}\"\n class=\"${sliderClasses}\"\n tabindex=\"-1\"\n role=\"presentation\">\n <div\n id=\"thumb\"\n class=\"${prefix}--slider__thumb\"\n role=\"slider\"\n tabindex=\"${!readonly ? 0 : -1}\"\n aria-valuemax=\"${max}\"\n aria-valuemin=\"${min}\"\n aria-valuenow=\"${value}\"\n style=\"left: ${rate * 100}%\"\n @pointerdown=\"${startDrag}\"></div>\n <div id=\"track\" class=\"${prefix}--slider__track\"></div>\n <div class=\"${prefix}-ce--slider__filled-track-container\">\n <div\n class=\"${prefix}--slider__filled-track\"\n style=\"transform: translate(0%, -50%) scaleX(${rate})\"></div>\n </div>\n </div>\n <span class=\"${prefix}--slider__range-label\">\n <slot name=\"max-text\">${formatMaxText(max, maxLabel)}</slot>\n </span>\n <slot></slot>\n </div>\n `;\n }\n\n /**\n * A selector that will return the `<input>` box got entering the value directly.\n */\n static get selectorInput() {\n return `${prefix}-slider-input`;\n }\n\n /**\n * The name of the custom event fired after the value is changed by user gesture.\n */\n static get eventChange() {\n return `${prefix}-slider-changed`;\n }\n\n /**\n * The name of the custom event fired after the value is changed in `<cds-slider-input>` by user gesture.\n */\n static get eventChangeInput() {\n return `${prefix}-slider-input-changed`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\nexport default CDSSlider;\n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AAI,GAAG,CAAC,KAAK,QAAA,EAIZ;IAED;;OAEG;IACH,IACI,GAAG,WAEN;IAED,IAAI,GAAG,CAAC,KAAK,QAAA,EAIZ;IAED;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IACH,IACI,IAAI,WAEP;IAED,IAAI,IAAI,CAAC,KAAK,QAAA,EAIb;IAED;;;OAGG;IACH,IACI,cAAc,WAEjB;IAED,IAAI,cAAc,CAAC,KAAK,QAAA,EAIvB;IAED;;OAEG;IAEH,KAAK,MAAC;IAEN,iBAAiB;IAUjB,oBAAoB;IAQpB,YAAY,CAAC,iBAAiB,KAAA;IAsC9B,MAAM;IAqEN;;OAEG;IACH,MAAM,KAAK,aAAa,WAEvB;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,SAAS,CAAC","file":"slider.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport throttle from 'lodash-es/throttle';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport FormMixin from '../../globals/mixins/form';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport CDSSliderInput from './slider-input';\nimport styles from './slider.scss';\n\ninterface Cancelable {\n cancel(): void;\n}\n\n/**\n * The direction to move the thumb, associated with key symbols.\n */\nconst THUMB_DIRECTION = {\n Left: -1,\n ArrowLeft: -1,\n Up: -1,\n ArrowUp: -1,\n Right: 1,\n ArrowRight: 1,\n Down: 1,\n ArrowDown: 1,\n};\n\n/**\n * Slider.\n *\n * @element cds-slider\n * @slot label-text - The label text.\n * @slot max-text - The text for maximum value.\n * @slot min-text - The text for minimum value.\n * @fires cds-slider-changed - The custom event fired after the value is changed by user gesture.\n */\n@customElement(`${prefix}-slider`)\nclass CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(LitElement))) {\n /**\n * The internal value of `max` property.\n */\n private _max = '100';\n\n /**\n * The internal value of `min` property.\n */\n private _min = '0';\n\n /**\n * The internal value of `step` property.\n */\n private _step = '1';\n\n /**\n * The internal value of `stepMultiplier` property.\n */\n private _stepMultiplier = '4';\n\n /**\n * The handle for the throttled listener of `pointermove` event.\n */\n private _throttledHandlePointermoveImpl:\n | (((event: PointerEvent) => void) & Cancelable)\n | null = null;\n\n /**\n * `true` if dragging of thumb is in progress.\n */\n private _dragging = false;\n\n /**\n * The rate of the thumb position in the track.\n * When we try to set a new value, we adjust the value considering `step` property.\n */\n private get _rate() {\n const { max, min, value } = this;\n // Copes with out-of-range value coming programmatically or from `<cds-slider-input>`\n return (\n (Math.min(Number(max), Math.max(Number(min), value)) - Number(min)) /\n (Number(max) - Number(min))\n );\n }\n\n private set _rate(rate: number) {\n const { max, min, step } = this;\n this.value =\n Number(min) +\n Math.round(\n ((Number(max) - Number(min)) * Math.min(1, Math.max(0, rate))) /\n Number(step)\n ) *\n Number(step);\n }\n\n /**\n * The DOM element of the thumb.\n */\n @query('#thumb')\n private _thumbNode!: HTMLDivElement;\n\n /**\n * The DOM element of the track.\n */\n @query('#track')\n private _trackNode!: HTMLDivElement;\n\n /**\n * Handles `click` event on the `<label>` to focus on the thumb.\n */\n _handleClickLabel() {\n this._thumbNode?.focus();\n }\n\n _handleFormdata(event: Event) {\n const { formData } = event as any; // TODO: Wait for `FormDataEvent` being available in `lib.dom.d.ts`\n const { disabled, name, value } = this;\n if (!disabled) {\n formData.append(name, String(value));\n }\n }\n\n /**\n * Handles `keydown` event on the thumb to increase/decrease the value.\n */\n private _handleKeydown({ key, shiftKey }: KeyboardEvent) {\n if (!this.disabled) {\n if (key in THUMB_DIRECTION) {\n const {\n max: rawMax,\n min: rawMin,\n step: rawStep,\n stepMultiplier: rawstepMultiplier,\n value,\n } = this;\n const max = Number(rawMax);\n const min = Number(rawMin);\n const step = Number(rawStep);\n const stepMultiplier = Number(rawstepMultiplier);\n const diff =\n (!shiftKey ? step : (max - min) / stepMultiplier) *\n THUMB_DIRECTION[key];\n const stepCount = (value + diff) / step;\n // Snaps to next\n this.value = Math.min(\n max,\n Math.max(\n min,\n (diff >= 0 ? Math.floor(stepCount) : Math.ceil(stepCount)) * step\n )\n );\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: this.value,\n intermediate: false,\n },\n })\n );\n }\n }\n }\n\n /**\n * Handles `pointerdown` event on the thumb to start dragging.\n */\n private _startDrag() {\n this._dragging = true;\n this._thumbNode.style.touchAction = 'none';\n }\n\n /**\n * Handles `pointerdown` event on the track to update the thumb position and the value as necessary.\n */\n private _handleClick(event: PointerEvent) {\n if (!this.disabled) {\n const { _trackNode: trackNode } = this;\n const isRtl =\n trackNode\n .ownerDocument!.defaultView!.getComputedStyle(trackNode)\n .getPropertyValue('direction') === 'rtl';\n const thumbPosition = event.clientX;\n const { left: trackLeft, width: trackWidth } =\n trackNode.getBoundingClientRect();\n this._rate =\n (isRtl\n ? trackLeft + trackWidth - thumbPosition\n : thumbPosition - trackLeft) / trackWidth;\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: this.value,\n },\n })\n );\n }\n }\n\n /**\n * Handles `pointermove` to update the thumb position and the value as necessary.\n *\n * @param event The event.\n */\n @HostListener('document:pointermove')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handlePointermove = (event: PointerEvent) => {\n const { disabled, _dragging: dragging } = this;\n if (!disabled && dragging) {\n this._throttledHandlePointermoveImpl!(event);\n }\n };\n\n /**\n * Updates thumb position and value upon user's `pointermove` gesture.\n *\n * @param event The event.\n */\n private _handlePointermoveImpl(event: PointerEvent) {\n const { disabled, _dragging: dragging, _trackNode: trackNode } = this;\n if (!disabled && dragging) {\n const isRtl =\n trackNode\n .ownerDocument!.defaultView!.getComputedStyle(trackNode)\n .getPropertyValue('direction') === 'rtl';\n const thumbPosition = event.clientX;\n const { left: trackLeft, width: trackWidth } =\n this._trackNode.getBoundingClientRect();\n this._rate =\n (isRtl\n ? trackLeft + trackWidth - thumbPosition\n : thumbPosition - trackLeft) / trackWidth;\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: this.value,\n intermediate: true,\n },\n })\n );\n }\n }\n\n /**\n * Handles `pointerup` and `pointerleave` event to finishing dragging.\n */\n private _endDrag = () => {\n if (this._dragging) {\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value: this.value,\n },\n })\n );\n this._dragging = false;\n this._thumbNode.style.touchAction = '';\n }\n };\n\n /**\n * Handles `${prefix}-slider-input-changed` event to update the value.\n */\n @HostListener('eventChangeInput')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleChangeInput = ({ detail }: CustomEvent) => {\n const { intermediate, value } = detail;\n this.value = value;\n this.dispatchEvent(\n new CustomEvent((this.constructor as typeof CDSSlider).eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n value,\n intermediate,\n },\n })\n );\n };\n\n /**\n * `true` if the check box should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * \ttrue to specify if the control is required.\n */\n @property({ type: Boolean, reflect: true })\n required = false;\n\n /**\n * \tWhether the slider should be read-only\n */\n @property({ type: Boolean, reflect: true })\n readonly = false;\n\n /**\n * The label text.\n */\n @property({ attribute: 'label-text' })\n labelText = '';\n\n /**\n * The label associated with the maximum value.\n */\n @property({ attribute: 'max-label', reflect: true })\n maxLabel = '';\n\n /**\n * The label associated with the minimum value.\n */\n @property({ attribute: 'min-label', reflect: true })\n minLabel = '';\n\n /**\n * The formatter for the text for maximum value.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatMaxText = (max: string, maxLabel: string | undefined) =>\n `${max}${maxLabel}`;\n\n /**\n * The formatter for the text for min/max value.\n * Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatMinText = (min: string, minLabel: string | undefined) =>\n `${min}${minLabel}`;\n\n /**\n * The maximum value.\n */\n @property({ type: Number, reflect: true })\n get max() {\n return this._max.toString();\n }\n\n set max(value) {\n const { max: oldMax } = this;\n this._max = value;\n this.requestUpdate('max', oldMax);\n }\n\n /**\n * The minimum value.\n */\n @property({ type: Number, reflect: true })\n get min() {\n return this._min.toString();\n }\n\n set min(value) {\n const { min: oldMin } = this;\n this._min = value;\n this.requestUpdate('min', oldMin);\n }\n\n /**\n * The form name.\n */\n @property()\n name!: string;\n\n /**\n * true to specify if the control is invalid.\n */\n @property({ type: Boolean })\n invalid = false;\n\n /**\n * The snapping step of the value.\n */\n @property({ type: Number, reflect: true })\n get step() {\n return this._step.toString();\n }\n\n set step(value) {\n const { step: oldStep } = this;\n this._step = value;\n this.requestUpdate('step', oldStep);\n }\n\n /**\n * A value determining how much the value should increase/decrease by Shift+arrow keys,\n * which will be `(max - min) / stepMultiplier`.\n */\n @property({ type: Number, reflect: true, attribute: 'step-multiplier' })\n get stepMultiplier() {\n return this._stepMultiplier.toString();\n }\n\n set stepMultiplier(value) {\n const { stepMultiplier: oldstepMultiplier } = this;\n this._stepMultiplier = value;\n this.requestUpdate('stepMultiplier', oldstepMultiplier);\n }\n\n /**\n * The value.\n */\n @property({ type: Number })\n value;\n\n connectedCallback() {\n super.connectedCallback();\n if (!this._throttledHandlePointermoveImpl) {\n this._throttledHandlePointermoveImpl = throttle(\n this._handlePointermoveImpl,\n 10\n );\n }\n }\n\n disconnectedCallback() {\n if (this._throttledHandlePointermoveImpl) {\n this._throttledHandlePointermoveImpl.cancel();\n this._throttledHandlePointermoveImpl = null;\n }\n super.disconnectedCallback();\n }\n\n shouldUpdate(changedProperties) {\n const input = this.querySelector(\n (this.constructor as typeof CDSSlider).selectorInput\n ) as CDSSliderInput;\n if (changedProperties.has('disabled')) {\n if (input) {\n input.disabled = this.disabled;\n }\n if (this.disabled) {\n this._dragging = false;\n }\n }\n if (changedProperties.has('readonly')) {\n if (input) {\n input.readonly = this.readonly;\n }\n if (this.readonly) {\n this._dragging = false;\n }\n }\n if (input) {\n ['max', 'min', 'step', 'value'].forEach((name) => {\n if (changedProperties.has(name)) {\n input[name] = this[name];\n }\n });\n\n if (changedProperties.has('value') || changedProperties.has('invalid')) {\n if (this.value < this.min || this.value > this.max || this.invalid) {\n input.invalid = true;\n } else {\n input.invalid = false;\n }\n }\n }\n return true;\n }\n\n render() {\n const {\n disabled,\n formatMaxText,\n formatMinText,\n labelText,\n max,\n min,\n maxLabel,\n minLabel,\n value,\n readonly,\n _rate: rate,\n _handleClickLabel: handleClickLabel,\n _handleKeydown: handleKeydown,\n _handleClick: handleClick,\n _startDrag: startDrag,\n _endDrag: endDrag,\n } = this;\n const labelClasses = classMap({\n [`${prefix}--label`]: true,\n [`${prefix}--label--disabled`]: disabled,\n });\n const sliderClasses = classMap({\n [`${prefix}--slider`]: true,\n [`${prefix}--slider--disabled`]: disabled,\n [`${prefix}--slider--readonly`]: readonly,\n });\n return html`\n <label class=\"${labelClasses}\" @click=\"${handleClickLabel}\">\n <slot name=\"label-text\">${labelText}</slot>\n </label>\n <div class=\"${prefix}--slider-container\">\n <span class=\"${prefix}--slider__range-label\">\n <slot name=\"min-text\">${formatMinText(min, minLabel)}</slot>\n </span>\n <div\n @keydown=\"${handleKeydown}\"\n @click=\"${handleClick}\"\n @pointerup=\"${endDrag}\"\n @pointerleave=\"${endDrag}\"\n class=\"${sliderClasses}\"\n tabindex=\"-1\"\n role=\"presentation\">\n <div\n id=\"thumb\"\n class=\"${prefix}--slider__thumb\"\n role=\"slider\"\n tabindex=\"${!readonly ? 0 : -1}\"\n aria-valuemax=\"${max}\"\n aria-valuemin=\"${min}\"\n aria-valuenow=\"${value}\"\n style=\"left: ${rate * 100}%\"\n @pointerdown=\"${startDrag}\"></div>\n <div id=\"track\" class=\"${prefix}--slider__track\"></div>\n <div class=\"${prefix}-ce--slider__filled-track-container\">\n <div\n class=\"${prefix}--slider__filled-track\"\n style=\"transform: translate(0%, -50%) scaleX(${rate})\"></div>\n </div>\n </div>\n <span class=\"${prefix}--slider__range-label\">\n <slot name=\"max-text\">${formatMaxText(max, maxLabel)}</slot>\n </span>\n <slot></slot>\n </div>\n `;\n }\n\n /**\n * A selector that will return the `<input>` box got entering the value directly.\n */\n static get selectorInput() {\n return `${prefix}-slider-input`;\n }\n\n /**\n * The name of the custom event fired after the value is changed by user gesture.\n */\n static get eventChange() {\n return `${prefix}-slider-changed`;\n }\n\n /**\n * The name of the custom event fired after the value is changed in `<cds-slider-input>` by user gesture.\n */\n static get eventChangeInput() {\n return `${prefix}-slider-input-changed`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\nexport default CDSSlider;\n"]}
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
import { LitElement } from 'lit';
|
|
10
10
|
declare const BXStructuredListRow_base: {
|
|
11
11
|
new (...args: any[]): {
|
|
12
|
+
/**
|
|
13
|
+
* Map of navigation direction by key.
|
|
14
|
+
*/
|
|
12
15
|
_handles: Set<import("../../globals/internal/handle").default>;
|
|
13
16
|
connectedCallback(): void;
|
|
14
17
|
disconnectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/structured-list/structured-list-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC
|
|
1
|
+
{"version":3,"sources":["components/structured-list/structured-list-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;;QAavC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDH;;;;GAIG;AACH,cACM,mBAAoB,SAAQ,wBAA6B;IAC7D;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAkC;IAElD;;OAEG;IACH,OAAO,CAAC,oBAAoB,CAAkD;IAE9E;;OAEG;IAEH,OAAO,CAAC,UAAU,CAAoB;IAEtC;;OAEG;IAGH,OAAO,CAAC,YAAY,CAQlB;IAEF;;OAEG;IAGH,OAAO,CAAC,cAAc,CAcpB;IAEF;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,aAAa,SAAM;IAEnB;;OAEG;IAEH,cAAc,SAAM;IAEpB;;OAEG;IAEH,kBAAkB,SAAM;IAExB,iBAAiB;IAgBjB,oBAAoB;IAOpB,OAAO,CAAC,iBAAiB,KAAA;IAuBzB,MAAM;IA0BN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,mBAAmB,CAAC","file":"structured-list-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement, query } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport CheckmarkFilled16 from '@carbon/icons/lib/checkmark--filled/16';\nimport { prefix } from '../../globals/settings';\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport RadioGroupManager, {\n NAVIGATION_DIRECTION,\n ManagedRadioButtonDelegate,\n} from '../../globals/internal/radio-group-manager';\nimport styles from './structured-list.scss';\n\n/**\n * Map of navigation direction by key.\n */\nconst navigationDirectionForKey = {\n ArrowUp: NAVIGATION_DIRECTION.BACKWARD,\n Up: NAVIGATION_DIRECTION.BACKWARD, // IE\n ArrowDown: NAVIGATION_DIRECTION.FORWARD,\n Down: NAVIGATION_DIRECTION.FORWARD, // IE\n};\n\n/**\n * The interface for `RadioGroupManager` for structured list row.\n */\nclass StructuredListRowRadioButtonDelegate\n implements ManagedRadioButtonDelegate\n{\n /**\n * The structured list row to target.\n */\n private _row: BXStructuredListRow;\n\n constructor(row: BXStructuredListRow) {\n this._row = row;\n }\n\n get checked() {\n return this._row.selected;\n }\n\n set checked(checked) {\n this._row.selected = checked;\n this._row.tabIndex = checked ? 0 : -1;\n }\n\n get tabIndex() {\n return this._row.tabIndex;\n }\n\n set tabIndex(tabIndex) {\n this._row.tabIndex = tabIndex;\n }\n\n get name() {\n return this._row.selectionName;\n }\n\n compareDocumentPosition(other: StructuredListRowRadioButtonDelegate) {\n return this._row.compareDocumentPosition(other._row);\n }\n\n focus() {\n this._row.focus();\n }\n}\n\n/**\n * Structured list row.\n *\n * @element cds-structured-list-row\n */\n@customElement(`${prefix}-structured-list-row`)\nclass BXStructuredListRow extends HostListenerMixin(LitElement) {\n /**\n * The radio group manager associated with the radio button.\n */\n private _manager: RadioGroupManager | null = null;\n\n /**\n * The interface for `RadioGroupManager` for structured list row.\n */\n private _radioButtonDelegate = new StructuredListRowRadioButtonDelegate(this);\n\n /**\n * The hidden radio button.\n */\n @query('#input')\n private _inputNode!: HTMLInputElement;\n\n /**\n * Handles `click` event on this element.\n */\n @HostListener('click')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleClick = () => {\n const { _inputNode: inputNode } = this;\n if (inputNode) {\n this.selected = true;\n if (this._manager) {\n this._manager.select(this._radioButtonDelegate);\n }\n }\n };\n\n /**\n * Handles `keydown` event on this element.\n */\n @HostListener('keydown')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleKeydown = (event: KeyboardEvent) => {\n const { _inputNode: inputNode } = this;\n const manager = this._manager;\n if (inputNode && manager) {\n const navigationDirection = navigationDirectionForKey[event.key];\n if (navigationDirection) {\n manager.select(\n manager.navigate(this._radioButtonDelegate, navigationDirection)\n );\n }\n if (event.key === ' ' || event.key === 'Enter') {\n manager.select(this._radioButtonDelegate);\n }\n }\n };\n\n /**\n * `true` if this structured list row should be selectable and selected.\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * The `name` attribute for the `<input>` for selection.\n * If present, this structured list row will be a selectable one.\n */\n @property({ attribute: 'selection-name' })\n selectionName = '';\n\n /**\n * The `value` attribute for the `<input>` for selection.\n */\n @property({ attribute: 'selection-value' })\n selectionValue = '';\n\n /**\n * The content to put into the `<title>` attribute of the selection icon.\n */\n @property({ attribute: 'selection-icon-title' })\n selectionIconTitle = '';\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'row');\n }\n super.connectedCallback();\n if (!this._manager) {\n this._manager = RadioGroupManager.get(\n this.getRootNode({ composed: true }) as Document\n );\n const { selectionName } = this;\n if (selectionName) {\n this._manager?.add(this._radioButtonDelegate);\n }\n }\n }\n\n disconnectedCallback() {\n if (this._manager) {\n this._manager.delete(this._radioButtonDelegate);\n }\n super.disconnectedCallback();\n }\n\n updated(changedProperties) {\n const { _manager: manager, selectionName } = this;\n if (changedProperties.has('selectionName')) {\n if (manager) {\n manager.delete(\n this._radioButtonDelegate,\n changedProperties.get('selectionName')\n );\n if (selectionName) {\n manager.add(this._radioButtonDelegate);\n }\n }\n this.setAttribute(\n 'tabindex',\n !selectionName ||\n !manager ||\n !manager.shouldBeFocusable(this._radioButtonDelegate)\n ? '-1'\n : '0'\n );\n }\n }\n\n render() {\n const { selected, selectionName, selectionValue, selectionIconTitle } =\n this;\n if (selectionName) {\n // \"Selected\" style with `.${prefix}--structured-list-td` does not work somehow - Need investigation\n return html`\n <slot></slot>\n <input\n id=\"input\"\n type=\"radio\"\n class=\"${prefix}--structured-list-input ${prefix}--visually-hidden\"\n .checked=${selected}\n name=${selectionName}\n value=${ifDefined(selectionValue)} />\n <div\n class=\"${prefix}--structured-list-td ${prefix}--structured-list-cell\">\n ${CheckmarkFilled16({\n class: `${prefix}--structured-list-svg`,\n title: selectionIconTitle,\n })}\n </div>\n `;\n }\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default BXStructuredListRow;\n"]}
|
|
@@ -319,7 +319,9 @@ declare const BXExpandableTile_base: {
|
|
|
319
319
|
_hostListeners: {
|
|
320
320
|
[listenerName: string]: {
|
|
321
321
|
[type: string]: {
|
|
322
|
-
options?: boolean | AddEventListenerOptions | undefined;
|
|
322
|
+
options?: boolean | AddEventListenerOptions | undefined; /**
|
|
323
|
+
* The color scheme.
|
|
324
|
+
*/
|
|
323
325
|
};
|
|
324
326
|
};
|
|
325
327
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/tile/expandable-tile.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAQvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC
|
|
1
|
+
{"version":3,"sources":["components/tile/expandable-tile.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAQvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;;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-tile.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport ChevronDown16 from '@carbon/icons/lib/chevron--down/16';\nimport { prefix } from '../../globals/settings';\nimport HostListener from '../../globals/decorators/host-listener';\nimport FocusMixin from '../../globals/mixins/focus';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport { TILE_COLOR_SCHEME } from './defs';\nimport styles from './tile.scss';\nimport { classMap } from 'lit/directives/class-map';\n\n/**\n * Expandable tile.\n *\n * @element cds-expandable-tile\n * @fires cds-expandable-tile-beingtoggled\n * The custom event fired before the expanded state is changed upon a user gesture.\n * Cancellation of this event stops changing the user-initiated change in expanded state.\n * @fires cds-expandable-tile-toggled - The custom event fired after a the expanded state is changed upon a user gesture.\n */\n@customElement(`${prefix}-expandable-tile`)\nclass BXExpandableTile extends HostListenerMixin(FocusMixin(LitElement)) {\n /**\n * The computed height of the below-the-fold content.\n */\n private _belowTheContentHeight = 0;\n\n /**\n * Handles `slotchange` event on the below-the-fold content.\n *\n * @param event The event.\n */\n private _handleSlotChangeBelowTheFoldContent(event: Event) {\n this._belowTheContentHeight = (event.target as HTMLSlotElement)\n .assignedNodes()\n .reduce(\n (acc, item) => acc + ((item as HTMLElement).offsetHeight ?? 0),\n 0\n );\n\n if (!this._belowTheContentHeight) {\n const element = getComputedStyle(\n this.querySelector('cds-tile-below-the-fold-content') as any\n );\n this._belowTheContentHeight = parseInt(element.height, 10);\n }\n this.requestUpdate();\n }\n\n private _handleExpand() {\n const expanded = !this.expanded;\n this.focus();\n const init = {\n bubbles: true,\n composed: true,\n detail: {\n expanded,\n },\n };\n const constructor = this.constructor as typeof BXExpandableTile;\n const beforeChangeEvent = new CustomEvent(constructor.eventBeforeToggle, {\n ...init,\n cancelable: true,\n });\n if (this.dispatchEvent(beforeChangeEvent)) {\n this.expanded = expanded;\n const afterChangeEvent = new CustomEvent(constructor.eventToggle, init);\n this.dispatchEvent(afterChangeEvent);\n }\n }\n\n @HostListener('click')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleClick = () => {\n if (!this.withInteractive) {\n this._handleExpand();\n }\n };\n\n /**\n * The color scheme.\n */\n @property({ attribute: 'color-scheme', reflect: true })\n colorScheme = TILE_COLOR_SCHEME.REGULAR;\n\n /**\n * `true` to expand this expandable tile.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` to expand this expandable tile.\n */\n @property({ type: Boolean, reflect: true, attribute: 'with-interactive' })\n withInteractive = false;\n\n render() {\n const {\n expanded,\n withInteractive,\n _belowTheContentHeight: belowTheContentHeight,\n _handleSlotChangeBelowTheFoldContent: handleSlotChangeBelowTheFoldContent,\n } = this;\n\n const classes = classMap({\n [`${prefix}--tile__chevron`]: true,\n [`${prefix}--tile__chevron--interactive`]: withInteractive,\n });\n return html`\n <button\n class=\"${classes}\"\n aria-labelledby=\"above-the-fold-content\"\n aria-controls=\"below-the-fold-content\"\n tabindex=\"0\"\n @click=\"${withInteractive ? this._handleExpand : ''}\"\n aria-expanded=\"${String(Boolean(expanded))}\">\n ${ChevronDown16({\n id: 'icon',\n })}\n </button>\n <div id=\"content\" class=\"${prefix}--tile-content\">\n <div><slot name=\"above-the-fold-content\"></slot></div>\n <div\n class=\"${prefix}-ce--expandable-tile--below-the-fold-content\"\n style=\"${ifDefined(\n !expanded ? undefined : `max-height: ${belowTheContentHeight}px`\n )}\">\n <slot @slotchange=\"${handleSlotChangeBelowTheFoldContent}\"></slot>\n </div>\n </div>\n `;\n }\n\n /**\n * The name of the custom event fired before the expanded state is changed upon a user gesture.\n * Cancellation of this event stops changing the user-initiated change in expanded state.\n */\n static get eventBeforeToggle() {\n return `${prefix}-expandable-tile-beingtoggled`;\n }\n\n /**\n * The name of the custom event fired after a the expanded state is changed upon a user gesture.\n */\n static get eventToggle() {\n return `${prefix}-expandable-tile-toggled`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default BXExpandableTile;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/ui-shell/side-nav.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAKrE,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD;;;;GAIG;AACH,cACM,SAAU,SAAQ,cAA6B;IACnD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB;;OAEG;IACH,OAAO,CAAC,YAAY,CAAuB;IAE3C;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAqB;IAE/C;;OAEG;IACH,OAAO,KAAK,2BAA2B,GAEtC;IAED;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;OAEG;IAGH,OAAO,CAAC,mBAAmB,CAazB;IAEF;;OAEG;IACH,OAAO,CAAC,sCAAsC;IAY9C;;OAEG;IAGH,OAAO,CAAC,gBAAgB;IAKxB;;OAEG;IAGH,OAAO,CAAC,eAAe;IAKvB;;OAEG;IAEH,YAAY,yBAAqC;IAEjD;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,SAAS,sBAA+B;IAExC,iBAAiB;IAOjB,oBAAoB;IAKpB,YAAY,CAAC,iBAAiB,KAAA;IAa9B,OAAO,CAAC,iBAAiB,KAAA;IAkDzB,MAAM;IAIN;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,YAAY,WAEtB;IAED;;OAEG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,SAAS,CAAC","file":"side-nav.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport on from '
|
|
1
|
+
{"version":3,"sources":["components/ui-shell/side-nav.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAKrE,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD;;;;GAIG;AACH,cACM,SAAU,SAAQ,cAA6B;IACnD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB;;OAEG;IACH,OAAO,CAAC,YAAY,CAAuB;IAE3C;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAqB;IAE/C;;OAEG;IACH,OAAO,KAAK,2BAA2B,GAEtC;IAED;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;OAEG;IAGH,OAAO,CAAC,mBAAmB,CAazB;IAEF;;OAEG;IACH,OAAO,CAAC,sCAAsC;IAY9C;;OAEG;IAGH,OAAO,CAAC,gBAAgB;IAKxB;;OAEG;IAGH,OAAO,CAAC,eAAe;IAKvB;;OAEG;IAEH,YAAY,yBAAqC;IAEjD;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,SAAS,sBAA+B;IAExC,iBAAiB;IAOjB,oBAAoB;IAKpB,YAAY,CAAC,iBAAiB,KAAA;IAa9B,OAAO,CAAC,iBAAiB,KAAA;IAkDzB,MAAM;IAIN;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,YAAY,WAEtB;IAED;;OAEG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,SAAS,CAAC","file":"side-nav.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport on from '../../globals/mixins/on';\nimport { prefix } from '../../globals/settings';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport { forEach } from '../../globals/internal/collection-helpers';\nimport Handle from '../../globals/internal/handle';\nimport { SIDE_NAV_COLLAPSE_MODE, SIDE_NAV_USAGE_MODE } from './defs';\nimport BXHeaderMenuButton from './header-menu-button';\nimport BXSideNavMenu from './side-nav-menu';\nimport styles from './side-nav.scss';\n\nexport { SIDE_NAV_COLLAPSE_MODE, SIDE_NAV_USAGE_MODE };\n\n/**\n * Side nav.\n *\n * @element cds-side-nav\n */\n@customElement(`${prefix}-side-nav`)\nclass BXSideNav extends HostListenerMixin(LitElement) {\n /**\n * `true` if this side nav is hovered.\n */\n private _hovered = false;\n\n /**\n * The handle for `transitionend` event listener.\n */\n private _hTransition: Handle | null = null;\n\n /**\n * A promise that is resolved when the transition is complete.\n */\n private _transitionPromise = Promise.resolve();\n\n /**\n * A promise that is resolved when the transition upon proprety update is complete.\n */\n private get _updateAndTransitionPromise() {\n return this.updateComplete.then(() => this._transitionPromise);\n }\n\n /**\n * Cleans the handle for `transitionend` event listener.\n */\n private _cleanHTransition() {\n if (this._hTransition) {\n this._hTransition = this._hTransition.release();\n }\n }\n\n /**\n * Handles `${prefix}-header-menu-button-toggle` event on the document.\n */\n @HostListener('parentRoot:eventButtonToggle')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleButtonToggle = async (event: CustomEvent) => {\n this.expanded = event.detail.active;\n if (this.expanded) {\n await this._updateAndTransitionPromise;\n // Checks if the side nav is not collapsed during the animation\n if (this.expanded) {\n (\n this.querySelector(\n (this.constructor as typeof BXSideNav).selectorNavItems\n ) as HTMLElement\n )?.focus();\n }\n }\n };\n\n /**\n * Force child side nav menus collapsed upon the hover/expanded state of this side nav.\n */\n private _updatedSideNavMenuForceCollapsedState() {\n const { expanded, _hovered: hovered } = this;\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorMenu\n ),\n (item) => {\n (item as BXSideNavMenu).forceCollapsed = !expanded && !hovered;\n }\n );\n }\n\n /**\n * Handles `mouseover` event handler.\n */\n @HostListener('mouseover')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseover() {\n this._hovered = true;\n this._updatedSideNavMenuForceCollapsedState();\n }\n\n /**\n * Handles `mouseout` event handler.\n */\n @HostListener('mouseout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseout() {\n this._hovered = false;\n this._updatedSideNavMenuForceCollapsedState();\n }\n\n /**\n * Collapse mode of the side nav.\n */\n @property({ reflect: true, attribute: 'collapse-mode' })\n collapseMode = SIDE_NAV_COLLAPSE_MODE.RESPONSIVE;\n\n /**\n * `true` to expand the side nav.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * Usage mode of the side nav.\n */\n @property({ reflect: true, attribute: 'usage-mode' })\n usageMode = SIDE_NAV_USAGE_MODE.REGULAR;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'navigation');\n }\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n this._cleanHTransition();\n super.disconnectedCallback();\n }\n\n shouldUpdate(changedProperties) {\n if (changedProperties.has('expanded')) {\n this._transitionPromise = new Promise((resolve) => {\n this._cleanHTransition();\n this._hTransition = on(this, 'transitionend', () => {\n this._cleanHTransition();\n resolve();\n });\n });\n }\n return true;\n }\n\n updated(changedProperties) {\n if (\n changedProperties.has('collapseMode') ||\n changedProperties.has('usageMode')\n ) {\n const { collapseMode, usageMode } = this;\n if (\n (collapseMode === SIDE_NAV_COLLAPSE_MODE.FIXED ||\n collapseMode === SIDE_NAV_COLLAPSE_MODE.RAIL) &&\n usageMode === SIDE_NAV_USAGE_MODE.HEADER_NAV\n ) {\n console.warn(\n 'Fixed/rail modes of side nav cannot be used with header nav mode.'\n ); // eslint-disable-line no-console\n }\n }\n const doc = this.getRootNode() as Document;\n if (changedProperties.has('collapseMode')) {\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).collapseMode = this.collapseMode;\n }\n );\n }\n if (changedProperties.has('expanded')) {\n this._updatedSideNavMenuForceCollapsedState();\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).active = this.expanded;\n }\n );\n }\n if (changedProperties.has('usageMode')) {\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).usageMode = this.usageMode;\n }\n );\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * A selector that will return the toggle buttons.\n */\n static get selectorButtonToggle() {\n return `${prefix}-header-menu-button`;\n }\n\n /**\n * A selector that will return side nav focusable items.\n */\n static get selectorNavItems() {\n return `${prefix}-side-nav-menu, ${prefix}-side-nav-menu-item, ${prefix}-side-nav-link`;\n }\n\n /**\n * A selector that will return side nav menus.\n */\n static get selectorMenu() {\n return `${prefix}-side-nav-menu`;\n }\n\n /**\n * The name of the custom event fired after the header menu button in the document is toggled upon a user gesture.\n */\n static get eventButtonToggle() {\n return `${prefix}-header-menu-button-toggled`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default BXSideNav;\n"]}
|
|
@@ -14,7 +14,7 @@ let _ = t => t,
|
|
|
14
14
|
|
|
15
15
|
import { LitElement, html } from 'lit';
|
|
16
16
|
import { property, customElement } from 'lit/decorators.js';
|
|
17
|
-
import on from '
|
|
17
|
+
import on from '../../globals/mixins/on';
|
|
18
18
|
import { prefix } from '../../globals/settings';
|
|
19
19
|
import HostListenerMixin from '../../globals/mixins/host-listener';
|
|
20
20
|
import HostListener from '../../globals/decorators/host-listener';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-nav.js","names":["LitElement","html","property","customElement","on","prefix","HostListenerMixin","HostListener","forEach","SIDE_NAV_COLLAPSE_MODE","SIDE_NAV_USAGE_MODE","styles","BXSideNav","_decorate","_initialize","_HostListenerMixin","constructor","args","F","d","kind","key","value","Promise","resolve","_updateAndTransitionPromise","updateComplete","then","_transitionPromise","_cleanHTransition","_hTransition","release","decorators","event","expanded","detail","active","_this$querySelector","querySelector","selectorNavItems","focus","_updatedSideNavMenuForceCollapsedState","_hovered","hovered","querySelectorAll","selectorMenu","item","forceCollapsed","_handleMouseover","_handleMouseout","reflect","attribute","RESPONSIVE","type","Boolean","REGULAR","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","disconnectedCallback","shouldUpdate","changedProperties","has","updated","collapseMode","usageMode","FIXED","RAIL","HEADER_NAV","console","warn","doc","getRootNode","selectorButtonToggle","render","_t","_","static","eventButtonToggle"],"sources":["components/ui-shell/side-nav.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport on from 'carbon-components/es/globals/js/misc/on';\nimport { prefix } from '../../globals/settings';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport { forEach } from '../../globals/internal/collection-helpers';\nimport Handle from '../../globals/internal/handle';\nimport { SIDE_NAV_COLLAPSE_MODE, SIDE_NAV_USAGE_MODE } from './defs';\nimport BXHeaderMenuButton from './header-menu-button';\nimport BXSideNavMenu from './side-nav-menu';\nimport styles from './side-nav.scss';\n\nexport { SIDE_NAV_COLLAPSE_MODE, SIDE_NAV_USAGE_MODE };\n\n/**\n * Side nav.\n *\n * @element cds-side-nav\n */\n@customElement(`${prefix}-side-nav`)\nclass BXSideNav extends HostListenerMixin(LitElement) {\n /**\n * `true` if this side nav is hovered.\n */\n private _hovered = false;\n\n /**\n * The handle for `transitionend` event listener.\n */\n private _hTransition: Handle | null = null;\n\n /**\n * A promise that is resolved when the transition is complete.\n */\n private _transitionPromise = Promise.resolve();\n\n /**\n * A promise that is resolved when the transition upon proprety update is complete.\n */\n private get _updateAndTransitionPromise() {\n return this.updateComplete.then(() => this._transitionPromise);\n }\n\n /**\n * Cleans the handle for `transitionend` event listener.\n */\n private _cleanHTransition() {\n if (this._hTransition) {\n this._hTransition = this._hTransition.release();\n }\n }\n\n /**\n * Handles `${prefix}-header-menu-button-toggle` event on the document.\n */\n @HostListener('parentRoot:eventButtonToggle')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleButtonToggle = async (event: CustomEvent) => {\n this.expanded = event.detail.active;\n if (this.expanded) {\n await this._updateAndTransitionPromise;\n // Checks if the side nav is not collapsed during the animation\n if (this.expanded) {\n (\n this.querySelector(\n (this.constructor as typeof BXSideNav).selectorNavItems\n ) as HTMLElement\n )?.focus();\n }\n }\n };\n\n /**\n * Force child side nav menus collapsed upon the hover/expanded state of this side nav.\n */\n private _updatedSideNavMenuForceCollapsedState() {\n const { expanded, _hovered: hovered } = this;\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorMenu\n ),\n (item) => {\n (item as BXSideNavMenu).forceCollapsed = !expanded && !hovered;\n }\n );\n }\n\n /**\n * Handles `mouseover` event handler.\n */\n @HostListener('mouseover')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseover() {\n this._hovered = true;\n this._updatedSideNavMenuForceCollapsedState();\n }\n\n /**\n * Handles `mouseout` event handler.\n */\n @HostListener('mouseout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseout() {\n this._hovered = false;\n this._updatedSideNavMenuForceCollapsedState();\n }\n\n /**\n * Collapse mode of the side nav.\n */\n @property({ reflect: true, attribute: 'collapse-mode' })\n collapseMode = SIDE_NAV_COLLAPSE_MODE.RESPONSIVE;\n\n /**\n * `true` to expand the side nav.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * Usage mode of the side nav.\n */\n @property({ reflect: true, attribute: 'usage-mode' })\n usageMode = SIDE_NAV_USAGE_MODE.REGULAR;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'navigation');\n }\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n this._cleanHTransition();\n super.disconnectedCallback();\n }\n\n shouldUpdate(changedProperties) {\n if (changedProperties.has('expanded')) {\n this._transitionPromise = new Promise((resolve) => {\n this._cleanHTransition();\n this._hTransition = on(this, 'transitionend', () => {\n this._cleanHTransition();\n resolve();\n });\n });\n }\n return true;\n }\n\n updated(changedProperties) {\n if (\n changedProperties.has('collapseMode') ||\n changedProperties.has('usageMode')\n ) {\n const { collapseMode, usageMode } = this;\n if (\n (collapseMode === SIDE_NAV_COLLAPSE_MODE.FIXED ||\n collapseMode === SIDE_NAV_COLLAPSE_MODE.RAIL) &&\n usageMode === SIDE_NAV_USAGE_MODE.HEADER_NAV\n ) {\n console.warn(\n 'Fixed/rail modes of side nav cannot be used with header nav mode.'\n ); // eslint-disable-line no-console\n }\n }\n const doc = this.getRootNode() as Document;\n if (changedProperties.has('collapseMode')) {\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).collapseMode = this.collapseMode;\n }\n );\n }\n if (changedProperties.has('expanded')) {\n this._updatedSideNavMenuForceCollapsedState();\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).active = this.expanded;\n }\n );\n }\n if (changedProperties.has('usageMode')) {\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).usageMode = this.usageMode;\n }\n );\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * A selector that will return the toggle buttons.\n */\n static get selectorButtonToggle() {\n return `${prefix}-header-menu-button`;\n }\n\n /**\n * A selector that will return side nav focusable items.\n */\n static get selectorNavItems() {\n return `${prefix}-side-nav-menu, ${prefix}-side-nav-menu-item, ${prefix}-side-nav-link`;\n }\n\n /**\n * A selector that will return side nav menus.\n */\n static get selectorMenu() {\n return `${prefix}-side-nav-menu`;\n }\n\n /**\n * The name of the custom event fired after the header menu button in the document is toggled upon a user gesture.\n */\n static get eventButtonToggle() {\n return `${prefix}-header-menu-button-toggled`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default BXSideNav;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,aAAa,QAAQ,mBAAmB;AAC3D,OAAOC,EAAE,MAAM,yCAAyC;AACxD,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAOC,iBAAiB,MAAM,oCAAoC;AAClE,OAAOC,YAAY,MAAM,wCAAwC;AACjE,SAASC,OAAO,QAAQ,2CAA2C;AAEnE,SAASC,sBAAsB,EAAEC,mBAAmB,QAAQ,QAAQ;AAGpE,OAAOC,MAAM,MAAM,qBAAiB;AAEpC,SAASF,sBAAsB,EAAEC,mBAAmB;;AAEpD;AACA;AACA;AACA;AACA;AAJA,IAMME,SAAS,GAAAC,SAAA,EADdV,aAAa,CAAE,GAAEE,MAAO,WAAU,CAAC,aAAAS,WAAA,EAAAC,kBAAA;EAApC,MACMH,SAAS,SAAAG,kBAAA,CAAuC;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAqNtD;EAAC;IAAAI,CAAA,EArNKN,SAAS;IAAAO,CAAA;MAAAC,IAAA;MAAAC,GAAA;MAAAC,MAAA;QAAA,OAIM,KAAK;MAAA;IAAA;MAAAF,IAAA;MAAAC,GAAA;MAAAC,MAAA;QAAA,OAKc,IAAI;MAAA;IAAA;MAAAF,IAAA;MAAAC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,GAAA;MAAAC,KAAA,EAGA,SAAAiB,iBAAA,EAA8B;QAC5B,OAAQ,GAAElC,MAAO,mBAAkBA,MAAO,wBAAuBA,MAAO,gBAAe;MACzF;;MAEA;AACF;AACA;IAFE;MAAAe,IAAA;MAAA6D,MAAA;MAAA5D,GAAA;MAAAC,KAAA,EAGA,SAAAuB,aAAA,EAA0B;QACxB,OAAQ,GAAExC,MAAO,gBAAe;MAClC;;MAEA;AACF;AACA;IAFE;MAAAe,IAAA;MAAA6D,MAAA;MAAA5D,GAAA;MAAAC,KAAA,EAGA,SAAA4D,kBAAA,EAA+B;QAC7B,OAAQ,GAAE7E,MAAO,6BAA4B;MAC/C;IAAC;MAAAe,IAAA;MAAA6D,MAAA;MAAA5D,GAAA;MAAAC,MAAA;QAAA,OAEeX,MAAM;MAAA;IAAA;EAAA;AAAA,GApNAL,iBAAiB,CAACN,UAAU,CAAC;AAuNrD,eAAeY,SAAS"}
|
|
1
|
+
{"version":3,"file":"side-nav.js","names":["LitElement","html","property","customElement","on","prefix","HostListenerMixin","HostListener","forEach","SIDE_NAV_COLLAPSE_MODE","SIDE_NAV_USAGE_MODE","styles","BXSideNav","_decorate","_initialize","_HostListenerMixin","constructor","args","F","d","kind","key","value","Promise","resolve","_updateAndTransitionPromise","updateComplete","then","_transitionPromise","_cleanHTransition","_hTransition","release","decorators","event","expanded","detail","active","_this$querySelector","querySelector","selectorNavItems","focus","_updatedSideNavMenuForceCollapsedState","_hovered","hovered","querySelectorAll","selectorMenu","item","forceCollapsed","_handleMouseover","_handleMouseout","reflect","attribute","RESPONSIVE","type","Boolean","REGULAR","connectedCallback","hasAttribute","setAttribute","_get","_getPrototypeOf","prototype","call","disconnectedCallback","shouldUpdate","changedProperties","has","updated","collapseMode","usageMode","FIXED","RAIL","HEADER_NAV","console","warn","doc","getRootNode","selectorButtonToggle","render","_t","_","static","eventButtonToggle"],"sources":["components/ui-shell/side-nav.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport on from '../../globals/mixins/on';\nimport { prefix } from '../../globals/settings';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport HostListener from '../../globals/decorators/host-listener';\nimport { forEach } from '../../globals/internal/collection-helpers';\nimport Handle from '../../globals/internal/handle';\nimport { SIDE_NAV_COLLAPSE_MODE, SIDE_NAV_USAGE_MODE } from './defs';\nimport BXHeaderMenuButton from './header-menu-button';\nimport BXSideNavMenu from './side-nav-menu';\nimport styles from './side-nav.scss';\n\nexport { SIDE_NAV_COLLAPSE_MODE, SIDE_NAV_USAGE_MODE };\n\n/**\n * Side nav.\n *\n * @element cds-side-nav\n */\n@customElement(`${prefix}-side-nav`)\nclass BXSideNav extends HostListenerMixin(LitElement) {\n /**\n * `true` if this side nav is hovered.\n */\n private _hovered = false;\n\n /**\n * The handle for `transitionend` event listener.\n */\n private _hTransition: Handle | null = null;\n\n /**\n * A promise that is resolved when the transition is complete.\n */\n private _transitionPromise = Promise.resolve();\n\n /**\n * A promise that is resolved when the transition upon proprety update is complete.\n */\n private get _updateAndTransitionPromise() {\n return this.updateComplete.then(() => this._transitionPromise);\n }\n\n /**\n * Cleans the handle for `transitionend` event listener.\n */\n private _cleanHTransition() {\n if (this._hTransition) {\n this._hTransition = this._hTransition.release();\n }\n }\n\n /**\n * Handles `${prefix}-header-menu-button-toggle` event on the document.\n */\n @HostListener('parentRoot:eventButtonToggle')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleButtonToggle = async (event: CustomEvent) => {\n this.expanded = event.detail.active;\n if (this.expanded) {\n await this._updateAndTransitionPromise;\n // Checks if the side nav is not collapsed during the animation\n if (this.expanded) {\n (\n this.querySelector(\n (this.constructor as typeof BXSideNav).selectorNavItems\n ) as HTMLElement\n )?.focus();\n }\n }\n };\n\n /**\n * Force child side nav menus collapsed upon the hover/expanded state of this side nav.\n */\n private _updatedSideNavMenuForceCollapsedState() {\n const { expanded, _hovered: hovered } = this;\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorMenu\n ),\n (item) => {\n (item as BXSideNavMenu).forceCollapsed = !expanded && !hovered;\n }\n );\n }\n\n /**\n * Handles `mouseover` event handler.\n */\n @HostListener('mouseover')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseover() {\n this._hovered = true;\n this._updatedSideNavMenuForceCollapsedState();\n }\n\n /**\n * Handles `mouseout` event handler.\n */\n @HostListener('mouseout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseout() {\n this._hovered = false;\n this._updatedSideNavMenuForceCollapsedState();\n }\n\n /**\n * Collapse mode of the side nav.\n */\n @property({ reflect: true, attribute: 'collapse-mode' })\n collapseMode = SIDE_NAV_COLLAPSE_MODE.RESPONSIVE;\n\n /**\n * `true` to expand the side nav.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * Usage mode of the side nav.\n */\n @property({ reflect: true, attribute: 'usage-mode' })\n usageMode = SIDE_NAV_USAGE_MODE.REGULAR;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'navigation');\n }\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n this._cleanHTransition();\n super.disconnectedCallback();\n }\n\n shouldUpdate(changedProperties) {\n if (changedProperties.has('expanded')) {\n this._transitionPromise = new Promise((resolve) => {\n this._cleanHTransition();\n this._hTransition = on(this, 'transitionend', () => {\n this._cleanHTransition();\n resolve();\n });\n });\n }\n return true;\n }\n\n updated(changedProperties) {\n if (\n changedProperties.has('collapseMode') ||\n changedProperties.has('usageMode')\n ) {\n const { collapseMode, usageMode } = this;\n if (\n (collapseMode === SIDE_NAV_COLLAPSE_MODE.FIXED ||\n collapseMode === SIDE_NAV_COLLAPSE_MODE.RAIL) &&\n usageMode === SIDE_NAV_USAGE_MODE.HEADER_NAV\n ) {\n console.warn(\n 'Fixed/rail modes of side nav cannot be used with header nav mode.'\n ); // eslint-disable-line no-console\n }\n }\n const doc = this.getRootNode() as Document;\n if (changedProperties.has('collapseMode')) {\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).collapseMode = this.collapseMode;\n }\n );\n }\n if (changedProperties.has('expanded')) {\n this._updatedSideNavMenuForceCollapsedState();\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).active = this.expanded;\n }\n );\n }\n if (changedProperties.has('usageMode')) {\n forEach(\n doc.querySelectorAll(\n (this.constructor as typeof BXSideNav).selectorButtonToggle\n ),\n (item) => {\n (item as BXHeaderMenuButton).usageMode = this.usageMode;\n }\n );\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n /**\n * A selector that will return the toggle buttons.\n */\n static get selectorButtonToggle() {\n return `${prefix}-header-menu-button`;\n }\n\n /**\n * A selector that will return side nav focusable items.\n */\n static get selectorNavItems() {\n return `${prefix}-side-nav-menu, ${prefix}-side-nav-menu-item, ${prefix}-side-nav-link`;\n }\n\n /**\n * A selector that will return side nav menus.\n */\n static get selectorMenu() {\n return `${prefix}-side-nav-menu`;\n }\n\n /**\n * The name of the custom event fired after the header menu button in the document is toggled upon a user gesture.\n */\n static get eventButtonToggle() {\n return `${prefix}-header-menu-button-toggled`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default BXSideNav;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,IAAI,QAAQ,KAAK;AACtC,SAASC,QAAQ,EAAEC,aAAa,QAAQ,mBAAmB;AAC3D,OAAOC,EAAE,MAAM,yBAAyB;AACxC,SAASC,MAAM,QAAQ,wBAAwB;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;AAuNrD,eAAeY,SAAS"}
|
|
@@ -12,28 +12,52 @@ export interface ComponentProps {
|
|
|
12
12
|
* The file types the file input should accept, separated by space.
|
|
13
13
|
*/
|
|
14
14
|
accept?: string;
|
|
15
|
+
/**
|
|
16
|
+
* `true` if the drop container should be disabled.
|
|
17
|
+
*/
|
|
18
|
+
button?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Button kind.
|
|
21
|
+
*/
|
|
22
|
+
buttonKind?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Button label.
|
|
25
|
+
*/
|
|
26
|
+
buttonLabel?: string;
|
|
15
27
|
/**
|
|
16
28
|
* `true` if the drop container should be disabled.
|
|
17
29
|
*/
|
|
18
30
|
disabled?: boolean;
|
|
19
31
|
/**
|
|
20
|
-
*
|
|
32
|
+
* Icon description.
|
|
21
33
|
*/
|
|
22
|
-
|
|
34
|
+
iconDescription?: string;
|
|
23
35
|
/**
|
|
24
|
-
* The
|
|
36
|
+
* The input name.
|
|
25
37
|
*/
|
|
26
|
-
|
|
38
|
+
inputName?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The label description text.
|
|
41
|
+
*/
|
|
42
|
+
labelDescription?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The label title.
|
|
45
|
+
*/
|
|
46
|
+
labelTitle?: string;
|
|
27
47
|
/**
|
|
28
48
|
* `true` if the drop container should accept more than one files at once.
|
|
29
49
|
* Note that even with `false` set here, user _can_ select multiple files one by one.
|
|
30
50
|
*/
|
|
31
51
|
multiple?: boolean;
|
|
32
52
|
/**
|
|
33
|
-
* The size of the
|
|
53
|
+
* The size of the button item.
|
|
34
54
|
*/
|
|
35
55
|
size?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The state of this file uploader item.
|
|
58
|
+
*/
|
|
59
|
+
inputState?: string;
|
|
36
60
|
[prop: string]: unknown;
|
|
37
61
|
}
|
|
38
|
-
declare class
|
|
39
|
-
export default
|
|
62
|
+
declare class CDSCEDemoFileUploader extends Component<ComponentProps> {}
|
|
63
|
+
export default CDSCEDemoFileUploader;
|
|
@@ -15,27 +15,51 @@ import settings from 'carbon-components/es/globals/js/settings.js';
|
|
|
15
15
|
var prefix = settings.prefix;
|
|
16
16
|
export var descriptor = {
|
|
17
17
|
accept: {},
|
|
18
|
+
button: {
|
|
19
|
+
serialize: booleanSerializer,
|
|
20
|
+
},
|
|
21
|
+
buttonKind: {
|
|
22
|
+
attribute: 'button-kind',
|
|
23
|
+
},
|
|
24
|
+
buttonLabel: {
|
|
25
|
+
attribute: 'button-label',
|
|
26
|
+
},
|
|
18
27
|
disabled: {
|
|
19
28
|
serialize: booleanSerializer,
|
|
20
29
|
},
|
|
21
|
-
|
|
22
|
-
attribute: '
|
|
30
|
+
iconDescription: {
|
|
31
|
+
attribute: 'icon-description',
|
|
23
32
|
},
|
|
24
|
-
|
|
25
|
-
attribute: '
|
|
33
|
+
inputName: {
|
|
34
|
+
attribute: 'input-name',
|
|
35
|
+
},
|
|
36
|
+
labelDescription: {
|
|
37
|
+
attribute: 'label-description',
|
|
38
|
+
},
|
|
39
|
+
labelTitle: {
|
|
40
|
+
attribute: 'label-title',
|
|
26
41
|
},
|
|
27
42
|
multiple: {
|
|
28
43
|
serialize: booleanSerializer,
|
|
29
44
|
},
|
|
30
45
|
size: {},
|
|
46
|
+
inputState: {
|
|
47
|
+
attribute: 'input-state',
|
|
48
|
+
},
|
|
31
49
|
};
|
|
32
50
|
export var propTypes = {
|
|
33
51
|
accept: PropTypes.string,
|
|
52
|
+
button: PropTypes.bool,
|
|
53
|
+
buttonKind: PropTypes.string,
|
|
54
|
+
buttonLabel: PropTypes.string,
|
|
34
55
|
disabled: PropTypes.bool,
|
|
35
|
-
|
|
36
|
-
|
|
56
|
+
iconDescription: PropTypes.string,
|
|
57
|
+
inputName: PropTypes.string,
|
|
58
|
+
labelDescription: PropTypes.string,
|
|
59
|
+
labelTitle: PropTypes.string,
|
|
37
60
|
multiple: PropTypes.bool,
|
|
38
61
|
size: PropTypes.string,
|
|
62
|
+
inputState: PropTypes.string,
|
|
39
63
|
};
|
|
40
64
|
const Component = createReactCustomElementType(
|
|
41
65
|
''.concat(prefix, '-ce-demo-file-uploader'),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { Component } from 'react';
|
|
10
|
+
export interface ComponentProps {
|
|
11
|
+
/**
|
|
12
|
+
* The event handler for the custom event fired when there is a user gesture to select files to upload.
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (event: CustomEvent) => void;
|
|
15
|
+
[prop: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
/*[object Object]*/
|
|
18
|
+
declare class CDSFileUploaderButton extends Component<ComponentProps> {}
|
|
19
|
+
export default CDSFileUploaderButton;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export { FORM_ELEMENT_COLOR_SCHEME as TILE_COLOR_SCHEME } from '../../globals/shared-enums.js';
|
|
10
|
+
export { default as CustomElement } from '../../components/file-uploader/file-uploader-button.js';
|
|
11
|
+
import createReactCustomElementType from '../../globals/wrappers/createReactCustomElementType.js';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
14
|
+
var prefix = settings.prefix;
|
|
15
|
+
export var descriptor = {
|
|
16
|
+
onChange: {
|
|
17
|
+
event: ''.concat(prefix, '-file-uploader-button-changed'),
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export var propTypes = {
|
|
21
|
+
onChange: PropTypes.func,
|
|
22
|
+
};
|
|
23
|
+
const Component = createReactCustomElementType(
|
|
24
|
+
''.concat(prefix, '-file-uploader-button'),
|
|
25
|
+
descriptor
|
|
26
|
+
);
|
|
27
|
+
Component.propTypes = propTypes;
|
|
28
|
+
export default Component;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { Component } from 'react';
|
|
10
|
+
export interface ComponentProps {
|
|
11
|
+
/**
|
|
12
|
+
* The event handler for the custom event fired when there is a user gesture to select files to upload.
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (event: CustomEvent) => void;
|
|
15
|
+
[prop: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
/*[object Object]*/
|
|
18
|
+
declare class CDSFileUploaderDropContainer extends Component<ComponentProps> {}
|
|
19
|
+
export default CDSFileUploaderDropContainer;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export { FORM_ELEMENT_COLOR_SCHEME as TILE_COLOR_SCHEME } from '../../globals/shared-enums.js';
|
|
10
|
+
export { default as CustomElement } from '../../components/file-uploader/file-uploader-drop-container.js';
|
|
11
|
+
import createReactCustomElementType from '../../globals/wrappers/createReactCustomElementType.js';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
14
|
+
var prefix = settings.prefix;
|
|
15
|
+
export var descriptor = {
|
|
16
|
+
onChange: {
|
|
17
|
+
event: ''.concat(prefix, '-file-uploader-drop-container-changed'),
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export var propTypes = {
|
|
21
|
+
onChange: PropTypes.func,
|
|
22
|
+
};
|
|
23
|
+
const Component = createReactCustomElementType(
|
|
24
|
+
''.concat(prefix, '-file-uploader-drop-container'),
|
|
25
|
+
descriptor
|
|
26
|
+
);
|
|
27
|
+
Component.propTypes = propTypes;
|
|
28
|
+
export default Component;
|
|
@@ -20,5 +20,5 @@ export interface ComponentProps {
|
|
|
20
20
|
[prop: string]: unknown;
|
|
21
21
|
}
|
|
22
22
|
/*[object Object]*/
|
|
23
|
-
declare class
|
|
24
|
-
export default
|
|
23
|
+
declare class CDSFileUploaderItem extends Component<ComponentProps> {}
|
|
24
|
+
export default CDSFileUploaderItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { Component } from 'react';
|
|
10
|
+
export interface ComponentProps {
|
|
11
|
+
[prop: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
/*[object Object]*/
|
|
14
|
+
declare class CDSFileUploaderSkeleton extends Component<ComponentProps> {}
|
|
15
|
+
export default CDSFileUploaderSkeleton;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2019, 2020
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
export { default as CustomElement } from '../../components/file-uploader/file-uploader-skeleton.js';
|
|
10
|
+
import createReactCustomElementType from '../../globals/wrappers/createReactCustomElementType.js';
|
|
11
|
+
import PropTypes from 'prop-types';
|
|
12
|
+
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
13
|
+
var prefix = settings.prefix;
|
|
14
|
+
export var descriptor = {};
|
|
15
|
+
export var propTypes = {};
|
|
16
|
+
const Component = createReactCustomElementType(
|
|
17
|
+
''.concat(prefix, '-file-uploader-skeleton'),
|
|
18
|
+
descriptor
|
|
19
|
+
);
|
|
20
|
+
Component.propTypes = propTypes;
|
|
21
|
+
export default Component;
|
|
@@ -11,5 +11,5 @@ export interface ComponentProps {
|
|
|
11
11
|
[prop: string]: unknown;
|
|
12
12
|
}
|
|
13
13
|
/*[object Object]*/
|
|
14
|
-
declare class
|
|
15
|
-
export default
|
|
14
|
+
declare class CDSFileUploader extends Component<ComponentProps> {}
|
|
15
|
+
export default CDSFileUploader;
|