@makeswift/prop-controllers 0.3.7 → 0.4.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/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/responsive-color.js +3 -3
- package/dist/cjs/responsive-color.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/responsive-color.js +2 -2
- package/dist/esm/responsive-color.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/responsive-color.d.ts +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
@@ -120,7 +120,7 @@ __export(src_exports, {
|
|
120
120
|
getPaddingPropControllerDataResponsivePaddingData: () => import_padding.getPaddingPropControllerDataResponsivePaddingData,
|
121
121
|
getResponsiveColorDataSwatchIds: () => import_responsive_color.getResponsiveColorDataSwatchIds,
|
122
122
|
getResponsiveColorPropControllerDataResponsiveColorData: () => import_responsive_color.getResponsiveColorPropControllerDataResponsiveColorData,
|
123
|
-
|
123
|
+
getResponsiveColorPropControllerDataSwatchIds: () => import_responsive_color.getResponsiveColorPropControllerDataSwatchIds,
|
124
124
|
getResponsiveLengthPropControllerDataResponsiveLengthData: () => import_responsive_length.getResponsiveLengthPropControllerDataResponsiveLengthData,
|
125
125
|
getShadowsPropControllerDataResponsiveShadowsData: () => import_shadows.getShadowsPropControllerDataResponsiveShadowsData,
|
126
126
|
getShadowsPropControllerDataSwatchIds: () => import_shadows.getShadowsPropControllerDataSwatchIds,
|
@@ -295,7 +295,7 @@ var import_video = require("./video");
|
|
295
295
|
getPaddingPropControllerDataResponsivePaddingData,
|
296
296
|
getResponsiveColorDataSwatchIds,
|
297
297
|
getResponsiveColorPropControllerDataResponsiveColorData,
|
298
|
-
|
298
|
+
getResponsiveColorPropControllerDataSwatchIds,
|
299
299
|
getResponsiveLengthPropControllerDataResponsiveLengthData,
|
300
300
|
getShadowsPropControllerDataResponsiveShadowsData,
|
301
301
|
getShadowsPropControllerDataSwatchIds,
|
package/dist/cjs/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './data'\nexport * from './versioned'\nexport * from './prop-controllers'\nexport * from './gap-x'\nexport * from './responsive-icon-radio-group'\nexport * from './responsive-number'\nexport * from './responsive-opacity'\nexport * from './responsive-select'\nexport * from './backgrounds'\n\nexport {\n Border,\n BorderPropControllerFormat,\n borderPropControllerDataSchema,\n getBorderPropControllerDataResponsiveBorderData,\n getBorderPropControllerDataSwatchIds,\n createBorderPropControllerDataFromResponsiveBorderData,\n copyBorderPropControllerData,\n} from './border'\nexport type {\n ResolveBorderPropControllerValue,\n ResponsiveBorderData,\n BorderData,\n BorderSideData,\n BorderDescriptor,\n BorderPropControllerData,\n} from './border'\nexport {\n BorderRadius,\n BorderRadiusPropControllerFormat,\n borderRadiusPropControllerDataSchema,\n getBorderRadiusPropControllerDataResponsiveBorderRadiusData,\n createBorderRadiusPropControllerDataFromResponsiveBorderRadiusData,\n} from './border-radius'\nexport type {\n BorderRadiusPropControllerData,\n ResponsiveBorderRadiusData,\n ResolveBorderRadiusPropControllerValue,\n BorderRadiusDescriptor,\n} from './border-radius'\nexport {\n Checkbox,\n checkboxPropControllerDataSchema,\n getCheckboxPropControllerDataBoolean,\n createCheckboxPropControllerDataFromBoolean,\n} from './checkbox'\nexport type {\n CheckboxDescriptor,\n CheckboxOptions,\n CheckboxPropControllerData,\n ResolveCheckboxPropControllerValue,\n} from './checkbox'\nexport {\n Date,\n datePropControllerDataSchema,\n getDatePropControllerDataString,\n createDatePropControllerDataFromString,\n} from './date'\nexport type {\n DateDescriptor,\n DateOptions,\n DatePropControllerData,\n ResolveDatePropControllerValue,\n} from './date'\nexport {\n ElementID,\n elementIDPropControllerDataSchema,\n getElementIDPropControllerDataElementID,\n createElementIDPropControllerDataFromElementID,\n copyElementIDPropControllerData,\n} from './element-id'\nexport type {\n ElementIDDescriptor,\n ElementIDOptions,\n ElementIDPropControllerData,\n ResolveElementIDPropControllerValue,\n} from './element-id'\nexport {\n Font,\n fontPropControllerDataSchema,\n getFontPropControllerDataResponsiveFontData,\n createFontPropControllerDataFromResponsiveFontData,\n} from './font'\nexport type {\n ResolveFontPropControllerValue,\n ResponsiveFontData,\n FontDescriptor,\n FontPropControllerData,\n} from './font'\nexport {\n GapY,\n gapYPropControllerDataSchema,\n getGapYPropControllerDataResponsiveGapData,\n createGapYPropControllerDataFromResponsiveGapData,\n} from './gap-y'\nexport type {\n ResolveGapYPropControllerValue,\n GapYDescriptor,\n GapYPropControllerData,\n} from './gap-y'\nexport {\n Grid,\n gridPropControllerDataSchema,\n getGridPropControllerDataGridData,\n createGridPropControllerDataFromGridData,\n mergeGridPropControllerTranslatedData,\n getGridPropControllerElementChildren,\n copyGridPropControllerData,\n getGridPropControllerGetElementPath,\n} from './grid'\nexport type {\n GridData,\n GridDescriptor,\n GridOptions,\n GridPropControllerData,\n ResolveGridPropControllerValue,\n} from './grid'\nexport {\n Image,\n imagePropControllerDataSchema,\n getImagePropControllerDataImageData,\n createImagePropControllerDataFromImageData,\n getImagePropControllerFileIds,\n copyImagePropControllerData,\n} from './image'\nexport type {\n ImageDescriptor,\n ImageOptions,\n ImagePropControllerData,\n ResolveImagePropControllerValue,\n} from './image'\nexport {\n Images,\n imagesPropControllerDataSchema,\n getImagesPropControllerDataImagesData,\n createImagesPropControllerDataFromImagesData,\n getImagesPropControllerFileIds,\n copyImagesPropControllerData,\n} from './images'\nexport type {\n ImagesData,\n ImagesDataItem,\n ImagesDescriptor,\n ImagesOptions,\n ImagesPropControllerData,\n ResolveImagesPropControllerValue,\n} from './images'\nexport {\n Link,\n linkDataSchema,\n linkPropControllerDataSchema,\n getLinkPropControllerDataLinkData,\n createLinkPropControllerDataFromLinkData,\n getLinkPropControllerPageIds,\n copyLinkPropControllerData,\n} from './link'\nexport type {\n LinkData,\n LinkDescriptor,\n LinkPropControllerData,\n ResolveLinkPropControllerValue,\n} from './link'\nexport {\n Margin,\n MarginPropControllerFormat,\n marginPropControllerDataSchema,\n getMarginPropControllerDataResponsiveMarginData,\n createMarginPropControllerDataFromResponsiveMarginData,\n} from './margin'\nexport type {\n ResolveMarginPropControllerValue,\n ResponsiveMarginData,\n MarginSideData,\n MarginDescriptor,\n MarginPropControllerData,\n} from './margin'\nexport {\n NavigationLinks,\n navigationLinksPropControllerDataSchema,\n getNavigationLinksPropControllerDataNavigationLinksData,\n createNavigationLinksPropControllerDataFromNavigationLinksData,\n getNavigationLinksPropControllerPageIds,\n getNavigationLinksPropControllerSwatchIds,\n copyNavigationLinksPropControllerData,\n} from './navigation-links'\nexport type {\n NavigationButtonData,\n NavigationDropdownData,\n NavigationLinksData,\n ResolveNavigationLinksPropControllerValue,\n NavigationLinksDescriptor,\n NavigationLinksPropControllerData,\n} from './navigation-links'\nexport {\n Number,\n createNumberPropControllerDataFromNumber,\n getNumberPropControllerDataNumber,\n numberPropControllerDataSchema,\n} from './number'\nexport type {\n NumberDescriptor,\n NumberOptions,\n NumberPropControllerData,\n ResolveNumberPropControllerValue,\n} from './number'\nexport {\n Padding,\n PaddingPropControllerFormat,\n paddingPropControllerDataSchema,\n getPaddingPropControllerDataResponsivePaddingData,\n createPaddingPropControllerDataFromResponsivePaddingData,\n} from './padding'\nexport type {\n ResolvePaddingPropControllerValue,\n ResponsivePaddingData,\n PaddingSideData,\n PaddingDescriptor,\n PaddingPropControllerData,\n} from './padding'\nexport {\n ResponsiveColor,\n copyResponsiveColorPropControllerData,\n createResponsiveColorPropControllerDataFromResponsiveColorData,\n getResponsiveColorDataSwatchIds,\n getResponsiveColorPropControllerDataResponsiveColorData,\n getResponsiveColorPropControllerDataSawtchIds,\n responsiveColorPropControllerDataSchema,\n} from './responsive-color'\nexport type {\n ResponsiveColorData,\n ResponsiveColorDescriptor,\n ResponsiveColorOptions,\n ResponsiveColorPropControllerData,\n} from './responsive-color'\nexport {\n ResponsiveLength,\n ResponsiveLengthPropControllerDataV1Type,\n createResponsiveLengthPropControllerDataFromResponsiveLengthData,\n getResponsiveLengthPropControllerDataResponsiveLengthData,\n responsiveLengthPropControllerDataSchema,\n} from './responsive-length'\nexport type {\n ResolveResponsiveLengthPropControllerValue,\n ResponsiveLengthData,\n ResponsiveLengthDescriptor,\n ResponsiveLengthOptions,\n ResponsiveLengthPropControllerData,\n} from './responsive-length'\nexport {\n SocialLinks,\n socialLinksPropControllerDataSchema,\n getSocialLinkTypes,\n getSocialLinksPropControllerDataSocialLinksData,\n createSocialLinksPropControllerDataFromSocialLinksData,\n} from './social-links'\nexport type {\n SocialLinksData,\n ResolveSocialLinksPropControllerValue,\n SocialLinksDescriptor,\n SocialLinksPropControllerData,\n} from './social-links'\nexport {\n Shadows,\n copyShadowsPropControllerData,\n createShadowsPropControllerDataFromResponsiveShadowsData,\n getShadowsPropControllerDataResponsiveShadowsData,\n getShadowsPropControllerDataSwatchIds,\n shadowsPropControllerDataSchema,\n} from './shadows'\nexport type {\n ResolveShadowsPropControllerValue,\n ShadowData,\n ShadowsData,\n ShadowsDescriptor,\n ShadowsPropControllerData,\n} from './shadows'\nexport {\n Table,\n tablePropControllerDataSchema,\n getTablePropControllerDataTableId,\n createTablePropControllerDataFromTableId,\n copyTablePropControllerData,\n getTablePropControllerDataTableIds,\n} from './table'\nexport type {\n TableDescriptor,\n TableOptions,\n TablePropControllerData,\n ResolveTablePropControllerValue,\n} from './table'\nexport {\n TableFormFields,\n tableFormFieldsPropControllerDataSchema,\n getTableFormFieldsPropControllerDataTableFormFieldsData,\n createTableFormFieldsPropControllerDataFromTableFormFieldsData,\n copyTableFormFieldsPropControllerData,\n} from './table-form-fields'\nexport type {\n TableFormFieldsData,\n TableFormFieldsDescriptor,\n TableFormFieldsOptions,\n TableFormFieldsPropControllerData,\n ResolveTableFormFieldsPropControllerValue,\n} from './table-form-fields'\nexport {\n TextArea,\n textAreaPropControllerDataSchema,\n getTextAreaPropControllerDataString,\n createTextAreaPropControllerDataFromString,\n} from './text-area'\nexport type {\n TextAreaDescriptor,\n TextAreaOptions,\n TextAreaPropControllerData,\n ResolveTextAreaPropControllerValue,\n} from './text-area'\nexport {\n TextInput,\n textInputPropControllerDataSchema,\n getTextInputPropControllerDataString,\n createTextInputPropControllerDataFromString,\n} from './text-input'\nexport type {\n TextInputDescriptor,\n TextInputOptions,\n TextInputPropControllerData,\n ResolveTextInputPropControllerValue,\n} from './text-input'\nexport {\n TextStyle,\n textStylePropControllerDataSchema,\n getTextStylePropControllerDataResponsiveTextStyleData,\n createTextStylePropControllerDataFromResponsiveTextStyleData,\n} from './text-style'\nexport type {\n TextStyleData,\n ResolveTextStylePropControllerValue,\n ResponsiveTextStyleData,\n TextStyleDescriptor,\n TextStylePropControllerData,\n} from './text-style'\nexport {\n Width,\n WidthPropControllerFormat,\n widthPropControllerDataSchema,\n getWidthPropControllerDataResponsiveLengthData,\n createWidthPropControllerDataFromResponsiveLengthData,\n} from './width'\nexport type {\n ResolveWidthPropControllerValue,\n WidthDescriptor,\n WidthPropControllerData,\n} from './width'\nexport {\n Video,\n videoPropControllerDataSchema,\n getVideoPropControllerDataVideoData,\n createVideoPropControllerDataFromVideoData,\n} from './video'\nexport type {\n ResolveVideoPropControllerValue,\n VideoData,\n VideoDescriptor,\n VideoPropControllerData,\n} from './video'\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,mBAAd;AACA,wBAAc,wBADd;AAEA,wBAAc,+BAFd;AAGA,wBAAc,oBAHd;AAIA,wBAAc,0CAJd;AAKA,wBAAc,gCALd;AAMA,wBAAc,iCANd;AAOA,wBAAc,gCAPd;AAQA,wBAAc,0BARd;AAUA,oBAQO;AASP,2BAMO;AAOP,sBAKO;AAOP,kBAKO;AAOP,wBAMO;AAOP,kBAKO;AAOP,mBAKO;AAMP,kBASO;AAQP,mBAOO;AAOP,oBAOO;AASP,kBAQO;AAOP,oBAMO;AAQP,8BAQO;AASP,oBAKO;AAOP,qBAMO;AAQP,8BAQO;AAOP,+BAMO;AAQP,0BAMO;AAOP,qBAOO;AAQP,mBAOO;AAOP,+BAMO;AAQP,uBAKO;AAOP,wBAKO;AAOP,wBAKO;AAQP,mBAMO;AAMP,mBAKO;","names":[]}
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './data'\nexport * from './versioned'\nexport * from './prop-controllers'\nexport * from './gap-x'\nexport * from './responsive-icon-radio-group'\nexport * from './responsive-number'\nexport * from './responsive-opacity'\nexport * from './responsive-select'\nexport * from './backgrounds'\n\nexport {\n Border,\n BorderPropControllerFormat,\n borderPropControllerDataSchema,\n getBorderPropControllerDataResponsiveBorderData,\n getBorderPropControllerDataSwatchIds,\n createBorderPropControllerDataFromResponsiveBorderData,\n copyBorderPropControllerData,\n} from './border'\nexport type {\n ResolveBorderPropControllerValue,\n ResponsiveBorderData,\n BorderData,\n BorderSideData,\n BorderDescriptor,\n BorderPropControllerData,\n} from './border'\nexport {\n BorderRadius,\n BorderRadiusPropControllerFormat,\n borderRadiusPropControllerDataSchema,\n getBorderRadiusPropControllerDataResponsiveBorderRadiusData,\n createBorderRadiusPropControllerDataFromResponsiveBorderRadiusData,\n} from './border-radius'\nexport type {\n BorderRadiusPropControllerData,\n ResponsiveBorderRadiusData,\n ResolveBorderRadiusPropControllerValue,\n BorderRadiusDescriptor,\n} from './border-radius'\nexport {\n Checkbox,\n checkboxPropControllerDataSchema,\n getCheckboxPropControllerDataBoolean,\n createCheckboxPropControllerDataFromBoolean,\n} from './checkbox'\nexport type {\n CheckboxDescriptor,\n CheckboxOptions,\n CheckboxPropControllerData,\n ResolveCheckboxPropControllerValue,\n} from './checkbox'\nexport {\n Date,\n datePropControllerDataSchema,\n getDatePropControllerDataString,\n createDatePropControllerDataFromString,\n} from './date'\nexport type {\n DateDescriptor,\n DateOptions,\n DatePropControllerData,\n ResolveDatePropControllerValue,\n} from './date'\nexport {\n ElementID,\n elementIDPropControllerDataSchema,\n getElementIDPropControllerDataElementID,\n createElementIDPropControllerDataFromElementID,\n copyElementIDPropControllerData,\n} from './element-id'\nexport type {\n ElementIDDescriptor,\n ElementIDOptions,\n ElementIDPropControllerData,\n ResolveElementIDPropControllerValue,\n} from './element-id'\nexport {\n Font,\n fontPropControllerDataSchema,\n getFontPropControllerDataResponsiveFontData,\n createFontPropControllerDataFromResponsiveFontData,\n} from './font'\nexport type {\n ResolveFontPropControllerValue,\n ResponsiveFontData,\n FontDescriptor,\n FontPropControllerData,\n} from './font'\nexport {\n GapY,\n gapYPropControllerDataSchema,\n getGapYPropControllerDataResponsiveGapData,\n createGapYPropControllerDataFromResponsiveGapData,\n} from './gap-y'\nexport type {\n ResolveGapYPropControllerValue,\n GapYDescriptor,\n GapYPropControllerData,\n} from './gap-y'\nexport {\n Grid,\n gridPropControllerDataSchema,\n getGridPropControllerDataGridData,\n createGridPropControllerDataFromGridData,\n mergeGridPropControllerTranslatedData,\n getGridPropControllerElementChildren,\n copyGridPropControllerData,\n getGridPropControllerGetElementPath,\n} from './grid'\nexport type {\n GridData,\n GridDescriptor,\n GridOptions,\n GridPropControllerData,\n ResolveGridPropControllerValue,\n} from './grid'\nexport {\n Image,\n imagePropControllerDataSchema,\n getImagePropControllerDataImageData,\n createImagePropControllerDataFromImageData,\n getImagePropControllerFileIds,\n copyImagePropControllerData,\n} from './image'\nexport type {\n ImageDescriptor,\n ImageOptions,\n ImagePropControllerData,\n ResolveImagePropControllerValue,\n} from './image'\nexport {\n Images,\n imagesPropControllerDataSchema,\n getImagesPropControllerDataImagesData,\n createImagesPropControllerDataFromImagesData,\n getImagesPropControllerFileIds,\n copyImagesPropControllerData,\n} from './images'\nexport type {\n ImagesData,\n ImagesDataItem,\n ImagesDescriptor,\n ImagesOptions,\n ImagesPropControllerData,\n ResolveImagesPropControllerValue,\n} from './images'\nexport {\n Link,\n linkDataSchema,\n linkPropControllerDataSchema,\n getLinkPropControllerDataLinkData,\n createLinkPropControllerDataFromLinkData,\n getLinkPropControllerPageIds,\n copyLinkPropControllerData,\n} from './link'\nexport type {\n LinkData,\n LinkDescriptor,\n LinkPropControllerData,\n ResolveLinkPropControllerValue,\n} from './link'\nexport {\n Margin,\n MarginPropControllerFormat,\n marginPropControllerDataSchema,\n getMarginPropControllerDataResponsiveMarginData,\n createMarginPropControllerDataFromResponsiveMarginData,\n} from './margin'\nexport type {\n ResolveMarginPropControllerValue,\n ResponsiveMarginData,\n MarginSideData,\n MarginDescriptor,\n MarginPropControllerData,\n} from './margin'\nexport {\n NavigationLinks,\n navigationLinksPropControllerDataSchema,\n getNavigationLinksPropControllerDataNavigationLinksData,\n createNavigationLinksPropControllerDataFromNavigationLinksData,\n getNavigationLinksPropControllerPageIds,\n getNavigationLinksPropControllerSwatchIds,\n copyNavigationLinksPropControllerData,\n} from './navigation-links'\nexport type {\n NavigationButtonData,\n NavigationDropdownData,\n NavigationLinksData,\n ResolveNavigationLinksPropControllerValue,\n NavigationLinksDescriptor,\n NavigationLinksPropControllerData,\n} from './navigation-links'\nexport {\n Number,\n createNumberPropControllerDataFromNumber,\n getNumberPropControllerDataNumber,\n numberPropControllerDataSchema,\n} from './number'\nexport type {\n NumberDescriptor,\n NumberOptions,\n NumberPropControllerData,\n ResolveNumberPropControllerValue,\n} from './number'\nexport {\n Padding,\n PaddingPropControllerFormat,\n paddingPropControllerDataSchema,\n getPaddingPropControllerDataResponsivePaddingData,\n createPaddingPropControllerDataFromResponsivePaddingData,\n} from './padding'\nexport type {\n ResolvePaddingPropControllerValue,\n ResponsivePaddingData,\n PaddingSideData,\n PaddingDescriptor,\n PaddingPropControllerData,\n} from './padding'\nexport {\n ResponsiveColor,\n copyResponsiveColorPropControllerData,\n createResponsiveColorPropControllerDataFromResponsiveColorData,\n getResponsiveColorDataSwatchIds,\n getResponsiveColorPropControllerDataResponsiveColorData,\n getResponsiveColorPropControllerDataSwatchIds,\n responsiveColorPropControllerDataSchema,\n} from './responsive-color'\nexport type {\n ResponsiveColorData,\n ResponsiveColorDescriptor,\n ResponsiveColorOptions,\n ResponsiveColorPropControllerData,\n} from './responsive-color'\nexport {\n ResponsiveLength,\n ResponsiveLengthPropControllerDataV1Type,\n createResponsiveLengthPropControllerDataFromResponsiveLengthData,\n getResponsiveLengthPropControllerDataResponsiveLengthData,\n responsiveLengthPropControllerDataSchema,\n} from './responsive-length'\nexport type {\n ResolveResponsiveLengthPropControllerValue,\n ResponsiveLengthData,\n ResponsiveLengthDescriptor,\n ResponsiveLengthOptions,\n ResponsiveLengthPropControllerData,\n} from './responsive-length'\nexport {\n SocialLinks,\n socialLinksPropControllerDataSchema,\n getSocialLinkTypes,\n getSocialLinksPropControllerDataSocialLinksData,\n createSocialLinksPropControllerDataFromSocialLinksData,\n} from './social-links'\nexport type {\n SocialLinksData,\n ResolveSocialLinksPropControllerValue,\n SocialLinksDescriptor,\n SocialLinksPropControllerData,\n} from './social-links'\nexport {\n Shadows,\n copyShadowsPropControllerData,\n createShadowsPropControllerDataFromResponsiveShadowsData,\n getShadowsPropControllerDataResponsiveShadowsData,\n getShadowsPropControllerDataSwatchIds,\n shadowsPropControllerDataSchema,\n} from './shadows'\nexport type {\n ResolveShadowsPropControllerValue,\n ShadowData,\n ShadowsData,\n ShadowsDescriptor,\n ShadowsPropControllerData,\n} from './shadows'\nexport {\n Table,\n tablePropControllerDataSchema,\n getTablePropControllerDataTableId,\n createTablePropControllerDataFromTableId,\n copyTablePropControllerData,\n getTablePropControllerDataTableIds,\n} from './table'\nexport type {\n TableDescriptor,\n TableOptions,\n TablePropControllerData,\n ResolveTablePropControllerValue,\n} from './table'\nexport {\n TableFormFields,\n tableFormFieldsPropControllerDataSchema,\n getTableFormFieldsPropControllerDataTableFormFieldsData,\n createTableFormFieldsPropControllerDataFromTableFormFieldsData,\n copyTableFormFieldsPropControllerData,\n} from './table-form-fields'\nexport type {\n TableFormFieldsData,\n TableFormFieldsDescriptor,\n TableFormFieldsOptions,\n TableFormFieldsPropControllerData,\n ResolveTableFormFieldsPropControllerValue,\n} from './table-form-fields'\nexport {\n TextArea,\n textAreaPropControllerDataSchema,\n getTextAreaPropControllerDataString,\n createTextAreaPropControllerDataFromString,\n} from './text-area'\nexport type {\n TextAreaDescriptor,\n TextAreaOptions,\n TextAreaPropControllerData,\n ResolveTextAreaPropControllerValue,\n} from './text-area'\nexport {\n TextInput,\n textInputPropControllerDataSchema,\n getTextInputPropControllerDataString,\n createTextInputPropControllerDataFromString,\n} from './text-input'\nexport type {\n TextInputDescriptor,\n TextInputOptions,\n TextInputPropControllerData,\n ResolveTextInputPropControllerValue,\n} from './text-input'\nexport {\n TextStyle,\n textStylePropControllerDataSchema,\n getTextStylePropControllerDataResponsiveTextStyleData,\n createTextStylePropControllerDataFromResponsiveTextStyleData,\n} from './text-style'\nexport type {\n TextStyleData,\n ResolveTextStylePropControllerValue,\n ResponsiveTextStyleData,\n TextStyleDescriptor,\n TextStylePropControllerData,\n} from './text-style'\nexport {\n Width,\n WidthPropControllerFormat,\n widthPropControllerDataSchema,\n getWidthPropControllerDataResponsiveLengthData,\n createWidthPropControllerDataFromResponsiveLengthData,\n} from './width'\nexport type {\n ResolveWidthPropControllerValue,\n WidthDescriptor,\n WidthPropControllerData,\n} from './width'\nexport {\n Video,\n videoPropControllerDataSchema,\n getVideoPropControllerDataVideoData,\n createVideoPropControllerDataFromVideoData,\n} from './video'\nexport type {\n ResolveVideoPropControllerValue,\n VideoData,\n VideoDescriptor,\n VideoPropControllerData,\n} from './video'\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,mBAAd;AACA,wBAAc,wBADd;AAEA,wBAAc,+BAFd;AAGA,wBAAc,oBAHd;AAIA,wBAAc,0CAJd;AAKA,wBAAc,gCALd;AAMA,wBAAc,iCANd;AAOA,wBAAc,gCAPd;AAQA,wBAAc,0BARd;AAUA,oBAQO;AASP,2BAMO;AAOP,sBAKO;AAOP,kBAKO;AAOP,wBAMO;AAOP,kBAKO;AAOP,mBAKO;AAMP,kBASO;AAQP,mBAOO;AAOP,oBAOO;AASP,kBAQO;AAOP,oBAMO;AAQP,8BAQO;AASP,oBAKO;AAOP,qBAMO;AAQP,8BAQO;AAOP,+BAMO;AAQP,0BAMO;AAOP,qBAOO;AAQP,mBAOO;AAOP,+BAMO;AAQP,uBAKO;AAOP,wBAKO;AAOP,wBAKO;AAQP,mBAMO;AAMP,mBAKO;","names":[]}
|
@@ -24,7 +24,7 @@ __export(responsive_color_exports, {
|
|
24
24
|
createResponsiveColorPropControllerDataFromResponsiveColorData: () => createResponsiveColorPropControllerDataFromResponsiveColorData,
|
25
25
|
getResponsiveColorDataSwatchIds: () => getResponsiveColorDataSwatchIds,
|
26
26
|
getResponsiveColorPropControllerDataResponsiveColorData: () => getResponsiveColorPropControllerDataResponsiveColorData,
|
27
|
-
|
27
|
+
getResponsiveColorPropControllerDataSwatchIds: () => getResponsiveColorPropControllerDataSwatchIds,
|
28
28
|
responsiveColorPropControllerDataSchema: () => responsiveColorPropControllerDataSchema
|
29
29
|
});
|
30
30
|
module.exports = __toCommonJS(responsive_color_exports);
|
@@ -64,7 +64,7 @@ function createResponsiveColorPropControllerDataFromResponsiveColorData(definiti
|
|
64
64
|
function getResponsiveColorDataSwatchIds(data) {
|
65
65
|
return data.map((override) => override.value.swatchId);
|
66
66
|
}
|
67
|
-
function
|
67
|
+
function getResponsiveColorPropControllerDataSwatchIds(data) {
|
68
68
|
if (data == null)
|
69
69
|
return [];
|
70
70
|
return getResponsiveColorDataSwatchIds(
|
@@ -100,7 +100,7 @@ function copyResponsiveColorPropControllerData(data, context) {
|
|
100
100
|
createResponsiveColorPropControllerDataFromResponsiveColorData,
|
101
101
|
getResponsiveColorDataSwatchIds,
|
102
102
|
getResponsiveColorPropControllerDataResponsiveColorData,
|
103
|
-
|
103
|
+
getResponsiveColorPropControllerDataSwatchIds,
|
104
104
|
responsiveColorPropControllerDataSchema
|
105
105
|
});
|
106
106
|
//# sourceMappingURL=responsive-color.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/responsive-color.ts"],"sourcesContent":["import { z } from 'zod'\nimport { colorDataSchema } from './data'\nimport {\n ControlDataTypeKey,\n CopyContext,\n Options,\n Types,\n Schema,\n} from './prop-controllers'\nimport { match } from 'ts-pattern'\n\nconst responsiveColorDataSchema = Schema.responsiveValue(colorDataSchema)\n\nexport type ResponsiveColorData = z.infer<typeof responsiveColorDataSchema>\n\nconst responsiveColorPropControllerDataV0Schema = responsiveColorDataSchema\n\ntype ResponsiveColorPropControllerDataV0 = z.infer<\n typeof responsiveColorPropControllerDataV0Schema\n>\n\nconst ResponsiveColorPropControllerDataV1Type =\n 'prop-controllers::responsive-color::v1'\n\nconst responsiveColorPropControllerDataV1Schema = z.object({\n [ControlDataTypeKey]: z.literal(ResponsiveColorPropControllerDataV1Type),\n value: responsiveColorDataSchema,\n})\n\ntype ResponsiveColorPropControllerDataV1 = z.infer<\n typeof responsiveColorPropControllerDataV1Schema\n>\n\nexport const responsiveColorPropControllerDataSchema = z.union([\n responsiveColorPropControllerDataV0Schema,\n responsiveColorPropControllerDataV1Schema,\n])\n\nexport type ResponsiveColorPropControllerData = z.infer<\n typeof responsiveColorPropControllerDataSchema\n>\n\nexport type ResponsiveColorOptions = Options<{\n label?: string\n placeholder?: string\n hidden?: boolean\n}>\n\ntype ResponsiveColorDescriptorV0<_T = ResponsiveColorPropControllerDataV0> = {\n type: typeof Types.ResponsiveColor\n options: ResponsiveColorOptions\n}\n\ntype ResponsiveColorDescriptorV1<_T = ResponsiveColorPropControllerDataV1> = {\n type: typeof Types.ResponsiveColor\n version: 1\n options: ResponsiveColorOptions\n}\n\nexport type ResponsiveColorDescriptor<_T = ResponsiveColorPropControllerData> =\n | ResponsiveColorDescriptorV0\n | ResponsiveColorDescriptorV1\n\n/**\n * @deprecated Imports from `@makeswift/prop-controllers` are deprecated. Use\n * `@makeswift/runtime/controls` instead.\n */\nexport function ResponsiveColor(\n options: ResponsiveColorOptions = {},\n): ResponsiveColorDescriptorV1 {\n return { type: Types.ResponsiveColor, version: 1, options }\n}\n\nexport function getResponsiveColorPropControllerDataResponsiveColorData(\n data: ResponsiveColorPropControllerData,\n): ResponsiveColorData {\n return match(data)\n .with(\n { [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type },\n (v1) => v1.value,\n )\n .otherwise((v0) => v0)\n}\n\nexport function createResponsiveColorPropControllerDataFromResponsiveColorData(\n definition: ResponsiveColorDescriptor,\n responsiveColorData: ResponsiveColorData,\n): ResponsiveColorPropControllerData {\n return match(definition)\n .with(\n { version: 1 },\n () =>\n ({\n [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type,\n value: responsiveColorData,\n }) as const,\n )\n .otherwise(() => responsiveColorData)\n}\n\nexport function getResponsiveColorDataSwatchIds(\n data: ResponsiveColorData,\n): string[] {\n return data.map((override) => override.value.swatchId)\n}\n\nexport function
|
1
|
+
{"version":3,"sources":["../../src/responsive-color.ts"],"sourcesContent":["import { z } from 'zod'\nimport { colorDataSchema } from './data'\nimport {\n ControlDataTypeKey,\n CopyContext,\n Options,\n Types,\n Schema,\n} from './prop-controllers'\nimport { match } from 'ts-pattern'\n\nconst responsiveColorDataSchema = Schema.responsiveValue(colorDataSchema)\n\nexport type ResponsiveColorData = z.infer<typeof responsiveColorDataSchema>\n\nconst responsiveColorPropControllerDataV0Schema = responsiveColorDataSchema\n\ntype ResponsiveColorPropControllerDataV0 = z.infer<\n typeof responsiveColorPropControllerDataV0Schema\n>\n\nconst ResponsiveColorPropControllerDataV1Type =\n 'prop-controllers::responsive-color::v1'\n\nconst responsiveColorPropControllerDataV1Schema = z.object({\n [ControlDataTypeKey]: z.literal(ResponsiveColorPropControllerDataV1Type),\n value: responsiveColorDataSchema,\n})\n\ntype ResponsiveColorPropControllerDataV1 = z.infer<\n typeof responsiveColorPropControllerDataV1Schema\n>\n\nexport const responsiveColorPropControllerDataSchema = z.union([\n responsiveColorPropControllerDataV0Schema,\n responsiveColorPropControllerDataV1Schema,\n])\n\nexport type ResponsiveColorPropControllerData = z.infer<\n typeof responsiveColorPropControllerDataSchema\n>\n\nexport type ResponsiveColorOptions = Options<{\n label?: string\n placeholder?: string\n hidden?: boolean\n}>\n\ntype ResponsiveColorDescriptorV0<_T = ResponsiveColorPropControllerDataV0> = {\n type: typeof Types.ResponsiveColor\n options: ResponsiveColorOptions\n}\n\ntype ResponsiveColorDescriptorV1<_T = ResponsiveColorPropControllerDataV1> = {\n type: typeof Types.ResponsiveColor\n version: 1\n options: ResponsiveColorOptions\n}\n\nexport type ResponsiveColorDescriptor<_T = ResponsiveColorPropControllerData> =\n | ResponsiveColorDescriptorV0\n | ResponsiveColorDescriptorV1\n\n/**\n * @deprecated Imports from `@makeswift/prop-controllers` are deprecated. Use\n * `@makeswift/runtime/controls` instead.\n */\nexport function ResponsiveColor(\n options: ResponsiveColorOptions = {},\n): ResponsiveColorDescriptorV1 {\n return { type: Types.ResponsiveColor, version: 1, options }\n}\n\nexport function getResponsiveColorPropControllerDataResponsiveColorData(\n data: ResponsiveColorPropControllerData,\n): ResponsiveColorData {\n return match(data)\n .with(\n { [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type },\n (v1) => v1.value,\n )\n .otherwise((v0) => v0)\n}\n\nexport function createResponsiveColorPropControllerDataFromResponsiveColorData(\n definition: ResponsiveColorDescriptor,\n responsiveColorData: ResponsiveColorData,\n): ResponsiveColorPropControllerData {\n return match(definition)\n .with(\n { version: 1 },\n () =>\n ({\n [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type,\n value: responsiveColorData,\n }) as const,\n )\n .otherwise(() => responsiveColorData)\n}\n\nexport function getResponsiveColorDataSwatchIds(\n data: ResponsiveColorData,\n): string[] {\n return data.map((override) => override.value.swatchId)\n}\n\nexport function getResponsiveColorPropControllerDataSwatchIds(\n data: ResponsiveColorPropControllerData | undefined | null,\n): string[] {\n if (data == null) return []\n\n return getResponsiveColorDataSwatchIds(\n getResponsiveColorPropControllerDataResponsiveColorData(data),\n )\n}\n\nexport function copyResponsiveColorData(\n data: ResponsiveColorData,\n context: CopyContext,\n): ResponsiveColorData {\n return data.map((override) => ({\n ...override,\n value: copyColorValue(override.value),\n }))\n\n function copyColorValue(colorValue: any): any {\n return {\n ...colorValue,\n swatchId:\n context.replacementContext.swatchIds.get(colorValue.swatchId) ??\n colorValue.swatchId,\n }\n }\n}\n\nexport function copyResponsiveColorPropControllerData(\n data: ResponsiveColorPropControllerData | undefined,\n context: CopyContext,\n): ResponsiveColorPropControllerData | undefined {\n return match(data)\n .with(undefined, () => undefined)\n .with(\n { [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type },\n (v1) =>\n ({\n [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type,\n value: copyResponsiveColorData(v1.value, context),\n }) as const,\n )\n .otherwise((v0) => copyResponsiveColorData(v0, context))\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAClB,kBAAgC;AAChC,8BAMO;AACP,wBAAsB;AAEtB,MAAM,4BAA4B,+BAAO,gBAAgB,2BAAe;AAIxE,MAAM,4CAA4C;AAMlD,MAAM,0CACJ;AAEF,MAAM,4CAA4C,aAAE,OAAO;AAAA,EACzD,CAAC,0CAAkB,GAAG,aAAE,QAAQ,uCAAuC;AAAA,EACvE,OAAO;AACT,CAAC;AAMM,MAAM,0CAA0C,aAAE,MAAM;AAAA,EAC7D;AAAA,EACA;AACF,CAAC;AA+BM,SAAS,gBACd,UAAkC,CAAC,GACN;AAC7B,SAAO,EAAE,MAAM,8BAAM,iBAAiB,SAAS,GAAG,QAAQ;AAC5D;AAEO,SAAS,wDACd,MACqB;AACrB,aAAO,yBAAM,IAAI,EACd;AAAA,IACC,EAAE,CAAC,0CAAkB,GAAG,wCAAwC;AAAA,IAChE,CAAC,OAAO,GAAG;AAAA,EACb,EACC,UAAU,CAAC,OAAO,EAAE;AACzB;AAEO,SAAS,+DACd,YACA,qBACmC;AACnC,aAAO,yBAAM,UAAU,EACpB;AAAA,IACC,EAAE,SAAS,EAAE;AAAA,IACb,OACG;AAAA,MACC,CAAC,0CAAkB,GAAG;AAAA,MACtB,OAAO;AAAA,IACT;AAAA,EACJ,EACC,UAAU,MAAM,mBAAmB;AACxC;AAEO,SAAS,gCACd,MACU;AACV,SAAO,KAAK,IAAI,CAAC,aAAa,SAAS,MAAM,QAAQ;AACvD;AAEO,SAAS,8CACd,MACU;AACV,MAAI,QAAQ;AAAM,WAAO,CAAC;AAE1B,SAAO;AAAA,IACL,wDAAwD,IAAI;AAAA,EAC9D;AACF;AAEO,SAAS,wBACd,MACA,SACqB;AACrB,SAAO,KAAK,IAAI,CAAC,cAAc;AAAA,IAC7B,GAAG;AAAA,IACH,OAAO,eAAe,SAAS,KAAK;AAAA,EACtC,EAAE;AAEF,WAAS,eAAe,YAAsB;AAC5C,WAAO;AAAA,MACL,GAAG;AAAA,MACH,UACE,QAAQ,mBAAmB,UAAU,IAAI,WAAW,QAAQ,KAC5D,WAAW;AAAA,IACf;AAAA,EACF;AACF;AAEO,SAAS,sCACd,MACA,SAC+C;AAC/C,aAAO,yBAAM,IAAI,EACd,KAAK,QAAW,MAAM,MAAS,EAC/B;AAAA,IACC,EAAE,CAAC,0CAAkB,GAAG,wCAAwC;AAAA,IAChE,CAAC,QACE;AAAA,MACC,CAAC,0CAAkB,GAAG;AAAA,MACtB,OAAO,wBAAwB,GAAG,OAAO,OAAO;AAAA,IAClD;AAAA,EACJ,EACC,UAAU,CAAC,OAAO,wBAAwB,IAAI,OAAO,CAAC;AAC3D;","names":[]}
|
package/dist/esm/index.js
CHANGED
@@ -124,7 +124,7 @@ import {
|
|
124
124
|
createResponsiveColorPropControllerDataFromResponsiveColorData,
|
125
125
|
getResponsiveColorDataSwatchIds,
|
126
126
|
getResponsiveColorPropControllerDataResponsiveColorData,
|
127
|
-
|
127
|
+
getResponsiveColorPropControllerDataSwatchIds,
|
128
128
|
responsiveColorPropControllerDataSchema
|
129
129
|
} from "./responsive-color";
|
130
130
|
import {
|
@@ -297,7 +297,7 @@ export {
|
|
297
297
|
getPaddingPropControllerDataResponsivePaddingData,
|
298
298
|
getResponsiveColorDataSwatchIds,
|
299
299
|
getResponsiveColorPropControllerDataResponsiveColorData,
|
300
|
-
|
300
|
+
getResponsiveColorPropControllerDataSwatchIds,
|
301
301
|
getResponsiveLengthPropControllerDataResponsiveLengthData,
|
302
302
|
getShadowsPropControllerDataResponsiveShadowsData,
|
303
303
|
getShadowsPropControllerDataSwatchIds,
|
package/dist/esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './data'\nexport * from './versioned'\nexport * from './prop-controllers'\nexport * from './gap-x'\nexport * from './responsive-icon-radio-group'\nexport * from './responsive-number'\nexport * from './responsive-opacity'\nexport * from './responsive-select'\nexport * from './backgrounds'\n\nexport {\n Border,\n BorderPropControllerFormat,\n borderPropControllerDataSchema,\n getBorderPropControllerDataResponsiveBorderData,\n getBorderPropControllerDataSwatchIds,\n createBorderPropControllerDataFromResponsiveBorderData,\n copyBorderPropControllerData,\n} from './border'\nexport type {\n ResolveBorderPropControllerValue,\n ResponsiveBorderData,\n BorderData,\n BorderSideData,\n BorderDescriptor,\n BorderPropControllerData,\n} from './border'\nexport {\n BorderRadius,\n BorderRadiusPropControllerFormat,\n borderRadiusPropControllerDataSchema,\n getBorderRadiusPropControllerDataResponsiveBorderRadiusData,\n createBorderRadiusPropControllerDataFromResponsiveBorderRadiusData,\n} from './border-radius'\nexport type {\n BorderRadiusPropControllerData,\n ResponsiveBorderRadiusData,\n ResolveBorderRadiusPropControllerValue,\n BorderRadiusDescriptor,\n} from './border-radius'\nexport {\n Checkbox,\n checkboxPropControllerDataSchema,\n getCheckboxPropControllerDataBoolean,\n createCheckboxPropControllerDataFromBoolean,\n} from './checkbox'\nexport type {\n CheckboxDescriptor,\n CheckboxOptions,\n CheckboxPropControllerData,\n ResolveCheckboxPropControllerValue,\n} from './checkbox'\nexport {\n Date,\n datePropControllerDataSchema,\n getDatePropControllerDataString,\n createDatePropControllerDataFromString,\n} from './date'\nexport type {\n DateDescriptor,\n DateOptions,\n DatePropControllerData,\n ResolveDatePropControllerValue,\n} from './date'\nexport {\n ElementID,\n elementIDPropControllerDataSchema,\n getElementIDPropControllerDataElementID,\n createElementIDPropControllerDataFromElementID,\n copyElementIDPropControllerData,\n} from './element-id'\nexport type {\n ElementIDDescriptor,\n ElementIDOptions,\n ElementIDPropControllerData,\n ResolveElementIDPropControllerValue,\n} from './element-id'\nexport {\n Font,\n fontPropControllerDataSchema,\n getFontPropControllerDataResponsiveFontData,\n createFontPropControllerDataFromResponsiveFontData,\n} from './font'\nexport type {\n ResolveFontPropControllerValue,\n ResponsiveFontData,\n FontDescriptor,\n FontPropControllerData,\n} from './font'\nexport {\n GapY,\n gapYPropControllerDataSchema,\n getGapYPropControllerDataResponsiveGapData,\n createGapYPropControllerDataFromResponsiveGapData,\n} from './gap-y'\nexport type {\n ResolveGapYPropControllerValue,\n GapYDescriptor,\n GapYPropControllerData,\n} from './gap-y'\nexport {\n Grid,\n gridPropControllerDataSchema,\n getGridPropControllerDataGridData,\n createGridPropControllerDataFromGridData,\n mergeGridPropControllerTranslatedData,\n getGridPropControllerElementChildren,\n copyGridPropControllerData,\n getGridPropControllerGetElementPath,\n} from './grid'\nexport type {\n GridData,\n GridDescriptor,\n GridOptions,\n GridPropControllerData,\n ResolveGridPropControllerValue,\n} from './grid'\nexport {\n Image,\n imagePropControllerDataSchema,\n getImagePropControllerDataImageData,\n createImagePropControllerDataFromImageData,\n getImagePropControllerFileIds,\n copyImagePropControllerData,\n} from './image'\nexport type {\n ImageDescriptor,\n ImageOptions,\n ImagePropControllerData,\n ResolveImagePropControllerValue,\n} from './image'\nexport {\n Images,\n imagesPropControllerDataSchema,\n getImagesPropControllerDataImagesData,\n createImagesPropControllerDataFromImagesData,\n getImagesPropControllerFileIds,\n copyImagesPropControllerData,\n} from './images'\nexport type {\n ImagesData,\n ImagesDataItem,\n ImagesDescriptor,\n ImagesOptions,\n ImagesPropControllerData,\n ResolveImagesPropControllerValue,\n} from './images'\nexport {\n Link,\n linkDataSchema,\n linkPropControllerDataSchema,\n getLinkPropControllerDataLinkData,\n createLinkPropControllerDataFromLinkData,\n getLinkPropControllerPageIds,\n copyLinkPropControllerData,\n} from './link'\nexport type {\n LinkData,\n LinkDescriptor,\n LinkPropControllerData,\n ResolveLinkPropControllerValue,\n} from './link'\nexport {\n Margin,\n MarginPropControllerFormat,\n marginPropControllerDataSchema,\n getMarginPropControllerDataResponsiveMarginData,\n createMarginPropControllerDataFromResponsiveMarginData,\n} from './margin'\nexport type {\n ResolveMarginPropControllerValue,\n ResponsiveMarginData,\n MarginSideData,\n MarginDescriptor,\n MarginPropControllerData,\n} from './margin'\nexport {\n NavigationLinks,\n navigationLinksPropControllerDataSchema,\n getNavigationLinksPropControllerDataNavigationLinksData,\n createNavigationLinksPropControllerDataFromNavigationLinksData,\n getNavigationLinksPropControllerPageIds,\n getNavigationLinksPropControllerSwatchIds,\n copyNavigationLinksPropControllerData,\n} from './navigation-links'\nexport type {\n NavigationButtonData,\n NavigationDropdownData,\n NavigationLinksData,\n ResolveNavigationLinksPropControllerValue,\n NavigationLinksDescriptor,\n NavigationLinksPropControllerData,\n} from './navigation-links'\nexport {\n Number,\n createNumberPropControllerDataFromNumber,\n getNumberPropControllerDataNumber,\n numberPropControllerDataSchema,\n} from './number'\nexport type {\n NumberDescriptor,\n NumberOptions,\n NumberPropControllerData,\n ResolveNumberPropControllerValue,\n} from './number'\nexport {\n Padding,\n PaddingPropControllerFormat,\n paddingPropControllerDataSchema,\n getPaddingPropControllerDataResponsivePaddingData,\n createPaddingPropControllerDataFromResponsivePaddingData,\n} from './padding'\nexport type {\n ResolvePaddingPropControllerValue,\n ResponsivePaddingData,\n PaddingSideData,\n PaddingDescriptor,\n PaddingPropControllerData,\n} from './padding'\nexport {\n ResponsiveColor,\n copyResponsiveColorPropControllerData,\n createResponsiveColorPropControllerDataFromResponsiveColorData,\n getResponsiveColorDataSwatchIds,\n getResponsiveColorPropControllerDataResponsiveColorData,\n getResponsiveColorPropControllerDataSawtchIds,\n responsiveColorPropControllerDataSchema,\n} from './responsive-color'\nexport type {\n ResponsiveColorData,\n ResponsiveColorDescriptor,\n ResponsiveColorOptions,\n ResponsiveColorPropControllerData,\n} from './responsive-color'\nexport {\n ResponsiveLength,\n ResponsiveLengthPropControllerDataV1Type,\n createResponsiveLengthPropControllerDataFromResponsiveLengthData,\n getResponsiveLengthPropControllerDataResponsiveLengthData,\n responsiveLengthPropControllerDataSchema,\n} from './responsive-length'\nexport type {\n ResolveResponsiveLengthPropControllerValue,\n ResponsiveLengthData,\n ResponsiveLengthDescriptor,\n ResponsiveLengthOptions,\n ResponsiveLengthPropControllerData,\n} from './responsive-length'\nexport {\n SocialLinks,\n socialLinksPropControllerDataSchema,\n getSocialLinkTypes,\n getSocialLinksPropControllerDataSocialLinksData,\n createSocialLinksPropControllerDataFromSocialLinksData,\n} from './social-links'\nexport type {\n SocialLinksData,\n ResolveSocialLinksPropControllerValue,\n SocialLinksDescriptor,\n SocialLinksPropControllerData,\n} from './social-links'\nexport {\n Shadows,\n copyShadowsPropControllerData,\n createShadowsPropControllerDataFromResponsiveShadowsData,\n getShadowsPropControllerDataResponsiveShadowsData,\n getShadowsPropControllerDataSwatchIds,\n shadowsPropControllerDataSchema,\n} from './shadows'\nexport type {\n ResolveShadowsPropControllerValue,\n ShadowData,\n ShadowsData,\n ShadowsDescriptor,\n ShadowsPropControllerData,\n} from './shadows'\nexport {\n Table,\n tablePropControllerDataSchema,\n getTablePropControllerDataTableId,\n createTablePropControllerDataFromTableId,\n copyTablePropControllerData,\n getTablePropControllerDataTableIds,\n} from './table'\nexport type {\n TableDescriptor,\n TableOptions,\n TablePropControllerData,\n ResolveTablePropControllerValue,\n} from './table'\nexport {\n TableFormFields,\n tableFormFieldsPropControllerDataSchema,\n getTableFormFieldsPropControllerDataTableFormFieldsData,\n createTableFormFieldsPropControllerDataFromTableFormFieldsData,\n copyTableFormFieldsPropControllerData,\n} from './table-form-fields'\nexport type {\n TableFormFieldsData,\n TableFormFieldsDescriptor,\n TableFormFieldsOptions,\n TableFormFieldsPropControllerData,\n ResolveTableFormFieldsPropControllerValue,\n} from './table-form-fields'\nexport {\n TextArea,\n textAreaPropControllerDataSchema,\n getTextAreaPropControllerDataString,\n createTextAreaPropControllerDataFromString,\n} from './text-area'\nexport type {\n TextAreaDescriptor,\n TextAreaOptions,\n TextAreaPropControllerData,\n ResolveTextAreaPropControllerValue,\n} from './text-area'\nexport {\n TextInput,\n textInputPropControllerDataSchema,\n getTextInputPropControllerDataString,\n createTextInputPropControllerDataFromString,\n} from './text-input'\nexport type {\n TextInputDescriptor,\n TextInputOptions,\n TextInputPropControllerData,\n ResolveTextInputPropControllerValue,\n} from './text-input'\nexport {\n TextStyle,\n textStylePropControllerDataSchema,\n getTextStylePropControllerDataResponsiveTextStyleData,\n createTextStylePropControllerDataFromResponsiveTextStyleData,\n} from './text-style'\nexport type {\n TextStyleData,\n ResolveTextStylePropControllerValue,\n ResponsiveTextStyleData,\n TextStyleDescriptor,\n TextStylePropControllerData,\n} from './text-style'\nexport {\n Width,\n WidthPropControllerFormat,\n widthPropControllerDataSchema,\n getWidthPropControllerDataResponsiveLengthData,\n createWidthPropControllerDataFromResponsiveLengthData,\n} from './width'\nexport type {\n ResolveWidthPropControllerValue,\n WidthDescriptor,\n WidthPropControllerData,\n} from './width'\nexport {\n Video,\n videoPropControllerDataSchema,\n getVideoPropControllerDataVideoData,\n createVideoPropControllerDataFromVideoData,\n} from './video'\nexport type {\n ResolveVideoPropControllerValue,\n VideoData,\n VideoDescriptor,\n VideoPropControllerData,\n} from './video'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './data'\nexport * from './versioned'\nexport * from './prop-controllers'\nexport * from './gap-x'\nexport * from './responsive-icon-radio-group'\nexport * from './responsive-number'\nexport * from './responsive-opacity'\nexport * from './responsive-select'\nexport * from './backgrounds'\n\nexport {\n Border,\n BorderPropControllerFormat,\n borderPropControllerDataSchema,\n getBorderPropControllerDataResponsiveBorderData,\n getBorderPropControllerDataSwatchIds,\n createBorderPropControllerDataFromResponsiveBorderData,\n copyBorderPropControllerData,\n} from './border'\nexport type {\n ResolveBorderPropControllerValue,\n ResponsiveBorderData,\n BorderData,\n BorderSideData,\n BorderDescriptor,\n BorderPropControllerData,\n} from './border'\nexport {\n BorderRadius,\n BorderRadiusPropControllerFormat,\n borderRadiusPropControllerDataSchema,\n getBorderRadiusPropControllerDataResponsiveBorderRadiusData,\n createBorderRadiusPropControllerDataFromResponsiveBorderRadiusData,\n} from './border-radius'\nexport type {\n BorderRadiusPropControllerData,\n ResponsiveBorderRadiusData,\n ResolveBorderRadiusPropControllerValue,\n BorderRadiusDescriptor,\n} from './border-radius'\nexport {\n Checkbox,\n checkboxPropControllerDataSchema,\n getCheckboxPropControllerDataBoolean,\n createCheckboxPropControllerDataFromBoolean,\n} from './checkbox'\nexport type {\n CheckboxDescriptor,\n CheckboxOptions,\n CheckboxPropControllerData,\n ResolveCheckboxPropControllerValue,\n} from './checkbox'\nexport {\n Date,\n datePropControllerDataSchema,\n getDatePropControllerDataString,\n createDatePropControllerDataFromString,\n} from './date'\nexport type {\n DateDescriptor,\n DateOptions,\n DatePropControllerData,\n ResolveDatePropControllerValue,\n} from './date'\nexport {\n ElementID,\n elementIDPropControllerDataSchema,\n getElementIDPropControllerDataElementID,\n createElementIDPropControllerDataFromElementID,\n copyElementIDPropControllerData,\n} from './element-id'\nexport type {\n ElementIDDescriptor,\n ElementIDOptions,\n ElementIDPropControllerData,\n ResolveElementIDPropControllerValue,\n} from './element-id'\nexport {\n Font,\n fontPropControllerDataSchema,\n getFontPropControllerDataResponsiveFontData,\n createFontPropControllerDataFromResponsiveFontData,\n} from './font'\nexport type {\n ResolveFontPropControllerValue,\n ResponsiveFontData,\n FontDescriptor,\n FontPropControllerData,\n} from './font'\nexport {\n GapY,\n gapYPropControllerDataSchema,\n getGapYPropControllerDataResponsiveGapData,\n createGapYPropControllerDataFromResponsiveGapData,\n} from './gap-y'\nexport type {\n ResolveGapYPropControllerValue,\n GapYDescriptor,\n GapYPropControllerData,\n} from './gap-y'\nexport {\n Grid,\n gridPropControllerDataSchema,\n getGridPropControllerDataGridData,\n createGridPropControllerDataFromGridData,\n mergeGridPropControllerTranslatedData,\n getGridPropControllerElementChildren,\n copyGridPropControllerData,\n getGridPropControllerGetElementPath,\n} from './grid'\nexport type {\n GridData,\n GridDescriptor,\n GridOptions,\n GridPropControllerData,\n ResolveGridPropControllerValue,\n} from './grid'\nexport {\n Image,\n imagePropControllerDataSchema,\n getImagePropControllerDataImageData,\n createImagePropControllerDataFromImageData,\n getImagePropControllerFileIds,\n copyImagePropControllerData,\n} from './image'\nexport type {\n ImageDescriptor,\n ImageOptions,\n ImagePropControllerData,\n ResolveImagePropControllerValue,\n} from './image'\nexport {\n Images,\n imagesPropControllerDataSchema,\n getImagesPropControllerDataImagesData,\n createImagesPropControllerDataFromImagesData,\n getImagesPropControllerFileIds,\n copyImagesPropControllerData,\n} from './images'\nexport type {\n ImagesData,\n ImagesDataItem,\n ImagesDescriptor,\n ImagesOptions,\n ImagesPropControllerData,\n ResolveImagesPropControllerValue,\n} from './images'\nexport {\n Link,\n linkDataSchema,\n linkPropControllerDataSchema,\n getLinkPropControllerDataLinkData,\n createLinkPropControllerDataFromLinkData,\n getLinkPropControllerPageIds,\n copyLinkPropControllerData,\n} from './link'\nexport type {\n LinkData,\n LinkDescriptor,\n LinkPropControllerData,\n ResolveLinkPropControllerValue,\n} from './link'\nexport {\n Margin,\n MarginPropControllerFormat,\n marginPropControllerDataSchema,\n getMarginPropControllerDataResponsiveMarginData,\n createMarginPropControllerDataFromResponsiveMarginData,\n} from './margin'\nexport type {\n ResolveMarginPropControllerValue,\n ResponsiveMarginData,\n MarginSideData,\n MarginDescriptor,\n MarginPropControllerData,\n} from './margin'\nexport {\n NavigationLinks,\n navigationLinksPropControllerDataSchema,\n getNavigationLinksPropControllerDataNavigationLinksData,\n createNavigationLinksPropControllerDataFromNavigationLinksData,\n getNavigationLinksPropControllerPageIds,\n getNavigationLinksPropControllerSwatchIds,\n copyNavigationLinksPropControllerData,\n} from './navigation-links'\nexport type {\n NavigationButtonData,\n NavigationDropdownData,\n NavigationLinksData,\n ResolveNavigationLinksPropControllerValue,\n NavigationLinksDescriptor,\n NavigationLinksPropControllerData,\n} from './navigation-links'\nexport {\n Number,\n createNumberPropControllerDataFromNumber,\n getNumberPropControllerDataNumber,\n numberPropControllerDataSchema,\n} from './number'\nexport type {\n NumberDescriptor,\n NumberOptions,\n NumberPropControllerData,\n ResolveNumberPropControllerValue,\n} from './number'\nexport {\n Padding,\n PaddingPropControllerFormat,\n paddingPropControllerDataSchema,\n getPaddingPropControllerDataResponsivePaddingData,\n createPaddingPropControllerDataFromResponsivePaddingData,\n} from './padding'\nexport type {\n ResolvePaddingPropControllerValue,\n ResponsivePaddingData,\n PaddingSideData,\n PaddingDescriptor,\n PaddingPropControllerData,\n} from './padding'\nexport {\n ResponsiveColor,\n copyResponsiveColorPropControllerData,\n createResponsiveColorPropControllerDataFromResponsiveColorData,\n getResponsiveColorDataSwatchIds,\n getResponsiveColorPropControllerDataResponsiveColorData,\n getResponsiveColorPropControllerDataSwatchIds,\n responsiveColorPropControllerDataSchema,\n} from './responsive-color'\nexport type {\n ResponsiveColorData,\n ResponsiveColorDescriptor,\n ResponsiveColorOptions,\n ResponsiveColorPropControllerData,\n} from './responsive-color'\nexport {\n ResponsiveLength,\n ResponsiveLengthPropControllerDataV1Type,\n createResponsiveLengthPropControllerDataFromResponsiveLengthData,\n getResponsiveLengthPropControllerDataResponsiveLengthData,\n responsiveLengthPropControllerDataSchema,\n} from './responsive-length'\nexport type {\n ResolveResponsiveLengthPropControllerValue,\n ResponsiveLengthData,\n ResponsiveLengthDescriptor,\n ResponsiveLengthOptions,\n ResponsiveLengthPropControllerData,\n} from './responsive-length'\nexport {\n SocialLinks,\n socialLinksPropControllerDataSchema,\n getSocialLinkTypes,\n getSocialLinksPropControllerDataSocialLinksData,\n createSocialLinksPropControllerDataFromSocialLinksData,\n} from './social-links'\nexport type {\n SocialLinksData,\n ResolveSocialLinksPropControllerValue,\n SocialLinksDescriptor,\n SocialLinksPropControllerData,\n} from './social-links'\nexport {\n Shadows,\n copyShadowsPropControllerData,\n createShadowsPropControllerDataFromResponsiveShadowsData,\n getShadowsPropControllerDataResponsiveShadowsData,\n getShadowsPropControllerDataSwatchIds,\n shadowsPropControllerDataSchema,\n} from './shadows'\nexport type {\n ResolveShadowsPropControllerValue,\n ShadowData,\n ShadowsData,\n ShadowsDescriptor,\n ShadowsPropControllerData,\n} from './shadows'\nexport {\n Table,\n tablePropControllerDataSchema,\n getTablePropControllerDataTableId,\n createTablePropControllerDataFromTableId,\n copyTablePropControllerData,\n getTablePropControllerDataTableIds,\n} from './table'\nexport type {\n TableDescriptor,\n TableOptions,\n TablePropControllerData,\n ResolveTablePropControllerValue,\n} from './table'\nexport {\n TableFormFields,\n tableFormFieldsPropControllerDataSchema,\n getTableFormFieldsPropControllerDataTableFormFieldsData,\n createTableFormFieldsPropControllerDataFromTableFormFieldsData,\n copyTableFormFieldsPropControllerData,\n} from './table-form-fields'\nexport type {\n TableFormFieldsData,\n TableFormFieldsDescriptor,\n TableFormFieldsOptions,\n TableFormFieldsPropControllerData,\n ResolveTableFormFieldsPropControllerValue,\n} from './table-form-fields'\nexport {\n TextArea,\n textAreaPropControllerDataSchema,\n getTextAreaPropControllerDataString,\n createTextAreaPropControllerDataFromString,\n} from './text-area'\nexport type {\n TextAreaDescriptor,\n TextAreaOptions,\n TextAreaPropControllerData,\n ResolveTextAreaPropControllerValue,\n} from './text-area'\nexport {\n TextInput,\n textInputPropControllerDataSchema,\n getTextInputPropControllerDataString,\n createTextInputPropControllerDataFromString,\n} from './text-input'\nexport type {\n TextInputDescriptor,\n TextInputOptions,\n TextInputPropControllerData,\n ResolveTextInputPropControllerValue,\n} from './text-input'\nexport {\n TextStyle,\n textStylePropControllerDataSchema,\n getTextStylePropControllerDataResponsiveTextStyleData,\n createTextStylePropControllerDataFromResponsiveTextStyleData,\n} from './text-style'\nexport type {\n TextStyleData,\n ResolveTextStylePropControllerValue,\n ResponsiveTextStyleData,\n TextStyleDescriptor,\n TextStylePropControllerData,\n} from './text-style'\nexport {\n Width,\n WidthPropControllerFormat,\n widthPropControllerDataSchema,\n getWidthPropControllerDataResponsiveLengthData,\n createWidthPropControllerDataFromResponsiveLengthData,\n} from './width'\nexport type {\n ResolveWidthPropControllerValue,\n WidthDescriptor,\n WidthPropControllerData,\n} from './width'\nexport {\n Video,\n videoPropControllerDataSchema,\n getVideoPropControllerDataVideoData,\n createVideoPropControllerDataFromVideoData,\n} from './video'\nexport type {\n ResolveVideoPropControllerValue,\n VideoData,\n VideoDescriptor,\n VideoPropControllerData,\n} from './video'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
@@ -38,7 +38,7 @@ function createResponsiveColorPropControllerDataFromResponsiveColorData(definiti
|
|
38
38
|
function getResponsiveColorDataSwatchIds(data) {
|
39
39
|
return data.map((override) => override.value.swatchId);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function getResponsiveColorPropControllerDataSwatchIds(data) {
|
42
42
|
if (data == null)
|
43
43
|
return [];
|
44
44
|
return getResponsiveColorDataSwatchIds(
|
@@ -73,7 +73,7 @@ export {
|
|
73
73
|
createResponsiveColorPropControllerDataFromResponsiveColorData,
|
74
74
|
getResponsiveColorDataSwatchIds,
|
75
75
|
getResponsiveColorPropControllerDataResponsiveColorData,
|
76
|
-
|
76
|
+
getResponsiveColorPropControllerDataSwatchIds,
|
77
77
|
responsiveColorPropControllerDataSchema
|
78
78
|
};
|
79
79
|
//# sourceMappingURL=responsive-color.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/responsive-color.ts"],"sourcesContent":["import { z } from 'zod'\nimport { colorDataSchema } from './data'\nimport {\n ControlDataTypeKey,\n CopyContext,\n Options,\n Types,\n Schema,\n} from './prop-controllers'\nimport { match } from 'ts-pattern'\n\nconst responsiveColorDataSchema = Schema.responsiveValue(colorDataSchema)\n\nexport type ResponsiveColorData = z.infer<typeof responsiveColorDataSchema>\n\nconst responsiveColorPropControllerDataV0Schema = responsiveColorDataSchema\n\ntype ResponsiveColorPropControllerDataV0 = z.infer<\n typeof responsiveColorPropControllerDataV0Schema\n>\n\nconst ResponsiveColorPropControllerDataV1Type =\n 'prop-controllers::responsive-color::v1'\n\nconst responsiveColorPropControllerDataV1Schema = z.object({\n [ControlDataTypeKey]: z.literal(ResponsiveColorPropControllerDataV1Type),\n value: responsiveColorDataSchema,\n})\n\ntype ResponsiveColorPropControllerDataV1 = z.infer<\n typeof responsiveColorPropControllerDataV1Schema\n>\n\nexport const responsiveColorPropControllerDataSchema = z.union([\n responsiveColorPropControllerDataV0Schema,\n responsiveColorPropControllerDataV1Schema,\n])\n\nexport type ResponsiveColorPropControllerData = z.infer<\n typeof responsiveColorPropControllerDataSchema\n>\n\nexport type ResponsiveColorOptions = Options<{\n label?: string\n placeholder?: string\n hidden?: boolean\n}>\n\ntype ResponsiveColorDescriptorV0<_T = ResponsiveColorPropControllerDataV0> = {\n type: typeof Types.ResponsiveColor\n options: ResponsiveColorOptions\n}\n\ntype ResponsiveColorDescriptorV1<_T = ResponsiveColorPropControllerDataV1> = {\n type: typeof Types.ResponsiveColor\n version: 1\n options: ResponsiveColorOptions\n}\n\nexport type ResponsiveColorDescriptor<_T = ResponsiveColorPropControllerData> =\n | ResponsiveColorDescriptorV0\n | ResponsiveColorDescriptorV1\n\n/**\n * @deprecated Imports from `@makeswift/prop-controllers` are deprecated. Use\n * `@makeswift/runtime/controls` instead.\n */\nexport function ResponsiveColor(\n options: ResponsiveColorOptions = {},\n): ResponsiveColorDescriptorV1 {\n return { type: Types.ResponsiveColor, version: 1, options }\n}\n\nexport function getResponsiveColorPropControllerDataResponsiveColorData(\n data: ResponsiveColorPropControllerData,\n): ResponsiveColorData {\n return match(data)\n .with(\n { [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type },\n (v1) => v1.value,\n )\n .otherwise((v0) => v0)\n}\n\nexport function createResponsiveColorPropControllerDataFromResponsiveColorData(\n definition: ResponsiveColorDescriptor,\n responsiveColorData: ResponsiveColorData,\n): ResponsiveColorPropControllerData {\n return match(definition)\n .with(\n { version: 1 },\n () =>\n ({\n [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type,\n value: responsiveColorData,\n }) as const,\n )\n .otherwise(() => responsiveColorData)\n}\n\nexport function getResponsiveColorDataSwatchIds(\n data: ResponsiveColorData,\n): string[] {\n return data.map((override) => override.value.swatchId)\n}\n\nexport function
|
1
|
+
{"version":3,"sources":["../../src/responsive-color.ts"],"sourcesContent":["import { z } from 'zod'\nimport { colorDataSchema } from './data'\nimport {\n ControlDataTypeKey,\n CopyContext,\n Options,\n Types,\n Schema,\n} from './prop-controllers'\nimport { match } from 'ts-pattern'\n\nconst responsiveColorDataSchema = Schema.responsiveValue(colorDataSchema)\n\nexport type ResponsiveColorData = z.infer<typeof responsiveColorDataSchema>\n\nconst responsiveColorPropControllerDataV0Schema = responsiveColorDataSchema\n\ntype ResponsiveColorPropControllerDataV0 = z.infer<\n typeof responsiveColorPropControllerDataV0Schema\n>\n\nconst ResponsiveColorPropControllerDataV1Type =\n 'prop-controllers::responsive-color::v1'\n\nconst responsiveColorPropControllerDataV1Schema = z.object({\n [ControlDataTypeKey]: z.literal(ResponsiveColorPropControllerDataV1Type),\n value: responsiveColorDataSchema,\n})\n\ntype ResponsiveColorPropControllerDataV1 = z.infer<\n typeof responsiveColorPropControllerDataV1Schema\n>\n\nexport const responsiveColorPropControllerDataSchema = z.union([\n responsiveColorPropControllerDataV0Schema,\n responsiveColorPropControllerDataV1Schema,\n])\n\nexport type ResponsiveColorPropControllerData = z.infer<\n typeof responsiveColorPropControllerDataSchema\n>\n\nexport type ResponsiveColorOptions = Options<{\n label?: string\n placeholder?: string\n hidden?: boolean\n}>\n\ntype ResponsiveColorDescriptorV0<_T = ResponsiveColorPropControllerDataV0> = {\n type: typeof Types.ResponsiveColor\n options: ResponsiveColorOptions\n}\n\ntype ResponsiveColorDescriptorV1<_T = ResponsiveColorPropControllerDataV1> = {\n type: typeof Types.ResponsiveColor\n version: 1\n options: ResponsiveColorOptions\n}\n\nexport type ResponsiveColorDescriptor<_T = ResponsiveColorPropControllerData> =\n | ResponsiveColorDescriptorV0\n | ResponsiveColorDescriptorV1\n\n/**\n * @deprecated Imports from `@makeswift/prop-controllers` are deprecated. Use\n * `@makeswift/runtime/controls` instead.\n */\nexport function ResponsiveColor(\n options: ResponsiveColorOptions = {},\n): ResponsiveColorDescriptorV1 {\n return { type: Types.ResponsiveColor, version: 1, options }\n}\n\nexport function getResponsiveColorPropControllerDataResponsiveColorData(\n data: ResponsiveColorPropControllerData,\n): ResponsiveColorData {\n return match(data)\n .with(\n { [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type },\n (v1) => v1.value,\n )\n .otherwise((v0) => v0)\n}\n\nexport function createResponsiveColorPropControllerDataFromResponsiveColorData(\n definition: ResponsiveColorDescriptor,\n responsiveColorData: ResponsiveColorData,\n): ResponsiveColorPropControllerData {\n return match(definition)\n .with(\n { version: 1 },\n () =>\n ({\n [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type,\n value: responsiveColorData,\n }) as const,\n )\n .otherwise(() => responsiveColorData)\n}\n\nexport function getResponsiveColorDataSwatchIds(\n data: ResponsiveColorData,\n): string[] {\n return data.map((override) => override.value.swatchId)\n}\n\nexport function getResponsiveColorPropControllerDataSwatchIds(\n data: ResponsiveColorPropControllerData | undefined | null,\n): string[] {\n if (data == null) return []\n\n return getResponsiveColorDataSwatchIds(\n getResponsiveColorPropControllerDataResponsiveColorData(data),\n )\n}\n\nexport function copyResponsiveColorData(\n data: ResponsiveColorData,\n context: CopyContext,\n): ResponsiveColorData {\n return data.map((override) => ({\n ...override,\n value: copyColorValue(override.value),\n }))\n\n function copyColorValue(colorValue: any): any {\n return {\n ...colorValue,\n swatchId:\n context.replacementContext.swatchIds.get(colorValue.swatchId) ??\n colorValue.swatchId,\n }\n }\n}\n\nexport function copyResponsiveColorPropControllerData(\n data: ResponsiveColorPropControllerData | undefined,\n context: CopyContext,\n): ResponsiveColorPropControllerData | undefined {\n return match(data)\n .with(undefined, () => undefined)\n .with(\n { [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type },\n (v1) =>\n ({\n [ControlDataTypeKey]: ResponsiveColorPropControllerDataV1Type,\n value: copyResponsiveColorData(v1.value, context),\n }) as const,\n )\n .otherwise((v0) => copyResponsiveColorData(v0, context))\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAClB,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAGA;AAAA,EACA;AAAA,OACK;AACP,SAAS,aAAa;AAEtB,MAAM,4BAA4B,OAAO,gBAAgB,eAAe;AAIxE,MAAM,4CAA4C;AAMlD,MAAM,0CACJ;AAEF,MAAM,4CAA4C,EAAE,OAAO;AAAA,EACzD,CAAC,kBAAkB,GAAG,EAAE,QAAQ,uCAAuC;AAAA,EACvE,OAAO;AACT,CAAC;AAMM,MAAM,0CAA0C,EAAE,MAAM;AAAA,EAC7D;AAAA,EACA;AACF,CAAC;AA+BM,SAAS,gBACd,UAAkC,CAAC,GACN;AAC7B,SAAO,EAAE,MAAM,MAAM,iBAAiB,SAAS,GAAG,QAAQ;AAC5D;AAEO,SAAS,wDACd,MACqB;AACrB,SAAO,MAAM,IAAI,EACd;AAAA,IACC,EAAE,CAAC,kBAAkB,GAAG,wCAAwC;AAAA,IAChE,CAAC,OAAO,GAAG;AAAA,EACb,EACC,UAAU,CAAC,OAAO,EAAE;AACzB;AAEO,SAAS,+DACd,YACA,qBACmC;AACnC,SAAO,MAAM,UAAU,EACpB;AAAA,IACC,EAAE,SAAS,EAAE;AAAA,IACb,OACG;AAAA,MACC,CAAC,kBAAkB,GAAG;AAAA,MACtB,OAAO;AAAA,IACT;AAAA,EACJ,EACC,UAAU,MAAM,mBAAmB;AACxC;AAEO,SAAS,gCACd,MACU;AACV,SAAO,KAAK,IAAI,CAAC,aAAa,SAAS,MAAM,QAAQ;AACvD;AAEO,SAAS,8CACd,MACU;AACV,MAAI,QAAQ;AAAM,WAAO,CAAC;AAE1B,SAAO;AAAA,IACL,wDAAwD,IAAI;AAAA,EAC9D;AACF;AAEO,SAAS,wBACd,MACA,SACqB;AACrB,SAAO,KAAK,IAAI,CAAC,cAAc;AAAA,IAC7B,GAAG;AAAA,IACH,OAAO,eAAe,SAAS,KAAK;AAAA,EACtC,EAAE;AAEF,WAAS,eAAe,YAAsB;AAC5C,WAAO;AAAA,MACL,GAAG;AAAA,MACH,UACE,QAAQ,mBAAmB,UAAU,IAAI,WAAW,QAAQ,KAC5D,WAAW;AAAA,IACf;AAAA,EACF;AACF;AAEO,SAAS,sCACd,MACA,SAC+C;AAC/C,SAAO,MAAM,IAAI,EACd,KAAK,QAAW,MAAM,MAAS,EAC/B;AAAA,IACC,EAAE,CAAC,kBAAkB,GAAG,wCAAwC;AAAA,IAChE,CAAC,QACE;AAAA,MACC,CAAC,kBAAkB,GAAG;AAAA,MACtB,OAAO,wBAAwB,GAAG,OAAO,OAAO;AAAA,IAClD;AAAA,EACJ,EACC,UAAU,CAAC,OAAO,wBAAwB,IAAI,OAAO,CAAC;AAC3D;","names":[]}
|
package/dist/types/index.d.ts
CHANGED
@@ -37,7 +37,7 @@ export { Number, createNumberPropControllerDataFromNumber, getNumberPropControll
|
|
37
37
|
export type { NumberDescriptor, NumberOptions, NumberPropControllerData, ResolveNumberPropControllerValue, } from './number';
|
38
38
|
export { Padding, PaddingPropControllerFormat, paddingPropControllerDataSchema, getPaddingPropControllerDataResponsivePaddingData, createPaddingPropControllerDataFromResponsivePaddingData, } from './padding';
|
39
39
|
export type { ResolvePaddingPropControllerValue, ResponsivePaddingData, PaddingSideData, PaddingDescriptor, PaddingPropControllerData, } from './padding';
|
40
|
-
export { ResponsiveColor, copyResponsiveColorPropControllerData, createResponsiveColorPropControllerDataFromResponsiveColorData, getResponsiveColorDataSwatchIds, getResponsiveColorPropControllerDataResponsiveColorData,
|
40
|
+
export { ResponsiveColor, copyResponsiveColorPropControllerData, createResponsiveColorPropControllerDataFromResponsiveColorData, getResponsiveColorDataSwatchIds, getResponsiveColorPropControllerDataResponsiveColorData, getResponsiveColorPropControllerDataSwatchIds, responsiveColorPropControllerDataSchema, } from './responsive-color';
|
41
41
|
export type { ResponsiveColorData, ResponsiveColorDescriptor, ResponsiveColorOptions, ResponsiveColorPropControllerData, } from './responsive-color';
|
42
42
|
export { ResponsiveLength, ResponsiveLengthPropControllerDataV1Type, createResponsiveLengthPropControllerDataFromResponsiveLengthData, getResponsiveLengthPropControllerDataResponsiveLengthData, responsiveLengthPropControllerDataSchema, } from './responsive-length';
|
43
43
|
export type { ResolveResponsiveLengthPropControllerValue, ResponsiveLengthData, ResponsiveLengthDescriptor, ResponsiveLengthOptions, ResponsiveLengthPropControllerData, } from './responsive-length';
|
@@ -193,7 +193,7 @@ export declare function ResponsiveColor(options?: ResponsiveColorOptions): Respo
|
|
193
193
|
export declare function getResponsiveColorPropControllerDataResponsiveColorData(data: ResponsiveColorPropControllerData): ResponsiveColorData;
|
194
194
|
export declare function createResponsiveColorPropControllerDataFromResponsiveColorData(definition: ResponsiveColorDescriptor, responsiveColorData: ResponsiveColorData): ResponsiveColorPropControllerData;
|
195
195
|
export declare function getResponsiveColorDataSwatchIds(data: ResponsiveColorData): string[];
|
196
|
-
export declare function
|
196
|
+
export declare function getResponsiveColorPropControllerDataSwatchIds(data: ResponsiveColorPropControllerData | undefined | null): string[];
|
197
197
|
export declare function copyResponsiveColorData(data: ResponsiveColorData, context: CopyContext): ResponsiveColorData;
|
198
198
|
export declare function copyResponsiveColorPropControllerData(data: ResponsiveColorPropControllerData | undefined, context: CopyContext): ResponsiveColorPropControllerData | undefined;
|
199
199
|
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@makeswift/prop-controllers",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"dependencies": {
|
12
12
|
"ts-pattern": "^5.0.8",
|
13
13
|
"zod": "^3.21.4",
|
14
|
-
"@makeswift/controls": "0.1.
|
14
|
+
"@makeswift/controls": "0.1.7"
|
15
15
|
},
|
16
16
|
"devDependencies": {
|
17
17
|
"@swc/jest": "^0.2.36",
|