@indielayer/ui 1.5.1 → 1.6.0
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/README.md +1 -1
- package/docs/components/common/DocumentPage.vue +0 -30
- package/docs/components/menu/DocsMenu.vue +2 -0
- package/docs/components/toolbar/Toolbar.vue +2 -9
- package/docs/pages/component/datepicker/index.vue +35 -0
- package/docs/pages/component/datepicker/usage.vue +22 -0
- package/docs/pages/component/form/usage.vue +29 -19
- package/docs/pages/component/menu/usage.vue +7 -3
- package/docs/pages/component/qrCode/index.vue +25 -0
- package/docs/pages/component/qrCode/usage.vue +20 -0
- package/docs/pages/component/slider/usage.vue +8 -10
- package/docs/pages/index.vue +9 -19
- package/exports/nuxt.plugin.js +9 -2
- package/lib/components/accordion/AccordionItem.vue.js +25 -24
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +7 -7
- package/lib/components/alert/Alert.vue2.js +4 -3
- package/lib/components/button/Button.vue.d.ts +3 -3
- package/lib/components/button/Button.vue.js +2 -2
- package/lib/components/button/Button.vue2.js +10 -10
- package/lib/components/carousel/Carousel.vue.d.ts +8 -2
- package/lib/components/carousel/Carousel.vue.js +51 -48
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +35 -35
- package/lib/components/datepicker/Datepicker.vue.d.ts +1886 -0
- package/lib/components/datepicker/Datepicker.vue.js +328 -0
- package/lib/components/datepicker/Datepicker.vue2.js +4 -0
- package/lib/components/datepicker/Datepicker.vue3.js +5 -0
- package/lib/components/datepicker/__tests__/Datepicker.spec.d.ts +1 -0
- package/lib/components/datepicker/index.d.ts +2 -0
- package/lib/components/datepicker/theme/Datepicker.base.theme.d.ts +3 -0
- package/lib/components/datepicker/theme/Datepicker.base.theme.js +65 -0
- package/lib/components/datepicker/theme/Datepicker.carbon.theme.d.ts +3 -0
- package/lib/components/datepicker/theme/Datepicker.carbon.theme.js +5 -0
- package/lib/components/drawer/Drawer.vue.js +1 -1
- package/lib/components/drawer/theme/Drawer.base.theme.js +1 -1
- package/lib/components/formGroup/FormGroup.vue.js +42 -36
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +99 -94
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +1 -1
- package/lib/components/label/theme/Label.base.theme.js +1 -1
- package/lib/components/menu/Menu.vue.d.ts +4 -0
- package/lib/components/menu/Menu.vue.js +40 -34
- package/lib/components/menu/MenuItem.vue.d.ts +4 -0
- package/lib/components/menu/MenuItem.vue.js +1 -1
- package/lib/components/menu/MenuItem.vue2.js +43 -39
- package/lib/components/menu/theme/MenuItem.base.theme.js +1 -1
- package/lib/components/notifications/Notifications.vue.js +1 -0
- package/lib/components/popover/Popover.vue.d.ts +7 -25
- package/lib/components/popover/Popover.vue.js +12 -12
- package/lib/components/qrCode/QrCode.vue.d.ts +68 -0
- package/lib/components/qrCode/QrCode.vue.js +93 -0
- package/lib/components/qrCode/QrCode.vue2.js +4 -0
- package/lib/components/qrCode/__tests__/QrCode.spec.d.ts +1 -0
- package/lib/components/qrCode/index.d.ts +2 -0
- package/lib/components/qrCode/qrcodegen.d.ts +94 -0
- package/lib/components/qrCode/qrcodegen.js +571 -0
- package/lib/components/qrCode/theme/QrCode.base.theme.d.ts +3 -0
- package/lib/components/qrCode/theme/QrCode.base.theme.js +8 -0
- package/lib/components/qrCode/theme/QrCode.carbon.theme.d.ts +3 -0
- package/lib/components/qrCode/theme/QrCode.carbon.theme.js +5 -0
- package/lib/components/radio/theme/Radio.base.theme.js +27 -27
- package/lib/components/scroll/Scroll.vue2.js +4 -4
- package/lib/components/slider/Slider.vue.d.ts +31 -31
- package/lib/components/slider/Slider.vue.js +5 -146
- package/lib/components/slider/Slider.vue2.js +101 -2
- package/lib/components/slider/Slider.vue3.js +4 -0
- package/lib/components/slider/theme/Slider.base.theme.js +14 -10
- package/lib/components/slider/theme/Slider.carbon.theme.js +3 -14
- package/lib/components/stepper/Stepper.vue.js +35 -34
- package/lib/components/tab/Tab.vue.js +7 -6
- package/lib/components/table/Table.vue.js +16 -15
- package/lib/components/tooltip/Tooltip.vue.js +1 -1
- package/lib/create.d.ts +5 -1
- package/lib/create.js +18 -15
- package/lib/index.js +117 -113
- package/lib/index.umd.js +40 -3
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@8.0.0_vue@3.3.9/node_modules/@vuepic/vue-datepicker/dist/main.css.js +4 -0
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@8.0.0_vue@3.3.9/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5011 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/formatters.js +518 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/protectedTokens.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/add.js +20 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addDays.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addMonths.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addQuarters.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addYears.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/constants.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/constructFrom.js +7 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/differenceInCalendarDays.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/eachDayOfInterval.js +19 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/eachQuarterOfInterval.js +20 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfWeek.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfYear.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/format.js +60 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDay.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDayOfYear.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDaysInMonth.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDefaultOptions.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getHours.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISODay.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISOWeek.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getMinutes.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getMonth.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getSeconds.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getWeek.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getWeekYear.js +17 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getYear.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isAfter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isBefore.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isDate.js +7 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isEqual.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isSameQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isValid.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/Parser.js +22 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/Setter.js +40 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/constants.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/utils.js +103 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse.js +90 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parseISO.js +128 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/set.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setDay.js +12 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setHours.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setISODay.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setISOWeek.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMilliseconds.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMinutes.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMonth.js +13 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setSeconds.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setWeek.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setYear.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfDay.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfQuarter.js +9 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfWeek.js +11 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfYear.js +10 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/sub.js +19 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subDays.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subMonths.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subYears.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/toDate.js +8 -0
- package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/transpose.js +18 -0
- package/lib/node_modules/.pnpm/{floating-vue@5.2.0_vue@3.3.9 → floating-vue@5.2.2_vue@3.3.9}/node_modules/floating-vue/dist/floating-vue.js +208 -183
- package/lib/nuxt.plugin.js +9 -2
- package/lib/theme.d.ts +3 -1
- package/lib/themes/base/components.d.ts +2 -0
- package/lib/themes/base/components.js +82 -78
- package/lib/themes/base/index.js +2 -2
- package/lib/themes/base/styles.d.ts +2 -0
- package/{src/themes/base/styles.css → lib/themes/base/styles.js} +5 -1
- package/lib/themes/carbon/components.d.ts +2 -0
- package/lib/themes/carbon/components.js +82 -78
- package/lib/themes/carbon/index.js +2 -2
- package/lib/themes/carbon/styles.d.ts +2 -0
- package/lib/themes/carbon/{styles.css.js → styles.js} +2 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -2
- package/src/components/accordion/AccordionItem.vue +1 -0
- package/src/components/accordion/theme/AccordionItem.base.theme.ts +2 -2
- package/src/components/alert/Alert.vue +1 -1
- package/src/components/button/Button.vue +1 -1
- package/src/components/carousel/Carousel.vue +8 -3
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +6 -4
- package/src/components/datepicker/Datepicker.vue +414 -0
- package/src/components/datepicker/__tests__/Datepicker.spec.ts +11 -0
- package/src/components/datepicker/index.ts +2 -0
- package/src/components/datepicker/theme/Datepicker.base.theme.ts +72 -0
- package/src/components/datepicker/theme/Datepicker.carbon.theme.ts +7 -0
- package/src/components/drawer/Drawer.vue +1 -1
- package/src/components/drawer/theme/Drawer.base.theme.ts +1 -1
- package/src/components/formGroup/FormGroup.vue +5 -0
- package/src/components/index.ts +2 -0
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +1 -1
- package/src/components/label/theme/Label.base.theme.ts +1 -1
- package/src/components/menu/Menu.vue +6 -0
- package/src/components/menu/MenuItem.vue +2 -1
- package/src/components/menu/theme/MenuItem.base.theme.ts +1 -1
- package/src/components/notifications/Notifications.vue +1 -0
- package/src/components/popover/Popover.vue +2 -2
- package/src/components/qrCode/QrCode.vue +120 -0
- package/src/components/qrCode/__tests__/QrCode.spec.ts +14 -0
- package/src/components/qrCode/index.ts +2 -0
- package/src/components/qrCode/qrcodegen.ts +991 -0
- package/src/components/qrCode/theme/QrCode.base.theme.ts +9 -0
- package/src/components/qrCode/theme/QrCode.carbon.theme.ts +7 -0
- package/src/components/radio/theme/Radio.base.theme.ts +5 -3
- package/src/components/scroll/Scroll.vue +1 -1
- package/src/components/slider/Slider.vue +63 -137
- package/src/components/slider/theme/Slider.base.theme.ts +10 -5
- package/src/components/slider/theme/Slider.carbon.theme.ts +2 -16
- package/src/components/stepper/Stepper.vue +1 -0
- package/src/components/tab/Tab.vue +1 -0
- package/src/components/table/Table.vue +1 -1
- package/src/create.ts +11 -4
- package/src/theme.ts +4 -0
- package/src/themes/base/components.ts +2 -0
- package/src/themes/base/index.ts +2 -2
- package/{lib/themes/base/styles.css.js → src/themes/base/styles.ts} +2 -5
- package/src/themes/carbon/components.ts +2 -0
- package/src/themes/carbon/index.ts +2 -2
- package/src/themes/carbon/{styles.css → styles.ts} +2 -0
- package/src/version.ts +1 -1
- package/volar.d.ts +2 -0
package/lib/nuxt.plugin.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { defineNuxtPlugin } from '#app'
|
|
2
|
-
import
|
|
2
|
+
import { BaseTheme, injectIconsKey, injectOptionsKey, injectThemeKey, createUI } from '../src'
|
|
3
3
|
|
|
4
4
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
|
-
const UI =
|
|
5
|
+
const UI = createUI({
|
|
6
|
+
...nuxtApp.$config.public?.indielayerOptions,
|
|
7
|
+
theme: BaseTheme,
|
|
8
|
+
injectIconsKey,
|
|
9
|
+
injectOptionsKey,
|
|
10
|
+
injectThemeKey,
|
|
11
|
+
|
|
12
|
+
})
|
|
6
13
|
|
|
7
14
|
nuxtApp.vueApp.use(UI)
|
|
8
15
|
})
|
package/lib/theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorLibrary } from './composables/useColors';
|
|
2
|
-
import type { AccordionTheme, AccordionItemTheme, AlertTheme, AvatarTheme, BadgeTheme, BreadcrumbsTheme, ButtonTheme, ButtonGroupTheme, CardTheme, CarouselTheme, CarouselSlideTheme, CheckboxTheme, ContainerTheme, DividerTheme, DrawerTheme, FormTheme, FormGroupTheme, IconTheme, ImageTheme, InputTheme, InputFooterTheme, LabelTheme, LinkTheme, LoaderTheme, MenuTheme, MenuItemTheme, ModalTheme, NotificationsTheme, PaginationTheme, PaginationItemTheme, PopoverTheme, PopoverContainerTheme, ProgressTheme, RadioTheme, ScrollTheme, SelectTheme, SkeletonTheme, SliderTheme, StepperTheme, TabTheme, TabGroupTheme, TableTheme, TableCellTheme, TableHeadTheme, TableHeaderTheme, TableRowTheme, TagTheme, TextareaTheme, ToggleTheme } from './components';
|
|
2
|
+
import type { AccordionTheme, AccordionItemTheme, AlertTheme, AvatarTheme, BadgeTheme, BreadcrumbsTheme, ButtonTheme, ButtonGroupTheme, CardTheme, CarouselTheme, CarouselSlideTheme, CheckboxTheme, ContainerTheme, DatepickerTheme, DividerTheme, DrawerTheme, FormTheme, FormGroupTheme, IconTheme, ImageTheme, InputTheme, InputFooterTheme, LabelTheme, LinkTheme, LoaderTheme, MenuTheme, MenuItemTheme, ModalTheme, NotificationsTheme, PaginationTheme, PaginationItemTheme, PopoverTheme, PopoverContainerTheme, ProgressTheme, QrCodeTheme, RadioTheme, ScrollTheme, SelectTheme, SkeletonTheme, SliderTheme, StepperTheme, TabTheme, TabGroupTheme, TableTheme, TableCellTheme, TableHeadTheme, TableHeaderTheme, TableRowTheme, TagTheme, TextareaTheme, ToggleTheme } from './components';
|
|
3
3
|
export type ComponentThemes = {
|
|
4
4
|
Accordion: AccordionTheme;
|
|
5
5
|
AccordionItem: AccordionItemTheme;
|
|
@@ -14,6 +14,7 @@ export type ComponentThemes = {
|
|
|
14
14
|
CarouselSlide: CarouselSlideTheme;
|
|
15
15
|
Checkbox: CheckboxTheme;
|
|
16
16
|
Container: ContainerTheme;
|
|
17
|
+
Datepicker: DatepickerTheme;
|
|
17
18
|
Divider: DividerTheme;
|
|
18
19
|
Drawer: DrawerTheme;
|
|
19
20
|
Form: FormTheme;
|
|
@@ -34,6 +35,7 @@ export type ComponentThemes = {
|
|
|
34
35
|
Popover: PopoverTheme;
|
|
35
36
|
PopoverContainer: PopoverContainerTheme;
|
|
36
37
|
Progress: ProgressTheme;
|
|
38
|
+
QrCode: QrCodeTheme;
|
|
37
39
|
Radio: RadioTheme;
|
|
38
40
|
Scroll: ScrollTheme;
|
|
39
41
|
Select: SelectTheme;
|
|
@@ -11,6 +11,7 @@ export { default as Carousel } from '../../components/carousel/theme/Carousel.ba
|
|
|
11
11
|
export { default as CarouselSlide } from '../../components/carousel/theme/CarouselSlide.base.theme';
|
|
12
12
|
export { default as Checkbox } from '../../components/checkbox/theme/Checkbox.base.theme';
|
|
13
13
|
export { default as Container } from '../../components/container/theme/Container.base.theme';
|
|
14
|
+
export { default as Datepicker } from '../../components/datepicker/theme/Datepicker.base.theme';
|
|
14
15
|
export { default as Divider } from '../../components/divider/theme/Divider.base.theme';
|
|
15
16
|
export { default as Drawer } from '../../components/drawer/theme/Drawer.base.theme';
|
|
16
17
|
export { default as Form } from '../../components/form/theme/Form.base.theme';
|
|
@@ -31,6 +32,7 @@ export { default as PaginationItem } from '../../components/pagination/theme/Pag
|
|
|
31
32
|
export { default as Popover } from '../../components/popover/theme/Popover.base.theme';
|
|
32
33
|
export { default as PopoverContainer } from '../../components/popover/theme/PopoverContainer.base.theme';
|
|
33
34
|
export { default as Progress } from '../../components/progress/theme/Progress.base.theme';
|
|
35
|
+
export { default as QrCode } from '../../components/qrCode/theme/QrCode.base.theme';
|
|
34
36
|
export { default as Radio } from '../../components/radio/theme/Radio.base.theme';
|
|
35
37
|
export { default as Scroll } from '../../components/scroll/theme/Scroll.base.theme';
|
|
36
38
|
export { default as Select } from '../../components/select/theme/Select.base.theme';
|
|
@@ -5,48 +5,50 @@ import { default as u } from "../../components/avatar/theme/Avatar.base.theme.js
|
|
|
5
5
|
import { default as m } from "../../components/badge/theme/Badge.base.theme.js";
|
|
6
6
|
import { default as x } from "../../components/breadcrumbs/theme/Breadcrumbs.base.theme.js";
|
|
7
7
|
import { default as i } from "../../components/button/theme/Button.base.theme.js";
|
|
8
|
-
import { default as
|
|
8
|
+
import { default as b } from "../../components/button/theme/ButtonGroup.base.theme.js";
|
|
9
9
|
import { default as g } from "../../components/card/theme/Card.base.theme.js";
|
|
10
10
|
import { default as I } from "../../components/carousel/theme/Carousel.base.theme.js";
|
|
11
11
|
import { default as P } from "../../components/carousel/theme/CarouselSlide.base.theme.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as R } from "../../components/
|
|
18
|
-
import { default as N } from "../../components/
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as U } from "../../components/
|
|
24
|
-
import { default as W } from "../../components/
|
|
25
|
-
import { default as Y } from "../../components/
|
|
26
|
-
import { default as _ } from "../../components/menu/theme/
|
|
27
|
-
import { default as ee } from "../../components/
|
|
28
|
-
import { default as ae } from "../../components/
|
|
29
|
-
import { default as te } from "../../components/
|
|
30
|
-
import { default as le } from "../../components/pagination/theme/
|
|
31
|
-
import { default as ue } from "../../components/
|
|
32
|
-
import { default as me } from "../../components/popover/theme/
|
|
33
|
-
import { default as xe } from "../../components/
|
|
34
|
-
import { default as ie } from "../../components/
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as ge } from "../../components/
|
|
37
|
-
import { default as Ie } from "../../components/
|
|
38
|
-
import { default as Pe } from "../../components/
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as Re } from "../../components/table/theme/
|
|
45
|
-
import { default as Ne } from "../../components/table/theme/
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
12
|
+
import { default as v } from "../../components/checkbox/theme/Checkbox.base.theme.js";
|
|
13
|
+
import { default as B } from "../../components/container/theme/Container.base.theme.js";
|
|
14
|
+
import { default as F } from "../../components/datepicker/theme/Datepicker.base.theme.js";
|
|
15
|
+
import { default as L } from "../../components/divider/theme/Divider.base.theme.js";
|
|
16
|
+
import { default as w } from "../../components/drawer/theme/Drawer.base.theme.js";
|
|
17
|
+
import { default as R } from "../../components/form/theme/Form.base.theme.js";
|
|
18
|
+
import { default as N } from "../../components/formGroup/theme/FormGroup.base.theme.js";
|
|
19
|
+
import { default as j } from "../../components/icon/theme/Icon.base.theme.js";
|
|
20
|
+
import { default as y } from "../../components/image/theme/Image.base.theme.js";
|
|
21
|
+
import { default as E } from "../../components/input/theme/Input.base.theme.js";
|
|
22
|
+
import { default as K } from "../../components/inputFooter/theme/InputFooter.base.theme.js";
|
|
23
|
+
import { default as U } from "../../components/label/theme/Label.base.theme.js";
|
|
24
|
+
import { default as W } from "../../components/link/theme/Link.base.theme.js";
|
|
25
|
+
import { default as Y } from "../../components/loader/theme/Loader.base.theme.js";
|
|
26
|
+
import { default as _ } from "../../components/menu/theme/Menu.base.theme.js";
|
|
27
|
+
import { default as ee } from "../../components/menu/theme/MenuItem.base.theme.js";
|
|
28
|
+
import { default as ae } from "../../components/modal/theme/Modal.base.theme.js";
|
|
29
|
+
import { default as te } from "../../components/notifications/theme/Notifications.base.theme.js";
|
|
30
|
+
import { default as le } from "../../components/pagination/theme/Pagination.base.theme.js";
|
|
31
|
+
import { default as ue } from "../../components/pagination/theme/PaginationItem.base.theme.js";
|
|
32
|
+
import { default as me } from "../../components/popover/theme/Popover.base.theme.js";
|
|
33
|
+
import { default as xe } from "../../components/popover/theme/PopoverContainer.base.theme.js";
|
|
34
|
+
import { default as ie } from "../../components/progress/theme/Progress.base.theme.js";
|
|
35
|
+
import { default as be } from "../../components/qrCode/theme/QrCode.base.theme.js";
|
|
36
|
+
import { default as ge } from "../../components/radio/theme/Radio.base.theme.js";
|
|
37
|
+
import { default as Ie } from "../../components/scroll/theme/Scroll.base.theme.js";
|
|
38
|
+
import { default as Pe } from "../../components/select/theme/Select.base.theme.js";
|
|
39
|
+
import { default as ve } from "../../components/skeleton/theme/Skeleton.base.theme.js";
|
|
40
|
+
import { default as Be } from "../../components/slider/theme/Slider.base.theme.js";
|
|
41
|
+
import { default as Fe } from "../../components/stepper/theme/Stepper.base.theme.js";
|
|
42
|
+
import { default as Le } from "../../components/tab/theme/Tab.base.theme.js";
|
|
43
|
+
import { default as we } from "../../components/tab/theme/TabGroup.base.theme.js";
|
|
44
|
+
import { default as Re } from "../../components/table/theme/Table.base.theme.js";
|
|
45
|
+
import { default as Ne } from "../../components/table/theme/TableCell.base.theme.js";
|
|
46
|
+
import { default as je } from "../../components/table/theme/TableHead.base.theme.js";
|
|
47
|
+
import { default as ye } from "../../components/table/theme/TableHeader.base.theme.js";
|
|
48
|
+
import { default as Ee } from "../../components/table/theme/TableRow.base.theme.js";
|
|
49
|
+
import { default as Ke } from "../../components/tag/theme/Tag.base.theme.js";
|
|
50
|
+
import { default as Ue } from "../../components/textarea/theme/Textarea.base.theme.js";
|
|
51
|
+
import { default as We } from "../../components/toggle/theme/Toggle.base.theme.js";
|
|
50
52
|
export {
|
|
51
53
|
a as Accordion,
|
|
52
54
|
t as AccordionItem,
|
|
@@ -55,46 +57,48 @@ export {
|
|
|
55
57
|
m as Badge,
|
|
56
58
|
x as Breadcrumbs,
|
|
57
59
|
i as Button,
|
|
58
|
-
|
|
60
|
+
b as ButtonGroup,
|
|
59
61
|
g as Card,
|
|
60
62
|
I as Carousel,
|
|
61
63
|
P as CarouselSlide,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
R as
|
|
68
|
-
N as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
U as
|
|
74
|
-
W as
|
|
75
|
-
Y as
|
|
76
|
-
_ as
|
|
77
|
-
ee as
|
|
78
|
-
ae as
|
|
79
|
-
te as
|
|
80
|
-
le as
|
|
81
|
-
ue as
|
|
82
|
-
me as
|
|
83
|
-
xe as
|
|
84
|
-
ie as
|
|
85
|
-
|
|
86
|
-
ge as
|
|
87
|
-
Ie as
|
|
88
|
-
Pe as
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Re as
|
|
95
|
-
Ne as
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
64
|
+
v as Checkbox,
|
|
65
|
+
B as Container,
|
|
66
|
+
F as Datepicker,
|
|
67
|
+
L as Divider,
|
|
68
|
+
w as Drawer,
|
|
69
|
+
R as Form,
|
|
70
|
+
N as FormGroup,
|
|
71
|
+
j as Icon,
|
|
72
|
+
y as Image,
|
|
73
|
+
E as Input,
|
|
74
|
+
K as InputFooter,
|
|
75
|
+
U as Label,
|
|
76
|
+
W as Link,
|
|
77
|
+
Y as Loader,
|
|
78
|
+
_ as Menu,
|
|
79
|
+
ee as MenuItem,
|
|
80
|
+
ae as Modal,
|
|
81
|
+
te as Notifications,
|
|
82
|
+
le as Pagination,
|
|
83
|
+
ue as PaginationItem,
|
|
84
|
+
me as Popover,
|
|
85
|
+
xe as PopoverContainer,
|
|
86
|
+
ie as Progress,
|
|
87
|
+
be as QrCode,
|
|
88
|
+
ge as Radio,
|
|
89
|
+
Ie as Scroll,
|
|
90
|
+
Pe as Select,
|
|
91
|
+
ve as Skeleton,
|
|
92
|
+
Be as Slider,
|
|
93
|
+
Fe as Stepper,
|
|
94
|
+
Le as Tab,
|
|
95
|
+
we as TabGroup,
|
|
96
|
+
Re as Table,
|
|
97
|
+
Ne as TableCell,
|
|
98
|
+
je as TableHead,
|
|
99
|
+
ye as TableHeader,
|
|
100
|
+
Ee as TableRow,
|
|
101
|
+
Ke as Tag,
|
|
102
|
+
Ue as Textarea,
|
|
103
|
+
We as Toggle
|
|
100
104
|
};
|
package/lib/themes/base/index.js
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "\nhtml {\n color: #111827;\n background-color: white;\n}\n\nhtml.dark {\n color: #f3f4f6;\n background-color: #111827;\n}\n\nbody {\n font-size: 14px;\n}\n\n*,\n::before,\n::after {\n border-color: #e5e7eb;\n}\n\n.dark *,\n.dark ::before,\n.dark ::after {\n border-color: #374151;\n}\n\n:root {\n --font-family-sans: Inter, -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;\n --font-family-mono: ui-monospace, monospace;\n --border-color: 226, 232, 240;\n --primary-color-50: 236, 253, 245;\n --primary-color-100: 209, 250, 229;\n --primary-color-200: 167, 243, 208;\n --primary-color-300: 110, 231, 183;\n --primary-color-400: 52, 211, 153;\n --primary-color-500: 16, 185, 129;\n --primary-color-600: 5, 150, 105;\n --primary-color-700: 4, 120, 87;\n --primary-color-800: 6, 95, 70;\n --primary-color-900: 6, 78, 59;\n --primary-color-950: 2, 44, 34;\n --secondary-color-50: 248, 250, 252;\n --secondary-color-100: 241, 245, 249;\n --secondary-color-200: 226, 232, 240;\n --secondary-color-300: 203, 213, 225;\n --secondary-color-400: 148, 163, 184;\n --secondary-color-500: 100, 116, 139;\n --secondary-color-600: 71, 85, 105;\n --secondary-color-700: 51, 65, 85;\n --secondary-color-800: 30, 41, 59;\n --secondary-color-900: 15, 23, 42;\n --secondary-color-950: 2, 6, 23;\n --success-color-50: 240, 253, 244;\n --success-color-100: 220, 252, 231;\n --success-color-200: 187, 247, 208;\n --success-color-300: 134, 239, 172;\n --success-color-400: 74, 222, 128;\n --success-color-500: 34, 197, 94;\n --success-color-600: 22, 163, 74;\n --success-color-700: 21, 128, 61;\n --success-color-800: 22, 101, 52;\n --success-color-900: 20, 83, 45;\n --success-color-950: 5, 46, 22;\n --warning-color-50: 254, 252, 232;\n --warning-color-100: 254, 249, 195;\n --warning-color-200: 254, 240, 138;\n --warning-color-300: 253, 224, 71;\n --warning-color-400: 250, 204, 21;\n --warning-color-500: 234, 179, 8;\n --warning-color-600: 202, 138, 4;\n --warning-color-700: 161, 98, 7;\n --warning-color-800: 133, 77, 14;\n --warning-color-900: 113, 63, 18;\n --warning-color-950: 66, 32, 6;\n --error-color-50: 254, 242, 242;\n --error-color-100: 254, 226, 226;\n --error-color-200: 254, 202, 202;\n --error-color-300: 252, 165, 165;\n --error-color-400: 248, 113, 113;\n --error-color-500: 239, 68, 68;\n --error-color-600: 220, 38, 38;\n --error-color-700: 185, 28, 28;\n --error-color-800: 153, 27, 27;\n --error-color-900: 127, 29, 29;\n --error-color-950: 69, 10, 10;\n}\n";
|
|
2
|
+
export default _default;
|
|
@@ -11,6 +11,7 @@ export { default as Carousel } from '../../components/carousel/theme/Carousel.ca
|
|
|
11
11
|
export { default as CarouselSlide } from '../../components/carousel/theme/CarouselSlide.carbon.theme';
|
|
12
12
|
export { default as Checkbox } from '../../components/checkbox/theme/Checkbox.carbon.theme';
|
|
13
13
|
export { default as Container } from '../../components/container/theme/Container.carbon.theme';
|
|
14
|
+
export { default as Datepicker } from '../../components/datepicker/theme/Datepicker.carbon.theme';
|
|
14
15
|
export { default as Divider } from '../../components/divider/theme/Divider.carbon.theme';
|
|
15
16
|
export { default as Drawer } from '../../components/drawer/theme/Drawer.carbon.theme';
|
|
16
17
|
export { default as Form } from '../../components/form/theme/Form.carbon.theme';
|
|
@@ -31,6 +32,7 @@ export { default as PaginationItem } from '../../components/pagination/theme/Pag
|
|
|
31
32
|
export { default as Popover } from '../../components/popover/theme/Popover.carbon.theme';
|
|
32
33
|
export { default as PopoverContainer } from '../../components/popover/theme/PopoverContainer.carbon.theme';
|
|
33
34
|
export { default as Progress } from '../../components/progress/theme/Progress.carbon.theme';
|
|
35
|
+
export { default as QrCode } from '../../components/qrCode/theme/QrCode.carbon.theme';
|
|
34
36
|
export { default as Radio } from '../../components/radio/theme/Radio.carbon.theme';
|
|
35
37
|
export { default as Scroll } from '../../components/scroll/theme/Scroll.carbon.theme';
|
|
36
38
|
export { default as Select } from '../../components/select/theme/Select.carbon.theme';
|
|
@@ -5,48 +5,50 @@ import { default as u } from "../../components/avatar/theme/Avatar.carbon.theme.
|
|
|
5
5
|
import { default as m } from "../../components/badge/theme/Badge.carbon.theme.js";
|
|
6
6
|
import { default as x } from "../../components/breadcrumbs/theme/Breadcrumbs.carbon.theme.js";
|
|
7
7
|
import { default as i } from "../../components/button/theme/Button.carbon.theme.js";
|
|
8
|
-
import { default as
|
|
8
|
+
import { default as b } from "../../components/button/theme/ButtonGroup.carbon.theme.js";
|
|
9
9
|
import { default as g } from "../../components/card/theme/Card.carbon.theme.js";
|
|
10
10
|
import { default as I } from "../../components/carousel/theme/Carousel.carbon.theme.js";
|
|
11
11
|
import { default as P } from "../../components/carousel/theme/CarouselSlide.carbon.theme.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as R } from "../../components/
|
|
18
|
-
import { default as N } from "../../components/
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as U } from "../../components/
|
|
24
|
-
import { default as W } from "../../components/
|
|
25
|
-
import { default as Y } from "../../components/
|
|
26
|
-
import { default as _ } from "../../components/menu/theme/
|
|
27
|
-
import { default as ee } from "../../components/
|
|
28
|
-
import { default as ae } from "../../components/
|
|
29
|
-
import { default as te } from "../../components/
|
|
30
|
-
import { default as le } from "../../components/pagination/theme/
|
|
31
|
-
import { default as ue } from "../../components/
|
|
32
|
-
import { default as me } from "../../components/popover/theme/
|
|
33
|
-
import { default as xe } from "../../components/
|
|
34
|
-
import { default as ie } from "../../components/
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as ge } from "../../components/
|
|
37
|
-
import { default as Ie } from "../../components/
|
|
38
|
-
import { default as Pe } from "../../components/
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as Re } from "../../components/table/theme/
|
|
45
|
-
import { default as Ne } from "../../components/table/theme/
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
12
|
+
import { default as v } from "../../components/checkbox/theme/Checkbox.carbon.theme.js";
|
|
13
|
+
import { default as B } from "../../components/container/theme/Container.carbon.theme.js";
|
|
14
|
+
import { default as F } from "../../components/datepicker/theme/Datepicker.carbon.theme.js";
|
|
15
|
+
import { default as L } from "../../components/divider/theme/Divider.carbon.theme.js";
|
|
16
|
+
import { default as w } from "../../components/drawer/theme/Drawer.carbon.theme.js";
|
|
17
|
+
import { default as R } from "../../components/form/theme/Form.carbon.theme.js";
|
|
18
|
+
import { default as N } from "../../components/formGroup/theme/FormGroup.carbon.theme.js";
|
|
19
|
+
import { default as j } from "../../components/icon/theme/Icon.carbon.theme.js";
|
|
20
|
+
import { default as y } from "../../components/image/theme/Image.carbon.theme.js";
|
|
21
|
+
import { default as E } from "../../components/input/theme/Input.carbon.theme.js";
|
|
22
|
+
import { default as K } from "../../components/inputFooter/theme/InputFooter.carbon.theme.js";
|
|
23
|
+
import { default as U } from "../../components/label/theme/Label.carbon.theme.js";
|
|
24
|
+
import { default as W } from "../../components/link/theme/Link.carbon.theme.js";
|
|
25
|
+
import { default as Y } from "../../components/loader/theme/Loader.carbon.theme.js";
|
|
26
|
+
import { default as _ } from "../../components/menu/theme/Menu.carbon.theme.js";
|
|
27
|
+
import { default as ee } from "../../components/menu/theme/MenuItem.carbon.theme.js";
|
|
28
|
+
import { default as ae } from "../../components/modal/theme/Modal.carbon.theme.js";
|
|
29
|
+
import { default as te } from "../../components/notifications/theme/Notifications.carbon.theme.js";
|
|
30
|
+
import { default as le } from "../../components/pagination/theme/Pagination.carbon.theme.js";
|
|
31
|
+
import { default as ue } from "../../components/pagination/theme/PaginationItem.carbon.theme.js";
|
|
32
|
+
import { default as me } from "../../components/popover/theme/Popover.carbon.theme.js";
|
|
33
|
+
import { default as xe } from "../../components/popover/theme/PopoverContainer.carbon.theme.js";
|
|
34
|
+
import { default as ie } from "../../components/progress/theme/Progress.carbon.theme.js";
|
|
35
|
+
import { default as be } from "../../components/qrCode/theme/QrCode.carbon.theme.js";
|
|
36
|
+
import { default as ge } from "../../components/radio/theme/Radio.carbon.theme.js";
|
|
37
|
+
import { default as Ie } from "../../components/scroll/theme/Scroll.carbon.theme.js";
|
|
38
|
+
import { default as Pe } from "../../components/select/theme/Select.carbon.theme.js";
|
|
39
|
+
import { default as ve } from "../../components/skeleton/theme/Skeleton.carbon.theme.js";
|
|
40
|
+
import { default as Be } from "../../components/slider/theme/Slider.carbon.theme.js";
|
|
41
|
+
import { default as Fe } from "../../components/stepper/theme/Stepper.carbon.theme.js";
|
|
42
|
+
import { default as Le } from "../../components/tab/theme/Tab.carbon.theme.js";
|
|
43
|
+
import { default as we } from "../../components/tab/theme/TabGroup.carbon.theme.js";
|
|
44
|
+
import { default as Re } from "../../components/table/theme/Table.carbon.theme.js";
|
|
45
|
+
import { default as Ne } from "../../components/table/theme/TableCell.carbon.theme.js";
|
|
46
|
+
import { default as je } from "../../components/table/theme/TableHead.carbon.theme.js";
|
|
47
|
+
import { default as ye } from "../../components/table/theme/TableHeader.carbon.theme.js";
|
|
48
|
+
import { default as Ee } from "../../components/table/theme/TableRow.carbon.theme.js";
|
|
49
|
+
import { default as Ke } from "../../components/tag/theme/Tag.carbon.theme.js";
|
|
50
|
+
import { default as Ue } from "../../components/textarea/theme/Textarea.carbon.theme.js";
|
|
51
|
+
import { default as We } from "../../components/toggle/theme/Toggle.carbon.theme.js";
|
|
50
52
|
export {
|
|
51
53
|
a as Accordion,
|
|
52
54
|
t as AccordionItem,
|
|
@@ -55,46 +57,48 @@ export {
|
|
|
55
57
|
m as Badge,
|
|
56
58
|
x as Breadcrumbs,
|
|
57
59
|
i as Button,
|
|
58
|
-
|
|
60
|
+
b as ButtonGroup,
|
|
59
61
|
g as Card,
|
|
60
62
|
I as Carousel,
|
|
61
63
|
P as CarouselSlide,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
R as
|
|
68
|
-
N as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
U as
|
|
74
|
-
W as
|
|
75
|
-
Y as
|
|
76
|
-
_ as
|
|
77
|
-
ee as
|
|
78
|
-
ae as
|
|
79
|
-
te as
|
|
80
|
-
le as
|
|
81
|
-
ue as
|
|
82
|
-
me as
|
|
83
|
-
xe as
|
|
84
|
-
ie as
|
|
85
|
-
|
|
86
|
-
ge as
|
|
87
|
-
Ie as
|
|
88
|
-
Pe as
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Re as
|
|
95
|
-
Ne as
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
64
|
+
v as Checkbox,
|
|
65
|
+
B as Container,
|
|
66
|
+
F as Datepicker,
|
|
67
|
+
L as Divider,
|
|
68
|
+
w as Drawer,
|
|
69
|
+
R as Form,
|
|
70
|
+
N as FormGroup,
|
|
71
|
+
j as Icon,
|
|
72
|
+
y as Image,
|
|
73
|
+
E as Input,
|
|
74
|
+
K as InputFooter,
|
|
75
|
+
U as Label,
|
|
76
|
+
W as Link,
|
|
77
|
+
Y as Loader,
|
|
78
|
+
_ as Menu,
|
|
79
|
+
ee as MenuItem,
|
|
80
|
+
ae as Modal,
|
|
81
|
+
te as Notifications,
|
|
82
|
+
le as Pagination,
|
|
83
|
+
ue as PaginationItem,
|
|
84
|
+
me as Popover,
|
|
85
|
+
xe as PopoverContainer,
|
|
86
|
+
ie as Progress,
|
|
87
|
+
be as QrCode,
|
|
88
|
+
ge as Radio,
|
|
89
|
+
Ie as Scroll,
|
|
90
|
+
Pe as Select,
|
|
91
|
+
ve as Skeleton,
|
|
92
|
+
Be as Slider,
|
|
93
|
+
Fe as Stepper,
|
|
94
|
+
Le as Tab,
|
|
95
|
+
we as TabGroup,
|
|
96
|
+
Re as Table,
|
|
97
|
+
Ne as TableCell,
|
|
98
|
+
je as TableHead,
|
|
99
|
+
ye as TableHeader,
|
|
100
|
+
Ee as TableRow,
|
|
101
|
+
Ke as Tag,
|
|
102
|
+
Ue as Textarea,
|
|
103
|
+
We as Toggle
|
|
100
104
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as e from "./components.js";
|
|
2
|
-
import f from "./styles.
|
|
2
|
+
import f from "./styles.js";
|
|
3
3
|
const a = {
|
|
4
4
|
name: "Carbon",
|
|
5
5
|
colors: {
|
|
6
6
|
primary: { 50: "#eff6ff", 100: "#dbeafe", 200: "#bfdbfe", 300: "#93c5fd", 400: "#60a5fa", 500: "#3b82f6", 600: "#2563eb", 700: "#1d4ed8", 800: "#1e40af", 900: "#1e3a8a", 950: "#172554" }
|
|
7
7
|
},
|
|
8
|
-
styles:
|
|
8
|
+
styles: f,
|
|
9
9
|
classPrefix: "x-",
|
|
10
10
|
components: e
|
|
11
11
|
}, r = a;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "\nhtml {\n color: #111827;\n background-color: white;\n}\n\nhtml.dark {\n color: #f3f4f6;\n background-color: #111827;\n}\n\n*,\n::before,\n::after {\n border-color: #e5e7eb;\n}\n\n.dark *,\n.dark ::before,\n.dark ::after {\n border-color: #374151;\n}\n\n:root {\n --font-family-sans: \"IBM Plex Sans\", \"Helvetica Neue\", arial, sans-serif;\n --font-family-mono: \"IBM Plex Mono\", \"Menlo\", \"DejaVu Sans Mono\", \"Bitstream Vera Sans Mono\", courier, monospace;\n --border-color: 226, 232, 240;\n --primary-color-50: 236, 253, 245;\n --primary-color-100: 209, 250, 229;\n --primary-color-200: 167, 243, 208;\n --primary-color-300: 110, 231, 183;\n --primary-color-400: 52, 211, 153;\n --primary-color-500: 16, 185, 129;\n --primary-color-600: 5, 150, 105;\n --primary-color-700: 4, 120, 87;\n --primary-color-800: 6, 95, 70;\n --primary-color-900: 6, 78, 59;\n --primary-color-950: 2, 44, 34;\n --secondary-color-50: 248, 250, 252;\n --secondary-color-100: 241, 245, 249;\n --secondary-color-200: 226, 232, 240;\n --secondary-color-300: 203, 213, 225;\n --secondary-color-400: 148, 163, 184;\n --secondary-color-500: 100, 116, 139;\n --secondary-color-600: 71, 85, 105;\n --secondary-color-700: 51, 65, 85;\n --secondary-color-800: 30, 41, 59;\n --secondary-color-900: 15, 23, 42;\n --secondary-color-950: 2, 6, 23;\n --success-color-50: 240, 253, 244;\n --success-color-100: 220, 252, 231;\n --success-color-200: 187, 247, 208;\n --success-color-300: 134, 239, 172;\n --success-color-400: 74, 222, 128;\n --success-color-500: 34, 197, 94;\n --success-color-600: 22, 163, 74;\n --success-color-700: 21, 128, 61;\n --success-color-800: 22, 101, 52;\n --success-color-900: 20, 83, 45;\n --success-color-950: 5, 46, 22;\n --warning-color-50: 254, 252, 232;\n --warning-color-100: 254, 249, 195;\n --warning-color-200: 254, 240, 138;\n --warning-color-300: 253, 224, 71;\n --warning-color-400: 250, 204, 21;\n --warning-color-500: 234, 179, 8;\n --warning-color-600: 202, 138, 4;\n --warning-color-700: 161, 98, 7;\n --warning-color-800: 133, 77, 14;\n --warning-color-900: 113, 63, 18;\n --warning-color-950: 66, 32, 6;\n --error-color-50: 254, 242, 242;\n --error-color-100: 254, 226, 226;\n --error-color-200: 254, 202, 202;\n --error-color-300: 252, 165, 165;\n --error-color-400: 248, 113, 113;\n --error-color-500: 239, 68, 68;\n --error-color-600: 220, 38, 38;\n --error-color-700: 185, 28, 28;\n --error-color-800: 153, 27, 27;\n --error-color-900: 127, 29, 29;\n --error-color-950: 69, 10, 10;\n}\n";
|
|
2
|
+
export default _default;
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.6.0";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indielayer/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "João Teixeira",
|
|
@@ -57,12 +57,13 @@
|
|
|
57
57
|
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
58
58
|
"@vue/test-utils": "^2.4.0",
|
|
59
59
|
"@vue/tsconfig": "^0.4.0",
|
|
60
|
+
"@vuepic/vue-datepicker": "^8.0.0",
|
|
60
61
|
"@vueuse/core": "^10.2.0",
|
|
61
62
|
"autoprefixer": "^10.4.0",
|
|
62
63
|
"c8": "^7.12.0",
|
|
63
64
|
"clean-css": "^5.3.0",
|
|
64
65
|
"eslint": "^8.43.0",
|
|
65
|
-
"floating-vue": "^5.2.
|
|
66
|
+
"floating-vue": "^5.2.2",
|
|
66
67
|
"jsdom": "^22.1.0",
|
|
67
68
|
"postcss": "^8.4.4",
|
|
68
69
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
@@ -3,7 +3,7 @@ import type { AccordionItemTheme } from '../AccordionItem.vue'
|
|
|
3
3
|
const theme: AccordionItemTheme = {
|
|
4
4
|
classes: {
|
|
5
5
|
wrapper: ({ props, slots, data }) => {
|
|
6
|
-
const classes = ['relative flex items-center w-full text-left']
|
|
6
|
+
const classes = ['relative flex items-center w-full text-left rounded']
|
|
7
7
|
|
|
8
8
|
if (!data.isInsideAccordion) return classes
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ const theme: AccordionItemTheme = {
|
|
|
11
11
|
if (props.iconAlign === 'left') classes.push('pl-8 pr-4')
|
|
12
12
|
else classes.push('pr-8 pl-4')
|
|
13
13
|
classes.push('py-2')
|
|
14
|
-
if (!props.disabled) classes.push('hover:bg-secondary-
|
|
14
|
+
if (!props.disabled) classes.push('hover:bg-secondary-100 dark:hover:bg-secondary-600')
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
if (!props.disabled) classes.push('cursor-pointer')
|
|
@@ -72,7 +72,7 @@ const { styles, classes, className } = useTheme('Alert', {}, props)
|
|
|
72
72
|
</div>
|
|
73
73
|
<template v-if="removable">
|
|
74
74
|
<div class="flex-grow"></div>
|
|
75
|
-
<button class="shrink-0" :aria-label="closeLabel" @click="(e: Event) => $emit('remove', e)">
|
|
75
|
+
<button type="button" class="shrink-0" :aria-label="closeLabel" @click="(e: Event) => $emit('remove', e)">
|
|
76
76
|
<slot name="removeIcon">
|
|
77
77
|
<x-icon :icon="closeIcon"/>
|
|
78
78
|
</slot>
|